pydantic_schemaorg
Use Schema.org types in pydantic!
Pydantic_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.8
How to install
pip install pydantic-schemaorg
Import any class you want to use by with the following convention
from pydantic_schemaorg.<SCHEMAORG_MODEL_NAME> import <SCHEMAORG_MODEL_NAME>
A full (hierarchical) list of Schema.org model names can be found here
Example usages
from pydantic_schemaorg.ScholarlyArticle import ScholarlyArticle
scholarly_article = ScholarlyArticle(url='https://github.com/lexiq-legal/pydantic_schemaorg',
sameAs='https://github.com/lexiq-legal/pydantic_schemaorg',
copyrightNotice='Free to use under the MIT license',
dateCreated='15-12-2021')
print(scholarly_article.json())
{"@type": "ScholarlyArticle", "url": "https://github.com/lexiq-legal/pydantic_schemaorg", "sameAs": "https://github.com/lexiq-legal/pydantic_schemaorg", "copyrightNotice": "Free to use under the MIT license", "dateCreated": "15-12-2021"}
Metadata
Release files for pydantic-schemaorg 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydantic_schemaorg-1.0.6.tar.gz | 343.8 kB | Without provenance | Details for pydantic_schemaorg-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydantic_schemaorg-1.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pydantic_schemaorg-1.0.6-py2.py3-none-any.whl |
Total release size: 1.2 MB
Release files / pydantic_schemaorg-1.0.6.tar.gz
| Download URL | pydantic_schemaorg-1.0.6.tar.gz |
|---|---|
| Size | 343.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce072a5fe9f08be781acbc45a3a33db1ec85150b7085beba90dfd75b14a9ab1f
|
|
BLAKE2b-256 checksum How to use checksums |
3b94303527dc76ce0a0400ba0108239c40c4e4887eb14d653dd1bda42e41381a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.10 Linux/5.4.0-1069-azure
|
Release files / pydantic_schemaorg-1.0.6-py2.py3-none-any.whl
| Download URL | pydantic_schemaorg-1.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 842.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2c07fff5ff78ae22d800d7d749ab0b043778e45798807fba3c2e33add2d324db
|
|
BLAKE2b-256 checksum How to use checksums |
428ad69c2c43ea34d3b3cc276e9f287d41e83ab2da1b52ea2a241d2cfd5b36a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.10 Linux/5.4.0-1069-azure
|
Security for pydantic-schemaorg 1.0.6
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.