Skip to main content

A fast and simple web server for machine learning models

Project description

☄️ Meteorite

A fast and simple web server to host your Machine Learning model.

Install the pip package

pip install meteorite

Write your server

import json
import meteorite

app = meteorite.Meteorite()

@app.predict
def predict(data):
    body = data.decode("utf-8")
    """
    Run your model on the input
    """
    return body

app.start(port=4000) # port is 4000 by default

By default, the server starts at port 4000. The predict function will run with GET/POST requests on /predict.

You can go to http://localhost:4000/predict on your browser to see the result, or use a REST API client to test the endpoint.

Project status

This project is under active development. We will not recommend you to use this package for critical applications. We will welcome all contributions! Please refer to the contributions section for more details.

Some of the features we're still working on:

  • Pass POST request String and JSON into the Python function.
  • Return String and JSON with the correct content type headers.
  • Graceful error handling (⚠️ Priority).
  • Customise the port for the server
  • Allow more datatypes for POST request to the model.
  • Create more examples.

Contribute to ☄️ Meteorite

Please refer to the CONTRIBUTING.md docs for details.

Join our Discord channel if you have more questions.

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.

meteorite-0.0.5-cp311-none-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

meteorite-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

meteorite-0.0.5-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (5.0 MB view details)

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

meteorite-0.0.5-cp310-none-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.10Windows x86-64

meteorite-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

meteorite-0.0.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (5.0 MB view details)

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

meteorite-0.0.5-cp39-none-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.9Windows x86-64

meteorite-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

meteorite-0.0.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (5.0 MB view details)

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

meteorite-0.0.5-cp38-none-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.8Windows x86-64

meteorite-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

meteorite-0.0.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (5.0 MB view details)

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

meteorite-0.0.5-cp37-none-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.7Windows x86-64

meteorite-0.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

meteorite-0.0.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (5.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 meteorite-0.0.5-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 43c5814bea0dac78c6f2e28e4b2a698e03eb4cc16488004bbfb945a1fba9f645
MD5 65ae9f3d7a8f2a1e1b4749f62c744984
BLAKE2b-256 5475a8afbc57b968e0ff12af8a562512fcb69af9b394b3b5010f23faf27f19cc

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0450ecfdae03769cc3c75f2fc93c2d4ac539565c3be592d7545c0a42d23fd09e
MD5 3792e114491091b82a6011a26fc24439
BLAKE2b-256 d9dc02eb4a6ac7da5c58cd6b9463095375fb14668c246e048840d3d483273742

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7e3584ded7f63cab2eeb9ca1e62c71109d72938d1c1443037d8eb9a75e796244
MD5 468e1adc70d63cf27674144de204f84e
BLAKE2b-256 80b0d76f01b1b1e76b6345bfc7aca40b46df00d3fcbbaf5f2d56e1d4b2a573cf

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 f73d683b926c10fa33052bdcfb10ee3de6c298aa6b621553e8ac4579c3a3d458
MD5 7438d931be49ba947f018019bd8f32a2
BLAKE2b-256 871822cd2916661accbe584f4f38da4f577568ba31e6366617cc22dc219439a1

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23180034aacdeedb9694c087eff793f68750b88b3611a6cbac90a786459d1829
MD5 4719818cbd94792a1c6ba2517e6274af
BLAKE2b-256 38945aac8c31d7d678c0c5e22c43ddecaa8dc490623b671829da08af420be0b3

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 84ed09c36e2379468cfe10f44188b42dacc5073032b73717ce15840fb4ba4c22
MD5 cdca093343909a988427e6834bc010f3
BLAKE2b-256 6c8fc70d8d0bf96089635818b8647ca6c74e194f7e0c76262f7307ab799ccabf

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp39-none-win_amd64.whl.

File metadata

  • Download URL: meteorite-0.0.5-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for meteorite-0.0.5-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 979cd5f2c36860d64e0707191093e9556b67f591785631e03174cafbd4ad190e
MD5 d906f5f422dd4d2abc1e7cfea45f5aca
BLAKE2b-256 67a3ad63d67ef49163bf88acb6a805b582cc0cf91e0d81a7a464d6c3af2c7bf7

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a998c994f6716ab2bb62be71f979199f243fc01cd5300aabaf2f434d395b2f3
MD5 6b44eb0730ae131b892ee547b6cb6daa
BLAKE2b-256 03caedee2b6ff287eb78c3afb434399f62bac52db442c6a45a701e9b2ea934d6

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a66037034bdf4eb6e4783091fa8c1da1117953d12aa8e9562fb1478f0859e6f6
MD5 906e06b4d297c0454f0ff0dbc69acb99
BLAKE2b-256 8d6b7fbcb6f7a30b0e7262e507ce7b83a61e175699fc924878c345f89374e8ba

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp38-none-win_amd64.whl.

File metadata

  • Download URL: meteorite-0.0.5-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for meteorite-0.0.5-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 539ff3ee6e2d29f98742b0e655e802bf695463303734dc845498a3c57cf669e8
MD5 b008bc623938bde1b4922b90f9eef348
BLAKE2b-256 5056af0cbf37fa3af51bc679b8da9b18ffeed5512bac2ee2a5a5bb710d6298ee

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7eab50f02695a8ea89b2cd95eba9592c05213a65b86c0778fe923dd4e8f8ee75
MD5 c87c85e3de1423f9fe8b6952c4294fcd
BLAKE2b-256 0b4848ba9bd83a61402fea003646f6f006420bdd7fe41f6df5dd6b3f222fa403

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f6d5c50931fd09efe33d84cd33564859d17447fbf619b51bda40cf134204f164
MD5 0dc6ad042bd1d9f0d9288c1e72edca35
BLAKE2b-256 e7d98a231cd2ed7b044caf918238fb3d6d62a8cc7a78d88260ac9948bb68c299

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp37-none-win_amd64.whl.

File metadata

  • Download URL: meteorite-0.0.5-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for meteorite-0.0.5-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 18050c05162d067fd8478b4c73074032427dcbb106f1f114f1a874e1360ef04b
MD5 f9ca2ab37b861d4c69a7df9c07d39190
BLAKE2b-256 0d7dc9e71f1e1cf22a215b06dbd8a1207517b0ff93a2ff8ff7aa37d1edac9599

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 03a3e16da2a10372c1499810bf56e0f70c41339e47bdb27bc4813a6891bb4578
MD5 2a8946a407647c3466042aacaa2df6fe
BLAKE2b-256 4fb3a58b2925f5f13b37735f058e22d746ac8ca9748a9db8824a435c938632da

See more details on using hashes here.

File details

Details for the file meteorite-0.0.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for meteorite-0.0.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f5a9b8773766c29838a8dc8e08eb6f8081c2c4e05d71479ac2c2a8950deb40c6
MD5 a4356e5c55d9bae2bb5cec7788de778e
BLAKE2b-256 0d23e4762d01cd2ba11021e778ab8c90ee4ab13cfd8b2164c88523865d58b4a1

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