semvec/pypi-packages huggingface dataset:
loggy-py 0.1.0
Add your description here
Requires Python: >=3.12

#\x00 \x00l\x00o\x00g\x00g\x00y\x00-\x00p\x00y\x00
\x00
\x00A\x00 \x00P\x00y\x00t\x00h\x00o\x00n\x00 \x00l\x00o\x00g\x00g\x00i\x00n\x00g\x00 \x00l\x00i\x00b\x00r\x00a\x00r\x00y\x00.\x00
bfg-schemautil 0.2.0
A set of utilities to generate JSON Schema from simple JSON objects
Requires Python: >=3.10

JSON Schema is good but very verbose. Writing it by hand is hard.
This library defines a simpler version of JSON Schema. It supports only part of the full spec and turns that simpler format into standard JSON Schema.

Examples:

an object

```json
{
    "x": "string",
    "y": "number",
}
```

nullable fields

```json
{
    "x?": "string",
}
```

"x?" is a shortcut for

```json
{
    "x": ["string", "null"],
}
```

union fields

```json
{
    "x": ["string", "number"],
}
```

array

```json
{
    "x": ["string"],
}
```

enum (uses set type in python)

```json
{
    "x": {1,2,3,"unknown",null},
}
```

complex union type

```json
{
    "x": [
        "number",
        { "z": "string" },
    ],
}
```

By default, the object schema is strict: all properties are required, and no extra properties are allowed.

Code example:

```python
from schemautil import object_schema

object_schema({
    "x": "string",
    "y": "number",
})
```