Skip to main content

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


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)

Uploaded Source

Built Distribution

bike-0.2.0-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page