Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spotify/pyschema
Python library for class-based schema definition, object serialization and data validation
https://github.com/spotify/pyschema
Last synced: 27 days ago
JSON representation
Python library for class-based schema definition, object serialization and data validation
- Host: GitHub
- URL: https://github.com/spotify/pyschema
- Owner: spotify
- License: apache-2.0
- Archived: true
- Created: 2014-09-11T12:28:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-19T15:27:23.000Z (about 9 years ago)
- Last Synced: 2024-10-30T17:45:14.956Z (about 1 month ago)
- Language: Python
- Size: 982 KB
- Stars: 62
- Watchers: 110
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-python-models - pyschema - Python library for class-based schema definition, object serialization and data validation. (Model, Schema)
README
#PySchema
PySchema is a library for Python class declaration with typed fields that can be introspected and have data contracts associated with them. This allows for better data integrity checks when serializing/deserializing data and safe interaction with external tools that require typed data.
The foremost design principle when creating the library was to keep the definitions very concise and easy to read. Inspiration was taken from Django's ORM and the main use cases in mind has been database interaction (Postgres) and Apache Avro schema/datum generation.
PySchema has been tested on Python 2.6 and Python 2.7
For documentation and more info see http://spotify.github.io/pyschema/