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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2ed13132aa795dd8ce14e33ce0807c7eb57c26eaa6bbb8f1dd98923cc544d6f |
|
MD5 | 567d3c99b6b95e093decfbae171e257c |
|
BLAKE2b-256 | eba9ded77424d3764a68a0495f0536289be318882dd478c7e983939a896094d4 |