Skip to main content

pyserde extension for datetime.timedelta.

import serde_timedelta
from serde import serde
from serde.json import to_json, from_json
from datetime import timedelta

# Initialize serde_timedelta extension.
serde_timedelta.init()


@serde
class Foo:
    a: timedelta


f = Foo(timedelta(hours=10))
json = to_json(f)
print(json)                  # Prints {"a":"PT10H"}
print(from_json(Foo, json))  # Prints Foo(a=datetime.timedelta(seconds=36000))

Metadata

Release files for pyserde-timedelta 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyserde-timedelta 0.1.1
File Size Uploaded Provenance Actions
pyserde_timedelta-0.1.1.tar.gz 2.2 kB Without provenance Details for pyserde_timedelta-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyserde-timedelta 0.1.1
File Interpreter ABI Platform Actions
pyserde_timedelta-0.1.1-py3-none-any.whl Python 3 none any Details for pyserde_timedelta-0.1.1-py3-none-any.whl

Total release size: 5.1 kB

Release files / pyserde_timedelta-0.1.1.tar.gz

Download URL pyserde_timedelta-0.1.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3977bf49656b5a3a0d8cb4d97c36e2b837844b6bcea4c5cc8dbace6f402025c0
BLAKE2b-256 checksum
How to use checksums
84d468ed006ea06e13795bb94b82def3f55f1c490d123f73117b1f0c99ed674f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.12 Linux/6.2.0-39-generic

Release files / pyserde_timedelta-0.1.1-py3-none-any.whl

Download URL pyserde_timedelta-0.1.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2668a0b6bfcf33acaa52de199b4472eb8919034b3495c311a95678d7d42e5306
BLAKE2b-256 checksum
How to use checksums
5abc58f0a454089e8505d817a4c562c8c1daa8f83705d041d720a48c7417fd66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.12 Linux/6.2.0-39-generic

Security for pyserde-timedelta 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1 This release

2 release files No 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