Skip to main content

A query engine for any combination of data sources. Query your files and APIs as if they were databases!

Project description

trustfall — Python bindings

Use the Trustfall query engine from Python.

API

Create a schema object:

from trustfall import Schema

my_schema = Schema(
    """
    Your schema text here, written in GraphQL SDL.

    See an example schema here:
    https://github.com/obi1kenobi/trustfall/blob/main/pytrustfall/numbers.graphql
    """
)

Create an adapter with which to query the schema:

from typing import Any, Dict

from trustfall import Adapter

# Choose the type that is used to represent data vertices:
Vertex = Dict[str, Any]

class MyAdapter(Adapter[Vertex]):
    # Implement the four abstract methods from Adapter.
    ...

Execute queries:

from trustfall import execute_query

my_adapter = MyAdapter(...)

my_query = """
query {
    # your query here
}
"""
args = {
    # query arguments here
}

results_iterator = execute_query(
    my_adapter,
    my_schema,
    my_query,
    args,
)
for result in results_iterator:
    print(result)

Installing trustfall

This package is a wrapper around the Trustfall query engine, which is written in Rust.

Wheels are available for Windows, macOS (both x86 and ARM), and Linux (manylinux), for each supported version of CPython (3.10+).

This package should work on other platforms as well, in which case its Rust components may need to be compiled from source as part of the installation process.

If you get errors while installing this package, please report your OS and architecture info in an issue.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

trustfall-0.2.1-cp314-cp314-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.14Windows x86-64

trustfall-0.2.1-cp314-cp314-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

trustfall-0.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

trustfall-0.2.1-cp314-cp314-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

trustfall-0.2.1-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 MB view details)

Uploaded CPython 3.14macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

trustfall-0.2.1-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

trustfall-0.2.1-cp313-cp313-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

trustfall-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

trustfall-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

trustfall-0.2.1-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

trustfall-0.2.1-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

trustfall-0.2.1-cp312-cp312-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

trustfall-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

trustfall-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

trustfall-0.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

trustfall-0.2.1-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

trustfall-0.2.1-cp311-cp311-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

trustfall-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

trustfall-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

trustfall-0.2.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

trustfall-0.2.1-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10Windows x86-64

trustfall-0.2.1-cp310-cp310-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

trustfall-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

trustfall-0.2.1-cp310-cp310-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

trustfall-0.2.1-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 MB view details)

Uploaded CPython 3.10macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file trustfall-0.2.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: trustfall-0.2.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trustfall-0.2.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 682eab9d95573e81eb1a8b7b05c88baed256c0e3a6bd5439793b5819ab2c16b0
MD5 40be89e7df7e680748079cd96d03b5ef
BLAKE2b-256 6d49a743a97648922a570835c8dd37d5e155bca11759416877f814f1528c6a3d

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9c8c3ceeeab60b0081358784795ea962b8af0e3321eb6046c5ac148e88bc09ec
MD5 f3833142ddeabdd53c6c5bf53b8c57c0
BLAKE2b-256 ccc0d7164b3a7c4dd31994fe0f605e522fe191ea66d131f091d61437358c3be9

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 942041ee52f24ee4abcdc96610221f09c71675485ed015f57fd177e7b54754ab
MD5 ff9c6a1fd295d337a241b2bdb3c5325c
BLAKE2b-256 a460da53aa4c897f4a8d528da2a14090c83f878d7919cfa78fd944f298237c0d

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 090ae603bb21e5c517d91e63a87f40252bd8ae02683aad88fdb1387d037fea6e
MD5 f89a8d2d417431875b417dbfee120850
BLAKE2b-256 460e0c247646e0d73ca3ce1df20f131cb27239fe63719866f1298eabef960334

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 52dba6fece1a8672369b3b1b06eec84d5b3a04cff53ce5744440877f74f9ae5d
MD5 6850d47b6535e294cdb7bb8677983679
BLAKE2b-256 b8c3141f0fe370c3a142fd0c653a00a122989475172e3372929f958e431b8cd0

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: trustfall-0.2.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trustfall-0.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3ab502253b9ae1aa16ede114ce0ff89a4de07e6847b3151e1672e75c316fa0f0
MD5 07bfd123ab0736abe421f82edcf67392
BLAKE2b-256 8b582b88a233d46a647338ef3e7f4f0bb0856a42d5613d5434a453e6d8e9f16a

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3373016d31f09f91bb27e582e32c907fffe1671487417bc12773c6d1624f2e21
MD5 6b776d0c38b0be0041d0dd7abee4be7c
BLAKE2b-256 b2930e215a3b4920e0e26c555fe6138143d9708695a51ff7ef677649cc2f0b60

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e43b4b93ef6421930ca6d64272e2a7f6a662ccbf3e85a3f9818085f79421cec
MD5 804d43959540074bc1bdf3375499a461
BLAKE2b-256 9fa59fff6d58b0ca65ee6730b90ee5775c3fa2a5860d1afb4b3d78bd373a6f9c

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c592dbed029ecb7aefddd9f28316a924dbcd7094689b6eace86c26e6436c4f1d
MD5 06fdc6384efe9eb97d56c80f8d9a377e
BLAKE2b-256 9b929eef7e7cb64cd5c24727de437f2854ca4cc6104a93101c4864ebf3e57940

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 fbcd96849d4476cfa2978f90082a63f890ee1100cf33f99e5468cff29da97c81
MD5 396c1ae11853196f3951d4578ca7ff4f
BLAKE2b-256 1ce0c86dde05452559ff84676cd40daca9b513dacd6ababd031482c10870dce6

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: trustfall-0.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trustfall-0.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b2501ed2d3ffce0f8f85603a24b9a01d725cec5358cd9767a0abfbacb2d679ee
MD5 e9d3a4ffc165995a50310c882301eda8
BLAKE2b-256 878379038cf7db9704c668ac4fcca1707c12ec01debac9c48d19a2705672aab6

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dc541be08bf68344917c9553eac315d7ba833dee734d41a5c7a15dc90d79b122
MD5 52c6198c67f5f0b0d371debfb838f881
BLAKE2b-256 a2c38e11739b6feac1bc1e68b08488ed1ae76e06096cf3ab98828c3d7f63b572

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7f3be07a88c7a9eacd2362a4301ead7fe8dad686130c77b2c275c027e632227
MD5 c96667528047b2289131a1f05df7ff0e
BLAKE2b-256 979de51f627f3e983a67ef1c608ed487062887e456928cf96cf6ec233c0e97bb

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0c29b33ac2f12e31c7cf5ceabceabbf878e642291582d6cc87e9c93e42dfdf15
MD5 84a839074acbab3e73ec500d458e3ea7
BLAKE2b-256 9cebc860d048a0d3b88361ce1b51db3b7631e2ce3e8e62d67e601d2424e35fba

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 78be1259db4068966c1bdbc61a8de2d2077680afeb3bb5f2dcfbaff303db4597
MD5 e34df91c8ab80edb4a9a865261e7fc58
BLAKE2b-256 864bdd9389076d43592092dd07c39c8aa150d51440777f65843b986b6167dad9

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: trustfall-0.2.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trustfall-0.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dc824dc8e61f623dbaf19e8cd36fa585efee2abfb93ca95be75ce4ceff9a6c8f
MD5 6c782cfb71b3d2526da311db6acc5075
BLAKE2b-256 931246e3b7439cffd964f3f0ede929190cc6a6e7b1c9963c758b156a48327392

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2015a14489700b0b96f11c588c141830d5774a18ea6cf5e641f1bb26837749ee
MD5 c263b0ec7d9ed8f2a5dd01a7ff3dc33b
BLAKE2b-256 d1942d08658e5cc031032be17c6ca8ba6173a72d2d2f7173b8ea97ddfde732e8

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e01c5368c321b3432f56382c709a04b4af99cdc110c47dc77d0383a5e818df6
MD5 572fa5e26d82d46595a8e5ce17c2ba63
BLAKE2b-256 440210e410df8da9051e9dd36970392f2f13a1cfaab8ef13405dacb9960b6aca

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7c245e0081f69eb8dccef95fdd6a9a135d5b458af4e6875e9429a60ee1cb0e21
MD5 b316ebee2dca49faa7ce111cf100274d
BLAKE2b-256 adc2423ca8c6ffbb746ff03939a568558a89aa30a5602d88cff8d754e23a3a11

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 ef70d778077d319492a183cce653463cf8379fd7a14cb1b7b2a595648aa5512f
MD5 360af0d1306b74e11c26be823fa88fdd
BLAKE2b-256 e0ea248b44e6169bb110584d577dece8cb3dd28f266d8a957fae9767000018c1

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: trustfall-0.2.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trustfall-0.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 945f4409cdaa1ac5b851544e6c9f431e7447f180fd89b956ee9b0125f746e10f
MD5 494f6fde6663e9113d658922ab66b691
BLAKE2b-256 cabdaccaeae932eb8af77e4e0621c10bc4994b861ac3eba37314e0a214910c3e

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a6c057339202c04df22e5769ab79b6e6690734b76916916369c825de6162ca95
MD5 c3d75504901b77ff8e7ec50e2ca158fa
BLAKE2b-256 2db9e351cd0dc79b0a84e5ac90b3633aeee7c28cb6d6519e767020a9211ce6d5

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2bd6d306209b9f4c57d7ead5fe63768901c1be10d2562198457ba256979d7825
MD5 a7b88dbe7b5e6597eeca3d8ac773a685
BLAKE2b-256 e17224369eaca9ff2395964d07ac76fde89ff5590726b8cf619027c4d9f16ba8

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6159ba13172cfafc9fa36b710650f581c09ffea6fa31a8814b7a14c3a40c6959
MD5 cde2b36e926c4c4ba8a030b33bf713b8
BLAKE2b-256 f3aa5f2162db4da1f299baeb2cee398095a56b2a26fbb2030779bc4e74eaff87

See more details on using hashes here.

File details

Details for the file trustfall-0.2.1-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for trustfall-0.2.1-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 8dd4d0f515dbf85c7512bce6aa88f7180c690cab92a5688d7f594fd04310552d
MD5 65c8129de342fd34e70f14cacd5d83ae
BLAKE2b-256 bf473f2b9213227187f0cba1e753ca07fec6cad15723a8ea9097d6fa5e3e5421

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page