$ show arrow-py/arrow
Arrow is a Python library providing enhanced date and time manipulation capabilities, serving as a drop-in replacement for datetime with improved usability. It offers timezone-aware objects, human-readable time deltas, flexible parsing/formatting, and time span generation. The architecture centers around an immutable Arrow class with factory methods for creation, supplemented by dedicated modules for parsing, formatting, localization, and utilities. The library follows Python best practices with type hints, comprehensive testing, and clear separation of concerns. Its locale system supports over 60 languages for internationalized date representation.
The LLM identified 1 files worth highlighting for reuse:
The locale system provides a base Locale class with registry mechanism for language-specific date/time formatting and humanization. It uses inheritance and method overriding to handle grammatical nuances across 60+ locales (e.g., Slavic plural forms, Arabic special cases). The get_locale function offers a clean API for locale retrieval, making this component easily extractable for any project requiring localized date formatting without tight coupling to Arrow's core.