Skip to main content

pydantic2_schemaorg

PyPi version

Use Schema.org types in pydantic!

pydantic2_schemaorg contains all the models defined by schema.org. The pydantic classes are auto-generated from the schema.org model definitions that can be found on https://schema.org/version/latest/schemaorg-current-https.jsonld

Requirements

Works with python >= 3.10

How to install

pip install pydantic2-schemaorg

Import any class you want to use by with the following convention

from pydantic2_schemaorg.<SCHEMAORG_MODEL_NAME> import <SCHEMAORG_MODEL_NAME>

A full (hierarchical) list of Schema.org model names can be found here

Example usages

from pydantic2_schemaorg.ScholarlyArticle import ScholarlyArticle

scholarly_article = ScholarlyArticle(
    url='https://github.com/blurry-dev/pydantic2-schemaorg/pydantic2_schemaorg',
    sameAs='https://github.com/blurry-dev/pydantic2-schemaorg/pydantic2_schemaorg',
    copyrightNotice='Free to use under the MIT license',
    dateCreated='15-12-2021'
)
print(scholarly_article.json())
{"@type": "ScholarlyArticle", "url": "https://github.com/blurry-dev/pydantic2-schemaorg/pydantic2_schemaorg", "sameAs": "https://github.com/blurry-dev/pydantic2-schemaorg/pydantic2_schemaorg", "copyrightNotice": "Free to use under the MIT license", "dateCreated": "15-12-2021"}

Metadata

Release files for pydantic2-schemaorg 0.3.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 pydantic2-schemaorg 0.3.0
File Size Uploaded Provenance Actions
pydantic2_schemaorg-0.3.0.tar.gz 345.0 kB With provenance Details for pydantic2_schemaorg-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydantic2-schemaorg 0.3.0
File Interpreter ABI Platform Actions
pydantic2_schemaorg-0.3.0-py3-none-any.whl Python 3 none any Details for pydantic2_schemaorg-0.3.0-py3-none-any.whl

Total release size: 1.3 MB

Release files / pydantic2_schemaorg-0.3.0.tar.gz

Download URL pydantic2_schemaorg-0.3.0.tar.gz
Size 345.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8b11b3809bd5b26788520182a1b642861c1ea69d2df00ae8d8984ed1249aba47
BLAKE2b-256 checksum
How to use checksums
2d6521fce94d6db9e15ae0e2a31de72921682662b03a084d8a8f0d86537ddb46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 Jan 8, 2025.

Transparency log

Release files / pydantic2_schemaorg-0.3.0-py3-none-any.whl

Download URL pydantic2_schemaorg-0.3.0-py3-none-any.whl
Size 910.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e8f51cd9ffaaa059a31c064cb3119328b7dd07203b7a18c040f2bfb76cee371
BLAKE2b-256 checksum
How to use checksums
dd673521f38745efb177b89185a94bde34eddfa8e4e5066db0cc46ff45db173d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 Jan 8, 2025.

Transparency log

Security for pydantic2-schemaorg 0.3.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pydantic2_schemaorg-0.3.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 Jan 8, 2025.

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.

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