Skip to main content

Constellation Enum

A Python enum for astronomical constellations with standard abbreviations.

This package provides a comprehensive enum of all 88 modern constellations recognized by the International Astronomical Union (IAU), along with their standard 3-letter abbreviations.

Features

  • ✨ All 88 IAU-recognized constellations
  • 🔤 Standard 3-letter abbreviations
  • 🐍 Pure Python, no dependencies
  • 📝 Full type hints support

Installation

pip install constellation-enum

Usage

from constellation import Constellation

# Example usage
print(Constellation.Andromeda)  # Directly access the enum member
print(Constellation['Andromeda'])  # Access by name
print(Constellation['And'])  # Access by abbreviation

# Accessing name, abbreviation, and value
print(Constellation.Andromeda.name)  # 'Andromeda'
print(Constellation.Andromeda.abbr)  # 'And'
print(Constellation.Andromeda.value)  # 1 (auto-assigned value)

# Comparing enum members
print(Constellation.Andromeda == Constellation['And'])  # True

# Iterate through all constellations
for constellation in Constellation:
    print(f"{constellation.name} ({constellation.abbr})")

All Constellations

The enum includes all 88 modern constellations:

  • Andromeda (And), Antlia (Ant), Apus (Aps), Aquarius (Aqr), Aquila (Aql)
  • Ara (Ara), Aries (Ari), Auriga (Aur), Boötes (Boo), Caelum (Cae)
  • And 78 more...

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Metadata

Release files for constellation-enum 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for constellation-enum 0.1.0
File Size Uploaded
constellation_enum-0.1.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for constellation-enum 0.1.0
File Interpreter ABI Platform
constellation_enum-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / constellation_enum-0.1.0.tar.gz

Download URL constellation_enum-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
601268f9a24d127d7fc8486a3358d2a93bba22f3eeb8132a354b67dfb40a38db
BLAKE2b-256 checksum
How to use checksums
36831d92c8c90e9f3fff96e404a93a44cad136693b36c59570e513c0aa318a5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release files / constellation_enum-0.1.0-py3-none-any.whl

Download URL constellation_enum-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce8b04fea0358a625f53c77ac4d0f117233e9b40028c68fd05612dcc9ff8897a
BLAKE2b-256 checksum
How to use checksums
9f48fb7aa48a222854241a7d55be6a9c58794923962e1bbfaab34cb52079c216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page