Skip to main content

tsukiMOJi

Moon phase emoji for any date. 月 (tsuki, "moon") + moji, as in emoji. In Japanese: つきもじ.

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

# Moon faces: 🌚 for New Moon and 🌝 for Full Moon
emoji(datetime(2026, 10, 26, 4, tzinfo=timezone.utc), faces=True)  # "🌝"

Phase calendar

from tsukimoji import calendar, calendar_csv, calendar_json, calendar_text, calendar_ics

calendar("2026-10")                  # one CalendarDay per day of October 2026
calendar_csv("2026-11", "2027-02")   # November through February, as CSV
calendar_json(2026)                  # the whole year, as JSON
calendar_text("2026", "2027")        # two years of month grids, as text
calendar_ics(2027)                   # 2027's new moons, quarters and full moons, as .ics

Pass a year ("2026" or 2026), a month ("2026-10"), a day ("2026-10-04") or a date, plus an optional second one to make a range. Each new moon, quarter and full moon appears on the day it happens, with the exact time. See the main README for the formats.

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


Made in Baltimore   ☕ Buy me a coffee · こーひーをおごって

Metadata

Release files for tsukimoji 0.4.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 tsukimoji 0.4.0
File Size Uploaded Provenance Actions
tsukimoji-0.4.0.tar.gz 9.8 kB Without provenance Details for tsukimoji-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tsukimoji 0.4.0
File Interpreter ABI Platform Actions
tsukimoji-0.4.0-py3-none-any.whl Python 3 none any Details for tsukimoji-0.4.0-py3-none-any.whl

Total release size: 17.2 kB

Release files / tsukimoji-0.4.0.tar.gz

Download URL tsukimoji-0.4.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cd20b3255f2a47509210ff914b8917d1cf56a2dcb73ebe70062dca196accc3ba
BLAKE2b-256 checksum
How to use checksums
174aa9aacdcab9f67fdd40411cadb23cc09eb359297632c673a05b01fe955ed0
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.4.0-py3-none-any.whl

Download URL tsukimoji-0.4.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1a5ce57b21d8686af9798f7fde716344455d37c2e066c8360c25aef2002507f
BLAKE2b-256 checksum
How to use checksums
cfb940a19dce26bd9cbb95304b6bae132bc24d5c993cb2a79091793f727584af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Security for tsukimoji 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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