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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file bike-0.2.0.tar.gz.

File metadata

  • Download URL: bike-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.8 Darwin/21.3.0

File hashes

Hashes for bike-0.2.0.tar.gz
Algorithm Hash digest
SHA256 44f7ab52a16262aeb36e5ea3459e2f9fc2a31092ab48c05871e56ab86400b1f4
MD5 38b407a3e79973a2ef9289d555f19026
BLAKE2b-256 9cb212ed2b4d70751c70d34a68abeec9af6d27618517b0599596bad5619e35ad

See more details on using hashes here.

File details

Details for the file bike-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bike-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.8 Darwin/21.3.0

File hashes

Hashes for bike-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d580f927f3ef0243e516a3585aa6c7f9ac1189cf73c2ed10b86fc95f32a1b1b9
MD5 84d66513de914595990a9871c32f8cf9
BLAKE2b-256 5c0d20bd30511853ae9176372f73fa12ebcd05db658408d4a2ce6714c687ffa3

See more details on using hashes here.

Supported by

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