A lightweight model validator for modern projects.
Project description
bike
A lightweight model validator for modern projects.
Instalation
pip install bike
First Pedals
Lets define a simple model to represent a person.
import bike
@bike.model()
class Person:
name: str
height: float
weight: float
A Person instance can be created passing the attributes.
person = Person(name='Patrick Love', height=75, weight=180)
Also can be instatiated by a dict data.
data = {
'name': 'Patrick Love',
'height': 75,
'weight': 180
}
person = Person(**data)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bike-0.2.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
bike-0.2.0-py3-none-any.whl
(5.3 kB
view hashes)