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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a6061be7ecef110dd3d303b3e53a35935449d6008edf959d7624af5b703985 |
|
MD5 | 1ca891274462d2ca0940fa8fc410e20c |
|
BLAKE2b-256 | 442e46795885c4bf180f23aa870252a4e09936f444b2c5bb285f0ca171a41452 |