Skip to main content

Gregorian and Chinese Lunar calendar converter with astrological details

Project description

lunar-converter

PyPI

Gregorian and Chinese Lunar calendar converter with astrological details.

Installation

uv tool install lunar-converter

Usage

lunar-converter

Interactive CLI with arrow-key navigation:

  • Gregorian → Chinese Lunar
  • Chinese Lunar → Gregorian

Output

For each conversion:

  • Gregorian: date, day of week, sun sign, element
  • Lunar: date, Chinese year name, zodiac animal, cosmic element, Ming (命)

API

from lunar_converter import gregorian_to_lunar, lunar_to_gregorian

result = gregorian_to_lunar(1990, 6, 15)
result = lunar_to_gregorian(1990, 5, 23)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lunar_converter-0.1.1.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lunar_converter-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file lunar_converter-0.1.1.tar.gz.

File metadata

  • Download URL: lunar_converter-0.1.1.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lunar_converter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 80c9e97dcb1685d8af1837868a80e3dbb3a0e11a8f7e11d74e5d07693797b962
MD5 ec6509618d55efbdfb1cd1c26f2157a3
BLAKE2b-256 6b2dcc60fcbee2db3ab2837ae577054c0c4ed424aae299d7105e431ac00caa4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunar_converter-0.1.1.tar.gz:

Publisher: publish.yml on frndvrgs/lunar-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lunar_converter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lunar_converter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37e24dcbb56fd92bdc22a3dadbd15a1a334b2627ad6aba9e435056ead0b45bff
MD5 a0e1b31334e3f33396a695689f6764d1
BLAKE2b-256 5e920b57da1280b4809bd816d45a57685d849989f4c5380e24552b2dd5ca92a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunar_converter-0.1.1-py3-none-any.whl:

Publisher: publish.yml on frndvrgs/lunar-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page