Metadata-Version: 2.1
Name: schemaser
Version: 1.0.0
Summary: Converts a Python class or method to a JSON schema.
Home-page: https://github.com/legopitstop/schemaser
Author: Legopitstop
Author-email: officiallegopitstop@gmail.com
License: MIT
Keywords: json,jsonschema,schema,class,method
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# schemaser
Converts a Python class or method to a JSON schema.

## Install
```
pip install schemaser
```

## Example
```py
import schemaser

class MyClass():
    def __init__(self, string:str=None, integer:int=None, float:float=None):
        pass

    # Custom magic method for custom schemas
    # def __schema__(self):
    #     return {}

def MyMethod(value:str, **kw:cls):
    pass

def func1(string:str, integer:int, float:float, tuple:list[str,int], array:list[str|int], object:MyClass, func:MyMethod):
    pass

# Convert func1 method to JSON Schema.
dat = schemaser.to_schema(func1)
print(dat)
```
