types-pyrfc3339 provides high-quality static type annotations (typing stubs) for the pyRFC3339 library. pyRFC3339 itself is a Python library that parses and generates RFC 3339-compliant timestamps using Python's `datetime.datetime` objects. This stub package, currently at version 2.0.1.20250825, is automatically generated and released from the community-driven Typeshed repository, typically with daily updates to keep pace with changes in the runtime library.
pip install types-pyrfc3339Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates basic usage of the `pyrfc3339` library for generating and parsing RFC 3339 timestamps. With `types-pyrfc3339` installed, a static type checker can verify the correctness of the types used in these operations, catching potential errors before runtime.
Ensure both `pip install pyrfc3339` and `pip install types-pyrfc3339` are run. The stub package alone provides no runnable code.
For critical projects, consider pinning both `pyRFC3339` and `types-pyrfc3339` to compatible versions. Regularly update both packages and re-run your type checker.
Always use `from pyrfc3339 import generate, parse` (or other symbols) for runtime code. The `types-*` prefix is an installation convention, not an import path.