Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tartiflette_scalars-0.0.6.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file tartiflette_scalars-0.0.6.tar.gz.

File metadata

  • Download URL: tartiflette_scalars-0.0.6.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for tartiflette_scalars-0.0.6.tar.gz
Algorithm Hash digest
SHA256 da3223c72ca84192435a8c43592c646bdcc79979f9f342bad8260815ce2e436a
MD5 ed17622c49761bb2f72adb51c9a998d8
BLAKE2b-256 e9d59e75c44a41e661115e035b6f251f0241cf2a503527f39caf165bc4e0ec22

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page