Skip to main content

A modern Python datetime library inspired by PHP Carbon

Project description

Carbonic

A modern Python datetime library inspired by PHP Carbon, built with stdlib zoneinfo, dataclasses for immutability, and comprehensive localization support.

Carbonic provides an intuitive and fluent API for working with dates and times in Python, leveraging modern Python features for better type safety and performance.

Features

  • 🚀 Fluent and immutable API - Built with dataclasses for type safety
  • 🌍 Stdlib zoneinfo - Uses Python's built-in timezone support (no external dependencies)
  • 🔒 Immutable by design - All operations return new instances
  • 🌐 Full i18n support - English, Polish, and extensible locale system
  • High performance - Minimal overhead with stdlib components
  • 🔧 Comprehensive formatting - Extensive date/time formatting options
  • 📝 Human-readable differences - Localized relative time descriptions
  • 🎯 Type-safe - Full type hints throughout

Installation

pip install carbonic

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carbonic-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carbonic-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file carbonic-0.1.0.tar.gz.

File metadata

  • Download URL: carbonic-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.19

File hashes

Hashes for carbonic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 81c3a5b569549e69cc4134797211ee9f8e3f4afea2c181517f5ece82377e4556
MD5 a9e280cb091af811b3edda0bfab65048
BLAKE2b-256 8691ad8be7a9b488ffd368e2b16266cdee41bd52c280e4509b53977c3dd4e0ca

See more details on using hashes here.

File details

Details for the file carbonic-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: carbonic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.19

File hashes

Hashes for carbonic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f97943904839fccf89f3da8bbb1b8ddc27f32f554a035ccf4e9fcb2cad46d31
MD5 2f73335f3c166f3450961d9caf99433d
BLAKE2b-256 0884e9e7e3055c3e3a0e570ef5245fd3a5f84300433e95a80c8223c08180fce3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page