tartiflette_scalars
Project description
some useful scalars
Usage
from tartiflette import Scalar
from tartiflette_scalars import Json, ObjectId, AnyScalar
Scalar("Json")(Json) # gets anything
Scalar("AnyScalar")(AnyScalar) # infer the type, "2" becomes 2, "true" becomes True, etc.
Scalar("ObjectId")(ObjectId) # transform a 16 characters string into a bson.ObjectId
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
Close
Hashes for tartiflette_scalars-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a37e63e3c80b3e4ff90ecde062aa0a04f22040e70e5e401cd38ec0adf3d678 |
|
MD5 | c761bcd9d567de8fab8908ecdb1c2cb3 |
|
BLAKE2b-256 | 9cdecb4d5c7f6cf7e856ab84a7e4c3935730f9fc89832ec5a60676e3d3113ec6 |