$npx skillfedfor your agent

regions

An Astropy coordinated package for region handling

With conditionsPyPI AstronomyReleased Jun 2026118.9K downloads / moBSD-3-ClausePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — regions-0.12-cp311-abi3-macosx_10_9_x86_64.whl · regions-0.12-cp311-abi3-macosx_11_0_arm64.whl · regions-0.12-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
v0.12 · released 2026-06-24 · Python >=3.11 · 2 runtime deps: astropy, numpy

Yes, if you work with astronomical data and need to define or manipulate spatial regions. The package is actively maintained, has no known vulnerabilities, and integrates with the Astropy ecosystem. The medium install friction is typical for scientific Python packages with compiled dependencies. BSD-3-Clause licensing poses no restrictions for most use cases.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later; astropy and numpy must be installed.
  • Medium install friction due to compiled dependencies.
  • Active maintenance with recent release; last commit was 2026-08-07.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions, provided the license notice is retained.

last release 2026-06-24 (51 days) · last repo commit 2026-08-07 · 65 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 118,922 downloads/mo, #12,097 on PyPI

Verify before relying

pip install regions

import regions
import numpy
import astropy

# Create a region for astronomical analysis
region = regions.Region()
  • Specific region types supported (circular, elliptical, polygonal, etc.)
  • Whether regions can be serialized to/from standard formats (FITS, DS9, etc.)
  • Performance characteristics for large region sets or complex geometries
  • Concrete usage examples beyond basic region creation
Same gist for agents: .md · .json

What it is and what it does

Regions is an Astropy package that provides a unified interface for working with astronomical regions—geometric shapes defined on the celestial sphere or in pixel coordinates. It handles the creation, manipulation, and analysis of regions commonly used in astronomy workflows. The package integrates tightly with astropy and numpy, allowing astronomers to work with regions in a Pythonic way.

The package is actively maintained as part of the Astropy ecosystem and supports current Python versions. It includes both sky-based regions and pixel-based regions, enabling flexible region handling across different astronomical data types and workflows.

Use it for

  • Define apertures for photometric measurements on astronomical images
  • Create masks to exclude or include specific regions when analyzing survey data
  • Convert between different region coordinate systems in astronomical workflows
  • Store and retrieve region definitions for reproducible astronomical analysis
  • Filter astronomical catalogs based on spatial region membership

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you work with astronomical data and need to define or manipulate spatial regions.

The package is actively maintained, has no known vulnerabilities, and integrates with the Astropy ecosystem. The medium install friction is typical for scientific Python packages with compiled dependencies. BSD-3-Clause licensing poses no restrictions for most use cases.

Install

regions on PyPI

Before you install

Medium install friction due to compiled dependencies. Active maintenance with recent release; last commit was 2026-08-07. Requires Python 3.11 or later.

Requires Python 3.11 or later; astropy and numpy must be installed.

License in practice

BSD-3-Clause permissive license allows commercial and private use with minimal restrictions, provided the license notice is retained.

Quickstart

pip install regions

import regions
import numpy
import astropy

# Create a region for astronomical analysis
region = regions.Region()

Verify before relying

  • Specific region types supported (circular, elliptical, polygonal, etc.)
  • Whether regions can be serialized to/from standard formats (FITS, DS9, etc.)
  • Performance characteristics for large region sets or complex geometries
  • Concrete usage examples beyond basic region creation

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.11
Install frictionMedium. Platform-specific wheel
Runtime dependencies
2 packages
astropynumpy
MaintenanceActively maintained 51 days since the last release
Last repo commit
First released
Downloads118,922 / month, #12,097 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: Science/ResearchNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: CythonProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: Astronomy

Evidence: regions-0.12-cp311-abi3-macosx_10_9_x86_64.whl; regions-0.12-cp311-abi3-macosx_11_0_arm64.whl; regions-0.12-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; regions-0.12-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; regions-0.12-cp311-abi3-win_amd64.whl; regions-0.12-cp311-abi3-win_arm64.whl

Tags

Capabilities
astronomical region handlingsky region geometryastropy regionscelestial coordinate regionsastronomy region maskspixel region definitionssky aperture tools
Topics
astronomyastropy-ecosystemspatial-geometry
PyPI keywords
astronomyastrophysicsastropyregions

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “astronomical region handling”

  • regionsRegions provides tools for defining, manipulating, and analyzing…
  • astroqueryAstroquery provides a Python interface to query and retrieve data…
  • pyvoPyVO provides Python access to Virtual Observatory data archives,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Astronomy packages

albumentations Worth it
PyPI · Libraries · released May 2025

Albumentations applies image transformations to training data, supporting classification, segmentation, object detection, and pose estimation with a unified API for images, masks, bounding boxes, and keypoints.

Install it if you need a unified, production-grade augmentation API for computer vision tasks.

MITpure Python · 3.9+aging
5.5Mdownloads / mo
convertdate With conditions
PyPI · Astronomy · released Feb 2026

Converts dates between the Gregorian calendar and 15+ alternative calendar systems including Hebrew, Islamic, Julian, French Republican, Mayan, and others, plus calculates holidays across North American, Jewish, and other traditions.

Install only if you actually need multi-calendar support; the single pymeeus dependency is manageable.

MITpure Pythonaging
4.4Mdownloads / mo
jdcal With conditions
PyPI · Astronomy · released Apr 2019

Converts between Julian dates and Gregorian or Julian calendar dates, storing Julian dates as pairs of floating-point numbers for maximum precision.

However, be aware that it will not receive bug fixes or updates—verify that its behavior matches your requirements before committing to it in a production system.

BSD-3-Clausepure Pythonabandoned
3.8Mdownloads / mo
pyerfa Worth it
PyPI · Physics · released Nov 2024

PyERFA wraps the ERFA C library (Essential Routines for Fundamental Astronomy) as NumPy universal functions, exposing key astronomy algorithms for scalar or array inputs.

Install it if you need fundamental astronomy calculations or if another package depends on it.

BSD-3-Clausecompiled wheel · 3.9+
3.4Mdownloads / mo
PyMeeus With conditions
PyPI · Astronomy · released Dec 2022

PyMeeus implements astronomical algorithms from Jean Meeus's classical reference, providing Python classes for computing celestial positions, lunar phases, planetary phenomena, and time conversions with minimal dependencies.

However, verify Python version compatibility first and consider whether other libraries better suit production-grade use cases.

LGPL-3.0-onlybuilds from source
2.8Mdownloads / mo
ephem Worth it
PyPI · Astronomy · released Feb 2026

PyEphem computes high-precision positions of planets, moons, stars, comets, and asteroids in the sky for any observer location and date, using C-based numeric routines from the XEphem astronomy application.

MITcompiled wheel
1.6Mdownloads / mo

See also astropy-healpix · photutils · regionmask · gwcs · PyAVM · reproject · specutils · astroquery · healpy · pyvo