semvec/pypi-packages huggingface dataset:
jsonschema-extractor 2.0.2
"a framework to extract jsonschemas from a variety of models."

====================
jsonschema-extractor
====================

jsonschema-extractor is a library and extensible framework for
extracting `json schema <http://json-schema.org/>`_ from various object and
primitives.

.. image:: https://github.com/toumorokoshi/jsonschema-extractor/actions/workflows/python-package.yaml/badge.svg
    :target: https://github.com/toumorokoshi/jsonschema-extractor/actions/workflows/python-package.yaml

Out of the box support exists for:

- `attrs <https://attrs.readthedocs.io/>`_
- `typing <https://docs.python.org/3/library/typing.html>`_

-----
Usage
-----

.. code-block:: python


    from typing import List
    import jsonschema_extractor
    assert jsonschema_extractor.extract(List[int]) == {
        "type": "array",
        "items": {"type": "integer"}
    }


-------------
Attrs-example
-------------

.. code-block:: python

    import attr
    from attr.validators import instance_of
    import jsonschema_extractor

    @attr.define
    class Example(object):
        integer: int = attr.field()
        foo = attr.field(metadata={"jsonschema": {"type": "string", "format": "uuid"}})
        validator_list: List[float] = attr.field()
        string: str = attr.field(
            default="foo",
            metadata={"description": "This is an description."}
        )

    assert extractor.extract(Example) == {
        "type": "object",
        "title": "Example",
        "properties": {
            "string": {"description": "This is an description.", "type": "string"},
            "integer": {"type": "integer"},
            "validator_list": {"items": {"type": "number"}, "type": "array"},
            "foo": {"type": "string", "format": "uuid"},
        },
        "required": ["integer", "foo", "validator_list"],
    }
pyarithops 0.0.1
A package for evaluation of Arithmetic operations.
Requires Python: >=3.7

# About [PyArihtOps] Package

This is a simple package which helps in the calculation. You can see it at GitHub also

## How to install it on Windows
```
pip install pyarithops
```
## How to install it on Linux
```
sudo pip3 install pyarithops
```
## How to use it

### Initializing the Package

```
from pyarithops import PyArithOps

num1 = 7
num2 = 3

calc = PyArithOps(num1, num2)
```

### Adding two numbers
```
calc.addition()
```
### Subtracting two numbers
```
calc.subtraction()
```
### Multiplying two numbers
```
calc.multiplication()
```
### Dividing two numbers
```
calc.division()
```