☄️ 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.
Metadata
Release files for meteorite 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 75.3 MB
Release files / meteorite-0.1.0-cp311-none-win_amd64.whl
| Download URL | meteorite-0.1.0-cp311-none-win_amd64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b3cacae1e9040395bfce48bde3eb5b0bec173ced26e2c2cc9ab426839ae83ae1
|
|
BLAKE2b-256 checksum How to use checksums |
1c02c1dfc62d90f64c5c0e93940e0055b6fcf76212503931add0946e6b2a0aef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | meteorite-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
8bbcca3a5a3098590a5385be3d40aba6928f69bdebb34b2c69ed2243730ff37b
|
|
BLAKE2b-256 checksum How to use checksums |
b218bde2e3450be1225b474485dbfd7a1c335afc966985447765c33ec4e46fe5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | meteorite-0.1.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 6.6 MB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e1a3d3efd748ff68816e98c33a6b30beeb5a519951120cba3c0eafd1226e9c03
|
|
BLAKE2b-256 checksum How to use checksums |
81dcfbbe429f63afba5ad139a2999f595f621e1a8cc81d54fd7ca54d539c0860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp310-none-win_amd64.whl
| Download URL | meteorite-0.1.0-cp310-none-win_amd64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6bc04cf3a553e6e18199873ff0083db8708c73f8c83384e3eb44fc7af036c71f
|
|
BLAKE2b-256 checksum How to use checksums |
a9305828868527ef98878c72464b7b732f0ce841c01418d2fcdbc824d0d980c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | meteorite-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d67965a41cfa4e3d19bec0580224b8df9a3fe94004762e545e4de45fac53286c
|
|
BLAKE2b-256 checksum How to use checksums |
ec98c3b35fa260f83fd498eef1c2ffdc809ca7c6113d2e80d6b87104179bcb6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | meteorite-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 6.6 MB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1818937bafd5d16d7104906cd69347317cb619db50b50d9fcd8a1f872db30440
|
|
BLAKE2b-256 checksum How to use checksums |
14ac3e7796fa715009af532a404e6db4d892a2686f44ee4e90d7344698f13f8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp39-none-win_amd64.whl
| Download URL | meteorite-0.1.0-cp39-none-win_amd64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3a74ae41719ec1130a366a5dca2c768a14d4667042060ec2b9412b83a1f85664
|
|
BLAKE2b-256 checksum How to use checksums |
878740f7e18b4ec69421417e3b1e6a27c031de8aee678888eb412a8c9e31e2ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | meteorite-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
6d32aa9467fcd98ab31be17abde412f2ee61a26b7afb9ed522768301ae31a978
|
|
BLAKE2b-256 checksum How to use checksums |
2b06f6fddcc767aa9330b0193ea6303ea0ae1cc2dd7f29f73d109566c6559e69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | meteorite-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 6.6 MB |
| Tags | CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
67dd6f8456cd2e78a58de5ce46f288394fda52a31d052d777c732dd89638885d
|
|
BLAKE2b-256 checksum How to use checksums |
adb568dcf1272cc621a9b1d3863f9711bd49923eb7aa02daa44940d64f0007db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp38-none-win_amd64.whl
| Download URL | meteorite-0.1.0-cp38-none-win_amd64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b949f0e69dd65a0064ea520cae3a2e5b6fc68382dd4dc8ae6fe667989f3e1374
|
|
BLAKE2b-256 checksum How to use checksums |
d84a830a0a1b6d38bf8208c4cea75e5768d314a3c33f55682bf2a8b72c08041d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | meteorite-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
98f455c73e555defbcc7286c490eee28fe561daf52a491b6a90bf629d2afb7f3
|
|
BLAKE2b-256 checksum How to use checksums |
06851a14dbca95820a06ad9377ccca621eb7e316400c243ecabe592b5e72f9f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | meteorite-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 6.6 MB |
| Tags | CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
92956256f42294f27704f22b27dfeba476a5a96ec7d363d9c587cdc213e7ac20
|
|
BLAKE2b-256 checksum How to use checksums |
5c4b86ff617febb4fef1640f73734ba2081f69e5332a90c85bf17bf93b9b610e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp37-none-win_amd64.whl
| Download URL | meteorite-0.1.0-cp37-none-win_amd64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
df79817b186cc197d2bb597ee116507fcb503763f3c9b630df8486e05ee3cd01
|
|
BLAKE2b-256 checksum How to use checksums |
3d305a46205adeab6904fe5c5e6b95198657b233b23386273317e1e01985cc41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | meteorite-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
85fbcd41e7644f23ee41d0592b56284494db416565d01822dbba2fb58139d28d
|
|
BLAKE2b-256 checksum How to use checksums |
eb4cb6eabc5b634c3c5c6ae61ead1e7932f1b607cb9b623bfe27120ce15f77fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|
Release files / meteorite-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | meteorite-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 6.6 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7dbd256ec110ff41d2fa84edb55d1e80bf26f407be6e060bd02d646049046e88
|
|
BLAKE2b-256 checksum How to use checksums |
212120c15157842d76e57be689ab70d107423fa9d086c3a490c09ba4759cd195
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.3.0
|