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.set_webhook_url("https://testapp.via.routehead.com")
@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
.
Get your result: a webhook
The set_webhook_url
function has been added to the Meteorite API to get responses from prediction requests. This makes Meteorite suitable for use in long-running ML tasks.
The webhook URL
Your webhook URL must accept a POST request at the specific route. The result JSON will be sent as body of the request.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file meteorite-0.1.0-cp311-none-win_amd64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp311-none-win_amd64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3cacae1e9040395bfce48bde3eb5b0bec173ced26e2c2cc9ab426839ae83ae1 |
|
MD5 | bfd85e64e195a996625f872b3ccc2fe9 |
|
BLAKE2b-256 | 1c02c1dfc62d90f64c5c0e93940e0055b6fcf76212503931add0946e6b2a0aef |
File details
Details for the file meteorite-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bbcca3a5a3098590a5385be3d40aba6928f69bdebb34b2c69ed2243730ff37b |
|
MD5 | 25917a29e6f743750b36172acb6e3732 |
|
BLAKE2b-256 | b218bde2e3450be1225b474485dbfd7a1c335afc966985447765c33ec4e46fe5 |
File details
Details for the file meteorite-0.1.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a3d3efd748ff68816e98c33a6b30beeb5a519951120cba3c0eafd1226e9c03 |
|
MD5 | d5dbf4e7066df901418c725de854fdfd |
|
BLAKE2b-256 | 81dcfbbe429f63afba5ad139a2999f595f621e1a8cc81d54fd7ca54d539c0860 |
File details
Details for the file meteorite-0.1.0-cp310-none-win_amd64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp310-none-win_amd64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bc04cf3a553e6e18199873ff0083db8708c73f8c83384e3eb44fc7af036c71f |
|
MD5 | 596ba38611d717efc96f30a862ef7b90 |
|
BLAKE2b-256 | a9305828868527ef98878c72464b7b732f0ce841c01418d2fcdbc824d0d980c7 |
File details
Details for the file meteorite-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d67965a41cfa4e3d19bec0580224b8df9a3fe94004762e545e4de45fac53286c |
|
MD5 | 9759b025bbea73a551448842f48ba622 |
|
BLAKE2b-256 | ec98c3b35fa260f83fd498eef1c2ffdc809ca7c6113d2e80d6b87104179bcb6b |
File details
Details for the file meteorite-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1818937bafd5d16d7104906cd69347317cb619db50b50d9fcd8a1f872db30440 |
|
MD5 | b7409ecf31a061801c73b42b9657ca09 |
|
BLAKE2b-256 | 14ac3e7796fa715009af532a404e6db4d892a2686f44ee4e90d7344698f13f8b |
File details
Details for the file meteorite-0.1.0-cp39-none-win_amd64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp39-none-win_amd64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a74ae41719ec1130a366a5dca2c768a14d4667042060ec2b9412b83a1f85664 |
|
MD5 | 9bf24cb91b94d73a537770d14ba72e3c |
|
BLAKE2b-256 | 878740f7e18b4ec69421417e3b1e6a27c031de8aee678888eb412a8c9e31e2ef |
File details
Details for the file meteorite-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d32aa9467fcd98ab31be17abde412f2ee61a26b7afb9ed522768301ae31a978 |
|
MD5 | 69f1be1778341c6bde1f2bb019daa5e6 |
|
BLAKE2b-256 | 2b06f6fddcc767aa9330b0193ea6303ea0ae1cc2dd7f29f73d109566c6559e69 |
File details
Details for the file meteorite-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67dd6f8456cd2e78a58de5ce46f288394fda52a31d052d777c732dd89638885d |
|
MD5 | afdc8201506879e344516d60f17f2cf3 |
|
BLAKE2b-256 | adb568dcf1272cc621a9b1d3863f9711bd49923eb7aa02daa44940d64f0007db |
File details
Details for the file meteorite-0.1.0-cp38-none-win_amd64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp38-none-win_amd64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b949f0e69dd65a0064ea520cae3a2e5b6fc68382dd4dc8ae6fe667989f3e1374 |
|
MD5 | 1a7ef874f662db4b66d961d238c6244a |
|
BLAKE2b-256 | d84a830a0a1b6d38bf8208c4cea75e5768d314a3c33f55682bf2a8b72c08041d |
File details
Details for the file meteorite-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98f455c73e555defbcc7286c490eee28fe561daf52a491b6a90bf629d2afb7f3 |
|
MD5 | 403a7bee2b3513a6dd2d4234e5a8ebf4 |
|
BLAKE2b-256 | 06851a14dbca95820a06ad9377ccca621eb7e316400c243ecabe592b5e72f9f7 |
File details
Details for the file meteorite-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.8, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92956256f42294f27704f22b27dfeba476a5a96ec7d363d9c587cdc213e7ac20 |
|
MD5 | 855200b32db8f73662058d58d6cfc7bb |
|
BLAKE2b-256 | 5c4b86ff617febb4fef1640f73734ba2081f69e5332a90c85bf17bf93b9b610e |
File details
Details for the file meteorite-0.1.0-cp37-none-win_amd64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp37-none-win_amd64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df79817b186cc197d2bb597ee116507fcb503763f3c9b630df8486e05ee3cd01 |
|
MD5 | ec7a53e1fb944fa7e3518d84507332bf |
|
BLAKE2b-256 | 3d305a46205adeab6904fe5c5e6b95198657b233b23386273317e1e01985cc41 |
File details
Details for the file meteorite-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85fbcd41e7644f23ee41d0592b56284494db416565d01822dbba2fb58139d28d |
|
MD5 | 559b4b173d031219441f4ccfc919f7f8 |
|
BLAKE2b-256 | eb4cb6eabc5b634c3c5c6ae61ead1e7932f1b607cb9b623bfe27120ce15f77fb |
File details
Details for the file meteorite-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: meteorite-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.7m, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dbd256ec110ff41d2fa84edb55d1e80bf26f407be6e060bd02d646049046e88 |
|
MD5 | 2dbd6a6d4270f97dfda8141cef62fba5 |
|
BLAKE2b-256 | 212120c15157842d76e57be689ab70d107423fa9d086c3a490c09ba4759cd195 |