Install & Compatibility
Where this runs
tested against v2.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.024s · 18.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.020s · 19MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
beautiful_date
✓ from beautiful_date import beautiful_date
✗ import beautiful_date
importing the module directly gives access to the function; the correct usage is to import the function explicitly.
beautiful_time
✓ from beautiful_date import beautiful_time
beautiful_datetime
✓ from beautiful_date import beautiful_datetime
beautiful
✓ from beautiful_date import beautiful_date as bd
Aliasing is common but not required.
Creates date objects using month names. bd.January(1, 2023) returns a datetime.date(2023,1,1).
from beautiful_date import beautiful_date as bd
print(bd.January(1, 2023))
print(bd.today())
print(bd.now())
Errors
Common errors & fixes
AttributeError: module 'beautiful_date' has no attribute 'beautiful_date'
Importing the module incorrectly. The function is inside the module but imported as a symbol.
fixUse: from beautiful_date import beautiful_date
AttributeError: module 'beautiful_date' has no attribute 'January'
Trying to use month names directly after importing the module without importing the function.
fixCorrect import: from beautiful_date import beautiful_date as bd; then use bd.January(...)
ValueError: day is out of range for month
Passing invalid day number for given month, e.g., February 30.
fixCheck the day number is valid for the month. For February, days 1-28 (or 29 in leap year).
Upgrade
Version history
2.3.0latest on PyPI · released Sep 15, 2023
Audit
Dependencies
python-dateutiloptionalUsed internally for date parsing
pytzoptionalFor timezone support