root/alpine313/: pyrfc3339-2.1.0 metadata and description

Simple index PyPI page

Generate and parse RFC 3339 timestamps

author_email Kurt Raschke <kurt@kurtraschke.com>
classifiers
  • Development Status :: 5 - Production/Stable
  • Intended Audience :: Developers
  • Programming Language :: Python
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3 :: Only
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
  • Topic :: Internet
description_content_type text/x-rst
dynamic
  • license-file
keywords rfc-3339, timestamp, iso-8601, datetime
license_expression MIT
license_file
  • LICENSE.txt
project_urls
  • Homepage, https://github.com/kurtraschke/pyrfc3339
  • Documentation, https://pyrfc3339.readthedocs.io/
  • Repository, https://github.com/kurtraschke/pyRFC3339.git
  • Bug Tracker, https://github.com/kurtraschke/pyRFC3339/issues
  • Changelog, https://github.com/kurtraschke/pyRFC3339/blob/main/CHANGES.rst
requires_python >=3.9
File Tox results History
pyrfc3339-2.1.0-py3-none-any.whl
Size
7 KB
Type
Python Wheel
Python
3

Description

Build Status Documentation Status

pyRFC3339 parses and generates RFC 3339-compliant timestamps using Python datetime.datetime objects.

>>> from pyrfc3339 import generate, parse
>>> from datetime import datetime, timezone
>>> generate(datetime.now(timezone.utc)) #doctest:+ELLIPSIS
'...T...Z'
>>> parse('2009-01-01T10:01:02Z')
datetime.datetime(2009, 1, 1, 10, 1, 2, tzinfo=datetime.timezone.utc)
>>> parse('2009-01-01T14:01:02-04:00')
datetime.datetime(2009, 1, 1, 14, 1, 2, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=72000)))

Installation

To install the latest version from PyPI:

$ pip install pyRFC3339

To install the latest development version:

$ pip install https://github.com/kurtraschke/pyRFC3339/tarball/main#egg=pyRFC3339-dev

Tests as well as enforcement of code style, formatting, and type safety are run with tox:

$ tox

To build the documentation with Sphinx:

$ tox -e docs

The documentation is also available online at:

https://pyrfc3339.readthedocs.io/