constellation-enum


Nameconstellation-enum JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/gomeshun/constellation-enum
SummaryA Python enum for astronomical constellations with standard abbreviations
upload_time2025-07-14 02:52:24
maintainerNone
docs_urlNone
authorShunichi Horigome
requires_python>=3.8
licenseNone
keywords astronomy constellation enum abbreviation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```bash
pip install constellation-enum
```

## Usage

```python
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](LICENSE) file for details.

## Contributing

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gomeshun/constellation-enum",
    "name": "constellation-enum",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "astronomy, constellation, enum, abbreviation",
    "author": "Shunichi Horigome",
    "author_email": "Shunichi Horigome <shunichi.horigome@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/36/83/1d92c8c90e9f3fff96e404a93a44cad136693b36c59570e513c0aa318a5f/constellation_enum-0.1.0.tar.gz",
    "platform": null,
    "description": "# Constellation Enum\n\nA Python enum for astronomical constellations with standard abbreviations.\n\nThis package provides a comprehensive enum of all 88 modern constellations recognized by the International Astronomical Union (IAU), along with their standard 3-letter abbreviations.\n\n## Features\n\n- \u2728 All 88 IAU-recognized constellations\n- \ud83d\udd24 Standard 3-letter abbreviations\n- \ud83d\udc0d Pure Python, no dependencies\n- \ud83d\udcdd Full type hints support\n\n## Installation\n\n```bash\npip install constellation-enum\n```\n\n## Usage\n\n```python\nfrom constellation import Constellation\n\n# Example usage\nprint(Constellation.Andromeda)  # Directly access the enum member\nprint(Constellation['Andromeda'])  # Access by name\nprint(Constellation['And'])  # Access by abbreviation\n\n# Accessing name, abbreviation, and value\nprint(Constellation.Andromeda.name)  # 'Andromeda'\nprint(Constellation.Andromeda.abbr)  # 'And'\nprint(Constellation.Andromeda.value)  # 1 (auto-assigned value)\n\n# Comparing enum members\nprint(Constellation.Andromeda == Constellation['And'])  # True\n\n# Iterate through all constellations\nfor constellation in Constellation:\n    print(f\"{constellation.name} ({constellation.abbr})\")\n```\n\n## All Constellations\n\nThe enum includes all 88 modern constellations:\n\n- Andromeda (And), Antlia (Ant), Apus (Aps), Aquarius (Aqr), Aquila (Aql)\n- Ara (Ara), Aries (Ari), Auriga (Aur), Bo\u00f6tes (Boo), Caelum (Cae)\n- And 78 more...\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python enum for astronomical constellations with standard abbreviations",
    "version": "0.1.0",
    "project_urls": {
        "Bug Reports": "https://github.com/gomeshun/constellation-enum/issues",
        "Homepage": "https://github.com/gomeshun/constellation-enum",
        "Source": "https://github.com/gomeshun/constellation-enum"
    },
    "split_keywords": [
        "astronomy",
        " constellation",
        " enum",
        " abbreviation"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9f48fb7aa48a222854241a7d55be6a9c58794923962e1bbfaab34cb52079c216",
                "md5": "ab276b9064a1be989c2aa0703ac1fd17",
                "sha256": "ce8b04fea0358a625f53c77ac4d0f117233e9b40028c68fd05612dcc9ff8897a"
            },
            "downloads": -1,
            "filename": "constellation_enum-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ab276b9064a1be989c2aa0703ac1fd17",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 5088,
            "upload_time": "2025-07-14T02:52:23",
            "upload_time_iso_8601": "2025-07-14T02:52:23.202053Z",
            "url": "https://files.pythonhosted.org/packages/9f/48/fb7aa48a222854241a7d55be6a9c58794923962e1bbfaab34cb52079c216/constellation_enum-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "36831d92c8c90e9f3fff96e404a93a44cad136693b36c59570e513c0aa318a5f",
                "md5": "fe3f7828f1473f8360d18c7f44afa057",
                "sha256": "601268f9a24d127d7fc8486a3358d2a93bba22f3eeb8132a354b67dfb40a38db"
            },
            "downloads": -1,
            "filename": "constellation_enum-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "fe3f7828f1473f8360d18c7f44afa057",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5540,
            "upload_time": "2025-07-14T02:52:24",
            "upload_time_iso_8601": "2025-07-14T02:52:24.565460Z",
            "url": "https://files.pythonhosted.org/packages/36/83/1d92c8c90e9f3fff96e404a93a44cad136693b36c59570e513c0aa318a5f/constellation_enum-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-14 02:52:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gomeshun",
    "github_project": "constellation-enum",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "constellation-enum"
}
        
Elapsed time: 1.42083s