Skip to main content

brightdate-python

Python reference slice for BrightDate — decimal SI days since the J2000.0 UTC label (946_727_935_816 Unix ms → BD 0). Full semantics: specification. Multi-language reference: @brightchain/brightdate.

Repository: Digital-Defiance/brightdate-python

Install

pip install brightdate

BrightVision dev (submodule):

git submodule update --init brightdate-python
pip install -e brightdate-python

Example

from brightdate import J2000_UNIX_MS, bd_from_unix_ms, format_bd_scalar, from_iso, now, to_iso

assert J2000_UNIX_MS == 946_727_935_816
assert abs(from_iso("2000-01-01T11:58:55.816Z")) < 1e-12
print(format_bd_scalar(now()))
print(to_iso(0.0))  # 2000-01-01T11:58:55.816Z

v0.1 scope

Included Planned (npm parity)
Epoch constants, Unix↔BD, now() Leap-second table, TAI↔UTC
format_bd_scalar, millidays, ETC BrightInstant, archival types
parse_bd_bounds (btime stderr) Serialization, astronomy helpers
from_iso / to_iso (UTC label) Leap-second :60 in to_iso

Tests

pip install -e ".[dev]"
pytest -q

Publish

See PUBLISH.md.

Consumers

Metadata

Release files for brightdate 0.1.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 brightdate 0.1.0
File Size Uploaded Provenance Actions
brightdate-0.1.0.tar.gz 5.8 kB With provenance Details for brightdate-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.1 kB

Release files / brightdate-0.1.0.tar.gz

Download URL brightdate-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7dcd3c3aec2ef5bf6a3e6e03fbe0b6166432093a4bab708929ecc87fce787573
BLAKE2b-256 checksum
How to use checksums
271f37064bf5a7bec3bf29750d56e03e68720cc681bc4c055a8e0c6834e35261
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release files / brightdate-0.1.0-py3-none-any.whl

Download URL brightdate-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c48d040c504f8da9c5bf9ec4c762feea358c976bb9824d8be79e3e831b7b8eb
BLAKE2b-256 checksum
How to use checksums
d5916985106c4aeb23c35d41e8b9a3eae80b8371d5344b5288e46a0a00ceb148
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Security for brightdate 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for brightdate-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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