Skip to main content

No project description provided

Project description

FastQL Inference Server

Spin up a blazing fast rust GraphQL server around your ML model in one line of python code.

NB. This is currently prototype only, not suitable for production. Can only create flat / non nested schema. Make sure you set RUST_ENV to production if you are using it on a remote machine

How to:

pip install fastqlapi

Visit localhost:8000/graphiql for the graphql playground UI or make a request to localhost:8000

example:

from fastqlapi import fastql_server
def test(**kwargs):
    print (kwargs['input'])
    return {
        'output': "test response",
    }

fastql_server.start(callback=test, args={"input": { "type": "String", "description": "this is my input field"}}, fields={"output": { "type": "String"}})

to try with an example schema:

from fastqlapi import fastql_server, test_args, test_fields

def test(**kwargs):
    print (kwargs['prompt'])
    return {
        "tokens": ["example", "tokens"],
    }

fastql_server.start(callback=test, args=testargs, fields=testfields)

FastQL implements all the basic GraphQL types and array types, including required types but not currently required subtypes (an element of a list).

Under the hood FastQL uses the actix rust web server which is currently no.7 fastest web framework according to https://www.techempower.com/benchmarks/#section=data-r21. By comparison, python's FastAPI is no.279. I've observed about a 2x speed up across the example schema here vs a FastAPI/Ariadne python GraphQL server with the same schema.

Environment variables

GRAPHQL_HOST Default localhost

GRAPHQL_PORT Default 8000

RUST_LOG Rust log level | default 'debug'

RUST_BACKTRACE Add rust backtrace to log | default 1

RUST_QUIET No rust logs | default false

TRACING Turn on Apollo tracing | default false

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.

fastqlapi-0.2.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

fastqlapi-0.2.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

fastqlapi-0.2.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

fastqlapi-0.2.3-cp311-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.11Windows x86-64

fastqlapi-0.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

fastqlapi-0.2.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (7.0 MB view details)

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

fastqlapi-0.2.3-cp310-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.10Windows x86-64

fastqlapi-0.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

fastqlapi-0.2.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (7.0 MB view details)

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

fastqlapi-0.2.3-cp39-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.9Windows x86-64

fastqlapi-0.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

fastqlapi-0.2.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (7.0 MB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

fastqlapi-0.2.3-cp38-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.8Windows x86-64

fastqlapi-0.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

fastqlapi-0.2.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (7.0 MB view details)

Uploaded CPython 3.8macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

fastqlapi-0.2.3-cp37-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.7Windows x86-64

fastqlapi-0.2.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

fastqlapi-0.2.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (7.0 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

File details

Details for the file fastqlapi-0.2.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0dc3be7e892339bc7b6da889c44129b5264ba4d962dc6b1f8be02fc833b708df
MD5 bc81c9dcacd76d2bf98eb82ed7721615
BLAKE2b-256 5d12a930239c0a56b676c6b26381cd6bab8378a36f94fdedaae2cb6cd7c91612

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6ac19f4fa63cbd1260db6f4716e9fa798592e2f788748c0995fa62385121be2e
MD5 6ac23d420a5d02053435f05e73e31c05
BLAKE2b-256 51dc2aa53060de60e3e9f61b9cb89d913be0c12078380b6beb5e0394b2a8f3ae

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a4be5a8a5c7e972eb4de3c6c29b57c3ae4bc24962034fa1981579d6af328d86
MD5 e0b75bc462eb1467f066f93076b37345
BLAKE2b-256 dcc15019e4e4a4b59c2f5c857fa09fcc58df8db2f134159548f58a5db9987ee8

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 f4389956f0bb36afa4c727a5f63a62665d336d1551795206ed20b04cbcc5d2d8
MD5 81b84193fe265b39c28e28666c7f761e
BLAKE2b-256 24421ebdacd0edc5ac8426de098e101d009dd38dfce831ddd45da409ce52d022

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c74b926ea97091e0e03adff2ecfad00bf8ca14c22cd951b81fb15e43cfa84702
MD5 9ed4c502a75d296388774ac9b0cc0bb4
BLAKE2b-256 910d81325bb41aa9a6472fc62ee9f1f6523b337ba5271a903d34aa486c04a874

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7f6162009ac2a5c66ed4806c5516ea4a4fd4c1536d65925d10fbd4f59abf52b5
MD5 96a1a3f80f59603de6b30322ea2627f2
BLAKE2b-256 811c52584d30741fe9a1f29dab2237278b90aaea2fcce7ce4b3bb279c8ed4fb6

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 45eb280edabf87d6c4948544387d380101bb75364a314c908ca0e0855db90a76
MD5 ae12631ba30486f336c0f68800b257ab
BLAKE2b-256 b700ba387ce80a84509f36ee69c973a491a9b5dfe890ed5a90744e83786ae85b

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8c42823fff17566a9fd175c5526eeb8b3740494b0a0bc82d2e022fdbf131fdee
MD5 277e8ce99a4663ddae0bcc48de49ceaf
BLAKE2b-256 cb309305941658c95e59c09da99c458d16c58dcd1801bed90725edeaa014b57e

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e6fec393e25869733b7da140d9cf96cd4fb26d01d13b61f3d2cdcdde2c1bdf67
MD5 f0f6bb00a90cdf486380859fb26e0b36
BLAKE2b-256 9a1a2e1970010d567b9c1796c11530e301badf077e10969256950478becb77a7

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp39-none-win_amd64.whl.

File metadata

  • Download URL: fastqlapi-0.2.3-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.6

File hashes

Hashes for fastqlapi-0.2.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 d47487f381cbbc7fa0927c9847bbaf7e10924c76e3e2a20ee3c0d8f69f433a49
MD5 4410da8824890a22b8222f898f7b6ab1
BLAKE2b-256 021c0d884c411ebdd9629463a23f2f77e34e2209bab4e7b104a0e8a23ce6afe3

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0c50b267227888d9441a0f01df842fa1cf912fcfee2d656f29c816fe39457eac
MD5 82b02223364a09f9bc089d2258d93dfd
BLAKE2b-256 6bc5523ab5e15d8c7b1402e75f8a4b2191ab3563b1fb20b54376c9f63ed7aaf8

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 dee808aa55b53a0717502d07d6002160b6fb762e1882060f8f8b2609fbed87b2
MD5 88735236a1f4265b425c040c2470202c
BLAKE2b-256 7fe00b7b1d22939a9051598a5eb69c05dfe3d8425bfdd6459e61b8f48d9c2bcf

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp38-none-win_amd64.whl.

File metadata

  • Download URL: fastqlapi-0.2.3-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.6

File hashes

Hashes for fastqlapi-0.2.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 9af65e0cdb7ac831e70d56556a5b616aeeee3b913016d30cd9e9b5a1a7fa1e45
MD5 8ba83b3bc34400dbf91b2f68e27c8425
BLAKE2b-256 b68b3e9583dab92d6d4b20238651e447aeecc4b6beffbbad74d67760598d7d3a

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bc13d964d673fbaae923a2b14a8aad68d9d873fd135a50c41b3413cc91d8cea7
MD5 cf8cb4b45c19cc691f1b474005e7c238
BLAKE2b-256 c019a4e92874d2f638121484ee56f36c57c1d998450a0d340c3d4da1ea6b29f0

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 da49970590dc6bac86546c6467a43ce796a39a6fbf6062d6d17dad41d015c78c
MD5 b408d68946f688cb47986ee06fa9b5d5
BLAKE2b-256 1ce8519ceea181b062e0566e7dfdb17b59743ddeb62d5712c2e92f5a91624394

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp37-none-win_amd64.whl.

File metadata

  • Download URL: fastqlapi-0.2.3-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.6

File hashes

Hashes for fastqlapi-0.2.3-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 9e761255758cbe38d341104a8d2f44619f7a774fe1a8b66d5971e9c777bd92be
MD5 4e543b89a0f8127fd9362e018b8a9d05
BLAKE2b-256 e8f51c04dc8c03009ea50b4b28f88b91952960b0f516749b318d4c17d111d397

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69ca92e078be8fdebf5fad078d34e06cb113252d00e7b93903ebdf0c680bf2df
MD5 d85f0f6e0d2f59062660a52c8bcd70f2
BLAKE2b-256 87cdf284e44ca7fc9fbf7fb86585e1ab8e4950e64fdc244c247a518527718076

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1b2f4b4aefc719c28734cec2f5e2cac588c0896c1f691c1462b7ebf19d502e90
MD5 c68fb9e6b837675210fea068233a890d
BLAKE2b-256 70b84ad309bccbfc286cbc9d45330564d47d5df460f663b507d483956ca44e05

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