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.3.1-cp315-cp315-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.15Windows x86-64

trustfall-0.3.1-cp315-cp315-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.15musllinux: musl 1.2+ x86-64

trustfall-0.3.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.15manylinux: glibc 2.17+ x86-64

trustfall-0.3.1-cp315-cp315-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.15macOS 11.0+ ARM64

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

Uploaded CPython 3.14Windows x86-64

trustfall-0.3.1-cp314-cp314-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

trustfall-0.3.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.3.1-cp314-cp314-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

trustfall-0.3.1-cp313-cp313-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

trustfall-0.3.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.3.1-cp313-cp313-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

trustfall-0.3.1-cp312-cp312-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

trustfall-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

trustfall-0.3.1-cp312-cp312-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

trustfall-0.3.1-cp311-cp311-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

trustfall-0.3.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.3.1-cp311-cp311-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

trustfall-0.3.1-cp310-cp310-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

trustfall-0.3.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.3.1-cp310-cp310-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file trustfall-0.3.1-cp315-cp315-win_amd64.whl.

File metadata

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

File hashes

Hashes for trustfall-0.3.1-cp315-cp315-win_amd64.whl
Algorithm Hash digest
SHA256 f9079b92a969b20cbc60baf296a8ede84cb80e89a21b0ab3b2c1d96ad9218b75
MD5 2b5e734e850e9af14e63e1c9c4a1a3e6
BLAKE2b-256 ea7bdac8ee9b19eeffb4622d7b2dade52f54b1a6f462c86d455cdbf472399862

See more details on using hashes here.

File details

Details for the file trustfall-0.3.1-cp315-cp315-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.3.1-cp315-cp315-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 158740a902f5a6c3d60615b48a3c0258db7c3173c5e36f32ef748c6ad2217470
MD5 18e88775eee2b6c11aa82f25c1d5c882
BLAKE2b-256 293a54ce50ead8b08ea2f0c996594bfabaabe8d34df287c74e84edd7c5b49096

See more details on using hashes here.

File details

Details for the file trustfall-0.3.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for trustfall-0.3.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ed2e05fab55c11229c6265d48b4ccff31568f085590ce0a25905d469b23d3829
MD5 9d3145ff83aa97637cfcbd7279f1d035
BLAKE2b-256 2acca7a05f908b1311bb63d946ca8f823b94f7490b71a9255402a94194c97455

See more details on using hashes here.

File details

Details for the file trustfall-0.3.1-cp315-cp315-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for trustfall-0.3.1-cp315-cp315-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d7673d308b9c75480e2d01bcd5c37dca6190880c2bc38c1dbd407d5ca51dbe1
MD5 e966ce687235f3a8dfed944fe961d9a8
BLAKE2b-256 25fe79a5bfc1f2aa9ce42d7a949a0b7090a8973e7188653f6aa9c5af99e0c67e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trustfall-0.3.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.3.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 900b99deef465f5e8e98d307545ffaa942d19156a90c75dafec5775dfa0e2f0a
MD5 688fbabe3853eeb75f5b5febb57255a1
BLAKE2b-256 f5d08079b5887d3adc41da8b20c334e34801bf7b0bdbb05bee103ee3622aa60f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6ca25c21079f088ba53eb708f9b70ee0a39a652a0caaf966a08035ad0c844f12
MD5 97f9e3db2ca2f8019710ff4fc967f03d
BLAKE2b-256 b6db61087503627a5c9619e9829467a58afb64318d2ab2757122d5011bc7acca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e0497f7cb7e0661fe95590a1b9bd4f6cc4987ce083514d50cc66b85d95c1d25
MD5 01d6d1dca903169e2afc2fd2ec882c7f
BLAKE2b-256 0a70c32f7fc4e304fd1ce826c53ecfadbf38eb42bea0986cb4f9b7a4266eb559

See more details on using hashes here.

File details

Details for the file trustfall-0.3.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for trustfall-0.3.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d964479e24e546ff33e61a9c8ef0ed6b582ecbc97f53d9039016bb136b0be98b
MD5 d9b2f86003e608866e739750e5e904c2
BLAKE2b-256 01c64e4405b30708f26b01f7da2315d21339a13c8333ab58d1a3bcec34b0ae69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trustfall-0.3.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.3.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 50fe6162c008053d783276b2c5e56326bd37b329c9f7062e314ba6669cb03574
MD5 621c47465b0c6c19041bc5be32c6a4bb
BLAKE2b-256 e9092b4b6645e4f140788f404c494513072a0d431accd7b0cd9f9c0c14274753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1a649a3c387eedebc22a8e0296b23f73801802e3317786dcb9a0f29968ab5726
MD5 6060a587af06fc909004b8df31a965e8
BLAKE2b-256 64a5c063e9e83edeca1ec780b01f712eea69e1c3604fc5248136fa32eb793ff0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0a25ba919f3922d0f44e29d5b3ef1de743031a5f5e6a173ad1f8a49e79800e9d
MD5 3652eca227312fad0ba1cff0311b0a65
BLAKE2b-256 b5624664c22188fc118ce57cb9ec860fca1af1a5e17625389885e913f4b24cc4

See more details on using hashes here.

File details

Details for the file trustfall-0.3.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for trustfall-0.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9e40ad5f4154a8f84ab7181557f3e83eabe261f9a004d44383773fd2781a71a
MD5 3f0e8b33fb7ad5aa09b69b200222f53b
BLAKE2b-256 b54dcd916eeb85ee4bb05254015da1c415c64f86bd158e1e7ed65e5570b48a6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trustfall-0.3.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.3.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 441f6225f9ad7454877a036cac5a53ea18d7d2cf7d8860fe078cee0ba2a700ce
MD5 7647ca1414e4f89f333e4b364843c56b
BLAKE2b-256 d73565f648991f5453837f51992ecee0873914ee1c8538039344946009e2cef6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5cafb7c6ee821ff131a0c6879b5b721c9989727f200ae7728ed8fd2eb4bb5427
MD5 8a5149c69ead7cd90eea33db67e899e8
BLAKE2b-256 8896c7f471263ffb160722a1554a12498f1012fddee2bc2e45efc6d1b06d4591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ae4f5d92cf2c87f6ee689025d6681a8dafe92165313b64da9ed53d457ba35dbe
MD5 ab05588e5314fd7b190a7aa141643abd
BLAKE2b-256 d1d50c7cc698da61470173eeef0a3c2975973c2c0c22b270e40310dc18c2e538

See more details on using hashes here.

File details

Details for the file trustfall-0.3.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for trustfall-0.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b54c35cb040467ebb73ad14766e52faf9de9e28e5dab3df9fa99a288c3ef375f
MD5 7f711ae9b1971405244c496f78189bc5
BLAKE2b-256 0b70c8b492ddb0679da0545f583c8939927d0ad4b6afc50a5529d7e23d6436db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trustfall-0.3.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.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aa2928f91a3d6290dec70ef753bdae0c8e54eda9b35ba1897f5be9a064a65ba8
MD5 d9a9703ec1e4ec8c32f70c10684a898e
BLAKE2b-256 580aebd2486a0d29251a4b1cc923a65a09604b26c1aa19d7f18c59ccd91c0224

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a1de6686c0b54889b6ff963636d76e69e3f040a4319970f4243b6b064d10e5b9
MD5 5cc86f887c5bd733a199f423d81d7d37
BLAKE2b-256 ef5b6681bda6e021d34bfffebea652f9031d8eb5bd546bf4ef1d349bf82a4ca9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb43fe4f0c7d0374b73a90901bdb166da30397c4c025cd3f477f8e333ceba532
MD5 8ecf3c73bfd589649df2a6c92ac3d8d0
BLAKE2b-256 a216a4aad3aa0dc3985bcf049a1dee013680493eaedf2ac945c5df0b513be117

See more details on using hashes here.

File details

Details for the file trustfall-0.3.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for trustfall-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ed37f46611320e390c5fa0e48f47d9b88f3485d35ba806e37c742dae419c64a
MD5 4833c5ca72c0d1fa746b557c813e7fa9
BLAKE2b-256 88a37dde7d3eb6e6eff64f8db7226b9b9a03e8ac5adc6c3ef1e8f6f44c68cbc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trustfall-0.3.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.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d6fbab6712452cbe48f9750654bd24ec710df77f0f16a4a3fe64bf6281a73735
MD5 490918584542b8f36d983b4ca07b05f3
BLAKE2b-256 cbb25d07f6902a5188d4259ed2573e4a76895d40db91c88d680a824174aa35c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3b8eddb61c019eb1864d2e7995acd7e4fdba9174cd033d514a2a4ff4c57610c2
MD5 13c715c3db740a5ebb1044c6f2473c3b
BLAKE2b-256 42455f0a03ddfd448535387c447d3796bbb0e93f797309c9a0e3d081fcdfc919

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trustfall-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6fc7898a3d84291a92bce597e7a0a6ee5282e13e918bdfeced36007db962ed1d
MD5 0f168a96099a2b47ba00a2f23d3fd524
BLAKE2b-256 e1ca8f25e5506116ecff3897604146395d7fb9970f4c2202fd3a16b405c3b41c

See more details on using hashes here.

File details

Details for the file trustfall-0.3.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for trustfall-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ecb8e69aa58ef6f9786d677be92d84e107cc78fa5c00ee34eb210580c7841b9
MD5 1bed87832a920a9a9f654c40f39e0314
BLAKE2b-256 2622a06f5e135273001356f46a2971099703c16208517090a78e67fe9135302b

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