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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.7Windows x86-64

fastqlapi-0.2.4-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.4-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.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastqlapi-0.2.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 805b41793fd75fce389c37bc90d7da1e6df2871173bce8b12482cfb2c09bc611
MD5 f4e963f559f723483cc3259e3d5db6de
BLAKE2b-256 0331d6b41ef19a5031d396994f48a2cf3c5e613998492c9a7346468267e05499

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2b43ccf4497a3da924004f1e2b43119e7e4887aba2f0f07021e354fd8c76c185
MD5 f449518cf815092b0309490e33e726d6
BLAKE2b-256 1bf447f734771ad0f101fbd059050e4e1aff54f31dad5031e142abac38796d3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7a8cf285906215ef6f24469481550470902d4584faa88e62c35f3bdba430c9c5
MD5 1f1aaf995c9a1d59f4577b699762508c
BLAKE2b-256 6dec64d5c842c5da5cf86c683b938f4fa605e5173aff3ef698c7ace3dbd439c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 cdbc7ce6d5543d7f9003e634b3e0c7da4ad22cacb2bd2a50b02fd2a7f1635281
MD5 9f2ee7e1e88b0afb7ed161f0320f0b05
BLAKE2b-256 d15a39268bb4dd502e70af8601518db0b433484e42cb32126b5525f2e2cab9ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1cda3f4e1fe24534886b86fcd967954983bf65a0e1e7bd6393d46692f302513
MD5 b2795c5865818f9e0643a7d150f2f93a
BLAKE2b-256 6bc79f24d0b70b5505110fc6abb83f7e83211a2ec9d4683408ce65db78030b8c

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.4-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.4-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1eb076e8054d577761d635154263773aae929ee6445b0e3fd1d21d663447c114
MD5 e8fb9842a61563672552aec6fbf6ae50
BLAKE2b-256 a8432f55e3074733c02e7d300d2f6bbc5f5c086f4069771d5c6115e8b8489296

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 b0756219e163f83c3b36e1bfa3d75be8fe8920d5f50367590beb63cd2639d63b
MD5 954f95543123f238985e69a59f7a401e
BLAKE2b-256 4083342acf9769b85c7a9862e2ca5d826374619fe187debaa6d672bc4c0e1ecd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc7e58da4b29a7c5a89b4de7fca18470e706dfee950705d61a36d95eef04680f
MD5 0d11d026db6042961dbc6b1b5126b16a
BLAKE2b-256 ae76b544d6355ddf2c02d18e7182f9b09b7962b6e5439aa7e197e94d19ed9d71

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.4-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.4-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 999fbc44d43bc5721d7e6b7e74c8f0fe258e6f969922edffd1ce9d2ab6ea757a
MD5 c360aeefaf83ecf20295d4bef714823b
BLAKE2b-256 3fde986881f5c51a1b99af46c67231dbd6ccf58650a7a43886201ab59803f6aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastqlapi-0.2.4-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.4-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 11a4d5e50fe70bd24ca5fe785ac064c8b87ff85a29ae8664b57c1e8961395003
MD5 78d31552616b887a5c3ccd01ca91b6cd
BLAKE2b-256 58b04f01514ac9da43d96d07795325a1ab0a1390ea4bb6336c29acaaf3cf9dad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a18ce3bda1de4f02312e38b9642fce5bd2d1e8b260b96305a11bf118b45049e9
MD5 d31e7b1b4325a5f7dfa41f8f64e597a7
BLAKE2b-256 7a26c7856bc9b0ec33ce332398da426d1d9deb4e8625177751e7e99bcd767c6f

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.4-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.4-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 532db01be1b4c7954965ff6af709af28a9ac6f687812a8af17bf154fd1e03fb8
MD5 113770dbcf36fd07f7eb19b742157e62
BLAKE2b-256 283a4d8e4d729ff02108896824ad30d105d696f34e13dc9f99d25729759c443b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastqlapi-0.2.4-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.4-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 d34bbdaa7722758d7081ebbded40797186e5f4fef9617267a8870da926ad0a2c
MD5 b9d430476d3758413fecd3ccfa73063f
BLAKE2b-256 6a48568a3e83de1286ff4b00df40e6da917388a48227c3fa45f7cd88a660e552

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5c994d631834f4155c5fcc0f3fcb350e5903c7d1f3f292524fc1a7a79c8b6d07
MD5 1f5e9b7e1eada668a926303bbf520432
BLAKE2b-256 de3b45bcc5b9f2df1f61867a1bae6ea31ce26a7a63c5fb5919e4a6fa5fb6833f

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.4-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.4-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6c535cc6617a59bf720dea691e979098dde98e382ad4cca3336dd054b92235a0
MD5 82a865ceb15769ff828f3946e349aab8
BLAKE2b-256 9d8c117192584cce33ae5175d5972c78f2e4fbab9bf643d587f64dc335df6156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastqlapi-0.2.4-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.4-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 9a7c0cf0bb0df3354239b81dbb88465ad50a2dc3a303b212e6d495f0a9f0aa41
MD5 bede058a9c9a41f585bb887e3c200cd7
BLAKE2b-256 48f6799c4db716186507698f866f0ec97ab898dc9280cf680c71660f295d0d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastqlapi-0.2.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f1eb984404a5808b73a0316692b165923c99def21fd96048029ed4101adaedc
MD5 08a086c60e417fbe8a7e667ee88befb9
BLAKE2b-256 d0ec981bbfba380bc0e7d5d474822fd45076deb2de46998ca09495d0139f014a

See more details on using hashes here.

File details

Details for the file fastqlapi-0.2.4-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.4-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c7ae62eb64edad83db6d570fc72f16259d5c47ec6c24c5d7031ca7979fc4b871
MD5 b0ff10ef159d743dff96256b3a5806e2
BLAKE2b-256 6e44ff12182681c957d395647fffff2b9aa9b7f40a6214cb5bacd89a1c896ceb

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