Line 0
Link Here
|
|
|
1 |
Schematics is a Python library to combine types into structures, validate them, |
2 |
and transform the shapes of your data based on simple descriptions. |
3 |
|
4 |
The internals are similar to ORM type systems, but there is no database layer in |
5 |
Schematics. Instead, we believe that building a database layer is made |
6 |
significantly easier when Schematics handles everything but writing the query. |
7 |
|
8 |
Further, it can be used for a range of tasks where having a database involved |
9 |
may not make sense. |
10 |
|
11 |
Some common use cases: |
12 |
|
13 |
- Design and document specific data structures |
14 |
- Convert structures to and from different formats such as JSON or MsgPack |
15 |
- Validate API inputs |
16 |
- Remove fields based on access rights of some data's recipient |
17 |
- Define message formats for communications protocols, like an RPC |
18 |
- Custom persistence layers |
19 |
|
20 |
Note: This is the patched version from the 1.1.x branch that can pickle with |
21 |
multiprocessing using the old API. |
22 |
|
23 |
WWW: https://github.com/pombredanne/schematics |