Skip to main content

StrictYAMLJSONSchema

Translate JSON schemas in to StrictYAML schema.

Simple example:

{
    "type": "object",
    "properties": {
        "age": {
            "type": "integer"
        },
        "name": {
            "type": "string"
        },
        "possessions": {
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "required": ["age", "name", "possession"]
}
# All about the character
name: Ford Prefect
age: 42
possessions:
- Towel
from strictyamljsonschema import load_schema
from strictyaml import load
import json

Parse correctly:

print(load(yaml_snippet, load_schema(json.loads(json_schema))).data)
OrderedDict([('name', 'Ford Prefect'), ('age', 42), ('possessions', ['Towel'])])

Install

$ pip install strictyamljsonschema

Metadata

Release files for strictyamljsonschema 0.1.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 strictyamljsonschema 0.1.0
File Size Uploaded Provenance Actions
strictyamljsonschema-0.1.0.tar.gz 3.2 kB Without provenance Details for strictyamljsonschema-0.1.0.tar.gz

Release files / strictyamljsonschema-0.1.0.tar.gz

Download URL strictyamljsonschema-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bb274f2cc0eee3426a4b40f4fa7a31eef82bce8d3edbac0b211c0c1f4c5be8a4
BLAKE2b-256 checksum
How to use checksums
ba6b6e3aee092626d9deeba02910ab6a8e9f13da72d7cb93a8eb99505a793083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Security for strictyamljsonschema 0.1.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.

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

1 release file 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