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("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

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.3.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.3.0
File Size Uploaded Provenance Actions
tsukimoji-0.3.0.tar.gz 9.3 kB Without provenance Details for tsukimoji-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 16.2 kB

Release files / tsukimoji-0.3.0.tar.gz

Download URL tsukimoji-0.3.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d033bc5e14e19333a74fa2d99518506d8d5154dd3900d439a9debf811f1be386
BLAKE2b-256 checksum
How to use checksums
00f9c611377dfa943090d3010d5538c7660cde44bab3b0a6461fb665121f12a0
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.3.0-py3-none-any.whl

Download URL tsukimoji-0.3.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca2635ca7404381088ef8846ce1804c08682e8db2544a9fb94f1469d6a243be2
BLAKE2b-256 checksum
How to use checksums
81d7c7a7e8966712a23f945eddaa57632de87cb91ed06ee43eb8f7653936902f
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.3.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