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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34849ca2afdf2056b70cbb8eb8967a369a354a7cf6872fb4329b2f36bb641eaf |
|
MD5 | 4e775c7d6a2db4044fa7c83bd6b190b9 |
|
BLAKE2b-256 | 9a602caa5ad659094ea662564ac01948292abc80eeaa81aa2d1a5e134ddbbfc2 |