Metadata-Version: 2.4
Name: bridgetime
Version: 0.1.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: pytest>=8.0 ; extra == 'dev'
Provides-Extra: dev
Summary: BridgeTime: Rust-powered Day.js/Moment-style datetime toolkit
Home-Page: https://bridgerust.dev
Author-email: BridgeRust <hello@kologojosias.com>
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/bridgerust/bridgerust
Project-URL: Issues, https://github.com/bridgerust/bridgerust/issues
Project-URL: Repository, https://github.com/bridgerust/bridgerust

# bridgetime (Python)

BridgeTime is a Rust-powered datetime toolkit with a Day.js/Moment-style API exposed to Python.

## Install

```bash
pip install bridgetime
```

## Quickstart

```python
from bridgetime import BridgeTime, supported_units

now = BridgeTime.now("UTC")
print(now.to_iso())

ny = now.to_timezone("America/New_York")
print(ny.format("YYYY-MM-DD HH:mm:ss"))

future = now.add(2, "week").start_of("day")
print(future.to_iso())

print(supported_units())
```

## Build Locally

```bash
cd bindings/python/bridgetime
maturin develop
```

