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.11+).
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.
Metadata
Release files for trustfall 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 30.3 MB
Release files / trustfall-0.3.3-cp315-cp315-win_amd64.whl
| Download URL | trustfall-0.3.3-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4d1fee51ca1320df0855c8ac04980fc5ca052204a11305681bbcfa5b76462f26
|
|
BLAKE2b-256 checksum How to use checksums |
f2d3df3ceb6f93e64d0b69cf021cee18d6e53a20825f8f0aea7689dccfae247c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp315-cp315-musllinux_1_2_x86_64.whl
| Download URL | trustfall-0.3.3-cp315-cp315-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.15 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
4b335e7ebe42a105bf1edb4a3026f579f63c20f52f37f0472337faae6473709c
|
|
BLAKE2b-256 checksum How to use checksums |
696d5e83430fa180b9d270f858316662df3c3bdf957306640c3a08cc0833267d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | trustfall-0.3.3-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.15 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a0c3d91529600200b9ed6426e2d5341dac9eeabbcd6049b95796e99a26f138bd
|
|
BLAKE2b-256 checksum How to use checksums |
ce383806571ba015f94ff5886d5e48ce45d044a2e0bc1d68608a82e19ed09838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp315-cp315-macosx_11_0_arm64.whl
| Download URL | trustfall-0.3.3-cp315-cp315-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.15 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4c8891bd069b8bcd389fa4990497727d383b637ece9e9ab0c742b40881ba5604
|
|
BLAKE2b-256 checksum How to use checksums |
56ec60f9356ade4a72bc16a5a964084aa0c37e7a557bbab271a59790b57c5a69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp314-cp314-win_amd64.whl
| Download URL | trustfall-0.3.3-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
00412f1cb29afc44e98aabc89a697ab229a471a1d086bbae4b3f3f952b048583
|
|
BLAKE2b-256 checksum How to use checksums |
6f0aa0bf152a5ba4b3b17c94c5072eeaf21abe0c667f7f6f56fc6106b187f20f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp314-cp314-musllinux_1_2_x86_64.whl
| Download URL | trustfall-0.3.3-cp314-cp314-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.14 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
69559c6c43eca000cbc86376e759a8d420898258337797683a38a2c8789f5cd6
|
|
BLAKE2b-256 checksum How to use checksums |
da561b7e91497d7123d07f9f7ca16f242a0c9665e46da4a9c7a32a7b08dac545
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | trustfall-0.3.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
584c51fdf1a9f8c53d6d99f7bc82de7ef2668e5676af75938af59c610f7b2d92
|
|
BLAKE2b-256 checksum How to use checksums |
c0428774e7be8eb48db58c36f3468920bb5efc73c91c09d2ba236263e5abb047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | trustfall-0.3.3-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a21aeb98ffc1f081970e6c77d8f912efafdd81ed8169f375ed35071e73d186da
|
|
BLAKE2b-256 checksum How to use checksums |
801ecec976c5c3d8103b90011ec972dead7ab63a2090317cca85d5b41c4be070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp313-cp313-win_amd64.whl
| Download URL | trustfall-0.3.3-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4820a3c86db0343d029c1591283f9749a03189682d94fd25ec4e0b28dc109208
|
|
BLAKE2b-256 checksum How to use checksums |
db50b41625b9a181df4bbc097a1e6471f11891755a27fb55ed63f1edea831dea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp313-cp313-musllinux_1_2_x86_64.whl
| Download URL | trustfall-0.3.3-cp313-cp313-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
4aa1abbcede6cb141819728ef849818899d1cf6d165d263919ed3235c5fdd48f
|
|
BLAKE2b-256 checksum How to use checksums |
bca8f96d69b10966ae85aee3cbaa270ccf1791a8d6bbc0751f679b5cd3da5614
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | trustfall-0.3.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
6656110c410240eee8b4063dd8ec72e34cef7d7749704187ab2f7878f1efe81d
|
|
BLAKE2b-256 checksum How to use checksums |
53beaa8fb6cde51a3a3045e06985d9ac709fee29e40cac4568fa15b34bc16576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | trustfall-0.3.3-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
01c98fd0a2aea33cbd727bf4fb730d13ee3fb1d528cc91893898f21c02c7f384
|
|
BLAKE2b-256 checksum How to use checksums |
8c916cec13922fcbafa4379d9619de92dfea41ff9ed68339d24d34b820a1a078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp312-cp312-win_amd64.whl
| Download URL | trustfall-0.3.3-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
db19381a1d28ee48631eaa87e7ad76132d92ccbeca5ccb65bb2eb3d56dc033e7
|
|
BLAKE2b-256 checksum How to use checksums |
b574595fe16e5dc90b8b0579bda88ee47c17c8ffe917408656b9072d373f540c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | trustfall-0.3.3-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
413c7d6dd9a99527375d16cf2f57818b0016454d1be95367b986a6836c7e1b77
|
|
BLAKE2b-256 checksum How to use checksums |
417ebfd85fbb5cab1d20a777e891a625c7d0e0e08ee93a411078a9595fe4a787
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | trustfall-0.3.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
8b5fba216a2a2ff6d7ad088ca2f939ce2d90e669837034f263e3f63eb37a3dcb
|
|
BLAKE2b-256 checksum How to use checksums |
eff291133f8123a02e1978608e550c502cde49b338b32301ff6270c5a502a869
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | trustfall-0.3.3-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5b91ee8819e8422d3a12167fed160f9010a19ceab8b2f94a314386a81b862ff9
|
|
BLAKE2b-256 checksum How to use checksums |
5af97f24b520ee290782d5f1efdc20e99f7baef96c062a6b9fb5983aef293827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp311-cp311-win_amd64.whl
| Download URL | trustfall-0.3.3-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bd0091ee025f47881ad1768d557ebbb7322788aea698ca46bd37fe87ea851402
|
|
BLAKE2b-256 checksum How to use checksums |
b495e20e931b1b7a9d693c7375e1aca081ef204f6b1a8cbf83b34b230db49bb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | trustfall-0.3.3-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
1c4ecbd75a1fefd9cf851023fb81a80dbb2fd30dc5b714d0563fa27569f3a647
|
|
BLAKE2b-256 checksum How to use checksums |
2b216d4fb499fbfc396270691b293f0c60a25e07ef7df2fc0e92d9349289a1fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | trustfall-0.3.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
56539f557528ec9e465768fa85a6e8aeac21d73542f50551a16010ab5b6cdc56
|
|
BLAKE2b-256 checksum How to use checksums |
3bd14584ba983de0951c5a791c55fd4aaf4cd51cbb9cce50b3ef37f05e38df04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / trustfall-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | trustfall-0.3.3-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c4317e06bd424fd703c3492c999c4925c4d946271a38c88c9a35805d6e04ad71
|
|
BLAKE2b-256 checksum How to use checksums |
9193b859c7f39abcd4cd586d2e6c71d02d048be7c6977016137142069417b2c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for trustfall 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.