Skip to main content

Gregorian and Chinese Lunar calendar converter with astrological details

Project description

lunar-converter

Gregorian and Chinese Lunar calendar converter with astrological details.

Install

pip 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_calc 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.0.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.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lunar_converter-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a55351b6fcb1342a92f410a3768f5378acb799d9a362beadf2349812a405b550
MD5 2200ab9b1a369eb0ba52f698cbdf23cc
BLAKE2b-256 749200e39667085c77606425ea0831b4fe8b461ccfea777a4bf3dd530e1457f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunar_converter-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lunar_converter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d082eb3ad1685785475801dd198f82f404e013640166adce923662fbdcf55028
MD5 10a209a1bb8633c00dbff2a8a0919d24
BLAKE2b-256 7ab24f24e01c3f79bd934c9eb8becbf16cb6200962f82286235e047121e0c51f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lunar_converter-0.1.0-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