tsukiMOJi
Moon phase emoji for any date. 月 (tsuki, "moon") + moji, as in emoji.
from tsukimoji import get_moon_phase, emoji
phase = get_moon_phase()
phase.emoji # "🌔"
phase.name # "Waxing Gibbous"
phase.age_days # 12.3
phase.illumination # 0.87
emoji() # just the emoji, for "now"
from datetime import datetime, timezone
get_moon_phase(datetime(2026, 1, 1, tzinfo=timezone.utc)) # phase for any specific time
Installation
pip install tsukimoji
How it works
tsukiMOJi measures elapsed time since a known new moon (2000-01-06 18:14 UTC) against the synodic month (29.530588853 days) to find how far into the current lunar cycle a given moment falls, then maps that fraction onto the eight standard moon-phase emoji (🌑🌒🌓🌔🌕🌖🌗🌘). Illumination is derived separately from the same cycle position via a cosine curve, for display purposes.
License
MIT
Metadata
Release files for tsukimoji 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tsukimoji-0.1.1.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tsukimoji-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / tsukimoji-0.1.1.tar.gz
| Download URL | tsukimoji-0.1.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35eea3504ba420cb0e1bd084409eac452101affcd6c2c83b0f6cffd50858cff3
|
|
BLAKE2b-256 checksum How to use checksums |
7ad41c8e206bf15d33b2ad272fb6b62a8c2daf488c4f16fb964377eed9e3243b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Release files / tsukimoji-0.1.1-py3-none-any.whl
| Download URL | tsukimoji-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7149972636e803697f5a89285a407da47fe49faadb9e29545039a097e259299
|
|
BLAKE2b-256 checksum How to use checksums |
c53101b32ec1b5f67ffb4da8615bb17f8d379815e37cebe820a37ecb1d9aaafb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|