--- id: pyrfc3339 version: "2.1.0" license: MIT license_treatment: permissive maintenance: active --- # pyRFC3339 — Generate and parse RFC 3339 timestamps License: permissive · Maintenance: active · Downloads: 15.5M/mo ## What it is and what it does pyRFC3339 is a lightweight library for working with RFC 3339-compliant timestamps in Python. It provides two core functions: `generate()` converts a timezone-aware datetime object into an RFC 3339 string, and `parse()` converts an RFC 3339 string back into a datetime object with proper timezone information. The library handles the details of timestamp formatting and parsing so you don't have to manually construct or interpret RFC 3339 strings. This is useful for any application that needs to exchange timestamps with APIs, databases, or other systems that expect RFC 3339 format—a standard used widely in web services and data interchange. The library has no external dependencies and supports current Python versions from 3.9 onward, making it straightforward to add to any project. Use it for: - Serialize datetime objects to RFC 3339 strings for REST API responses or JSON payloads. - Parse RFC 3339 timestamps from external APIs or configuration files into Python datetime objects. - Ensure consistent timestamp formatting across services that require RFC 3339 compliance. - Handle timezone-aware datetime conversions without manual string manipulation. - Generate audit logs or event timestamps in a standardized, interoperable format. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Parses and generates RFC 3339-compliant timestamps using Python datetime objects, converting between string representations and timezone-aware datetime instances. Yes. pyRFC3339 is a stable, actively maintained library with zero dependencies, permissive licensing, and no known vulnerabilities. Install it if you need to work with RFC 3339 timestamps; the low friction and narrow, well-defined scope make it a reliable choice for timestamp serialization and parsing. ## Install pip install pyrfc3339 uv add pyrfc3339 poetry add pyrfc3339 ## Installing pyRFC3339 Before you install: Low install friction with no runtime dependencies. Actively maintained as of 2026-08-09 with recent release history. License in practice: MIT license permits unrestricted use, modification, and distribution with minimal restrictions. Quickstart: pip install pyRFC3339 from pyrfc3339 import generate, parse from datetime import datetime, timezone generate(datetime.now(timezone.utc)) parse('2009-01-01T10:01:02Z') Requires Python 3.9 or later. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 15.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags rfc 3339 timestamp parser, iso 8601 datetime generator, timezone-aware datetime conversion, rfc 3339 compliance, timestamp parsing library, datetime string formatting, iso timestamp handler, timestamp-handling, rfc-3339, datetime-conversion [View on SkillFed](https://skillfed.io/packages/pyrfc3339) · [View on PyPI](https://pypi.org/project/pyrfc3339/)