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.3.1-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.3.1-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.3.1-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.3.1-cp311-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.11Windows x86-64

fastqlapi-0.3.1-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.3.1-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.3.1-cp310-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.10Windows x86-64

fastqlapi-0.3.1-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.3.1-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.3.1-cp39-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.9Windows x86-64

fastqlapi-0.3.1-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.3.1-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.3.1-cp38-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.8Windows x86-64

fastqlapi-0.3.1-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.3.1-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.3.1-cp37-none-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.7Windows x86-64

fastqlapi-0.3.1-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.3.1-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.3.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.3.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92380921a4878c98094bc22a831f3b795c76f5b482a68a37e7c9b028f6d8f4c1
MD5 d2df8fde79220c672a945bef15879a29
BLAKE2b-256 e624985fd9ac5119bcb6b30297319c52246cd299314607d0f2e3059141788679

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 61d069d9a5606382e90c9f88e140d1c2c65397f4d8b0ee7159c2d8e0fdd1763b
MD5 1d1cd9390f3c1da5472bbeda16b3e0a7
BLAKE2b-256 3534640c024720713722e89fc0136f91d4d36f8540772ffb7a471df6c9763eae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dad3e815ca33e38e620f7f80391d3f386e9e7bb9cdb3ace3c2389b9dda6b892d
MD5 c2d7bd3e8b8a40fee257658b2e5d8f40
BLAKE2b-256 2e98dc4a4789d4560005308d9ebee024dff67250ca74c65fcc008360c30a3c0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 697b2dfd8f6e810b89307817f9ac9e0e89798e01557d3cff8aa8630bdee45399
MD5 7c0f4adcb21244d9ad483e5db384f404
BLAKE2b-256 622c2daf947553a92fa9b82534ec759d5acf314596b2dfd7eb2bb2028ca3c9be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 711bcc695cdf5844453efa032900edec86cd6521befa4256a46796e22269019d
MD5 62a547040262d50196bfec36992c2822
BLAKE2b-256 09f5eb65b82e04cb396ef1b5b04f2dad98467dc62b33ea15accce1c7989fcbe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ae9b5de1525cd3b6e143ce5bef0049f24e91764443642d88960e33a686104ee7
MD5 ab68ca2eb51cd9cd98d0cec8e46fe95e
BLAKE2b-256 b7a8d7d01b9a967395c40605cf2816059a6ed3bc2b52f6a440a8ae1dddd63319

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 16a130ee647ff57b0da153af6db9b5ce8b0046e86a901cb0611d1ff1579ac64f
MD5 c7eafd6a561acb8c75c23e5532fc51ce
BLAKE2b-256 f33decb841b69925460c3cbe398e075142b5b6f4b58e0758490cd760fe7e9911

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 868c3a36289dd2c5879c9fcc57c7b9d35561091d6a627eb5c93f26863d78aba2
MD5 d80a23976b72846a8ccebc0b0b0a02b0
BLAKE2b-256 d3e98282b28a62b67ee1a0aed7ff9ae6a2bdbebdb6612d78b931d3044ebdb4ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b76445542601451556501c7202613ad3cbe1b8f6fe395215c17e281da74b7eb7
MD5 4817026eef11fba37eb3985473c7f95f
BLAKE2b-256 e262f1ac4dcbb5be52aebadd85b5db43079443fd7b19644d3a0a87fbb805f121

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastqlapi-0.3.1-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.3.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 33d73c46b12018156cce4585dbd204cafe463969d298c12c13bf9ce1e04bb4b2
MD5 51cb8dec178b0302d69714d745c65fe6
BLAKE2b-256 31a6f045891854d17f6f0bb1df0cf79610cee37b2fea6bcd34285c13c77a71e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dfad0d00bf3a008a801a61eaaa9e3ec80eea64142ecc757aeb798166aa6bc6dd
MD5 6eee247693f5756b7fb8f4c8c5956bb2
BLAKE2b-256 ab75af25ccb948e5306645f3a6e6e9166bde58ab6bd546a257a0302349da4020

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c20a5077e7f1b10c0e4f91684ebe22f6d188274dee8ae901dafdac43040c3834
MD5 b50cc99d7fcbde6f06336e3ac4ad95f0
BLAKE2b-256 5f23daaa035e7b9f5baa0e005a6ee075b56928707ffc1b1187c1d83957487397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastqlapi-0.3.1-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.3.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 e5a9157dfc0fec9e51a69cd8ff5c0d40b1289707a0163f0659c9de29340a41ea
MD5 7b96b42815e749cdf48e94e30311a130
BLAKE2b-256 bf0c265073d29e0cf2cd4bbb1e165dc15854aa4a05c3ce8cb0f3eff0c70ed4bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c66e33b426a6c1de31268c219b438efd0c31e0f5544a87dcbc03ee4bca1fdee
MD5 069d0dc6165ea053566e4b6632886d2a
BLAKE2b-256 50834e01f3d1a4bb20aa32505499b3224912c5eeacf2b11f1a347fc8854b0392

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 76f7a575d80c9da423742e4e7796948792c2b81ec73b700734d429722a2f7462
MD5 52355b532394e107570922a8279611cb
BLAKE2b-256 4523baba8e1ce461e08e72b6f7163ecf2a2f0b759499c5c34027fb9c9626ee3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastqlapi-0.3.1-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.3.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 ba3226246adbd7ea815cf905f321eb670a8cba9973b29270ac54d2bf6337a2e7
MD5 da6e5aed3204443c91afb0ea587423c5
BLAKE2b-256 71b26cda3301e74e03c9b3d013670c4a71a37d8a1b5660abd48113ec98c484b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9cf36bb3ba428cdbb8fe3f6a3f9e5b624f70a48c5b6272b89c61f182419279e0
MD5 edb4a06030fbd18aafb988c69b1930d0
BLAKE2b-256 e32b94636f34a27c11c2224d8a35b1fd70a198f0e7a828bd141d1e2b1a53a223

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.3.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 67faf8c2cf23845ac33e2261565ed3b547212db82e66ed09bbdf659480d034c5
MD5 5882f9952e79fddcaaacfd6f45b68cce
BLAKE2b-256 acbd45a1d705ddbf812fda1367878b799bc51b4f633f6fea2099a51ddd30b881

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