Skip to main content

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.

Files for tartiflette-scalars, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size tartiflette_scalars-0.0.6.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page