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()

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 route and port for the main task.
  • 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

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

Uploaded CPython 3.11 Windows x86-64

meteorite-0.0.3-cp311-cp311-manylinux_2_34_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

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

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

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

Uploaded CPython 3.10 Windows x86-64

meteorite-0.0.3-cp310-cp310-manylinux_2_34_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

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

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

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

Uploaded CPython 3.9 Windows x86-64

meteorite-0.0.3-cp39-cp39-manylinux_2_34_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.34+ x86-64

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

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

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

Uploaded CPython 3.8 Windows x86-64

meteorite-0.0.3-cp38-cp38-manylinux_2_34_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.34+ x86-64

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

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

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

Uploaded CPython 3.7 Windows x86-64

meteorite-0.0.3-cp37-cp37m-manylinux_2_34_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.34+ x86-64

meteorite-0.0.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (5.0 MB view details)

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

File details

Details for the file meteorite-0.0.3-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.3-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 3e193cd854d5b563c1f17ea38d591a11c76c31a2e9247e89b1f6d83fe3d7f847
MD5 f6d8b6ab452dc6e4a697b367c58455a7
BLAKE2b-256 5c0d2aefacaad49b339c19cc6dbefceb6940d634f3795a717b4ecf96713232ad

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 56adfc39496fe247765684127bf7dfcad49c42c9ef2a5d7f615a1b713ca072d0
MD5 8d8de411d01dba2d3e844205ec76a8f9
BLAKE2b-256 c7e496bd9cd9a805616707b87f425ca590dcc5c8e7245ce1a842a8308fd900a8

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-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.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ee63cdbad29c931d269b3e3f066d6b7563b93af57bc53e63152ed46c296f93ae
MD5 11fe68c8fff8869854e67885a9ad30f8
BLAKE2b-256 08216c58ae154c3df88804b4412395c3ae078524ae8203e69e4cbd5908e44ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meteorite-0.0.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 db4a61ae07acc4fb9767995ff8ece53128865e7a60e2868abeac6a6b14416750
MD5 47b4e154d740ff7073af2c60874f4b1d
BLAKE2b-256 dfb74d1158ef3761e66f602967c508c3046c7c90765ea083f96f0dc3e6a1f13b

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3e7784559eb1c5534a0bfe38ff598dfd140dbd2c7e60ef26b3211b2e37f7094e
MD5 68e1edf274f725ec6eb56d45dba64a56
BLAKE2b-256 8987c4b5bb9f20bd05aed20dfe9a0c664cdb1e676de67efe2353eed7433990a2

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-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.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c565f5296dba012686ba8420c259f433cb8a6906dec744f41725102d25b1f20b
MD5 5150ddc61b27117a76feaba32685aade
BLAKE2b-256 a2a96b5043812c4a1d45d1c9610ad7ec99959f71bb415a04835d52d2d47d5945

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meteorite-0.0.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 a2b20ecf9ac939f1558e2c08f1fab71ff8c3d28d4e58fceb13db479b6f76b6a8
MD5 c3990406c6fdf2f67eaebea1627c4f6d
BLAKE2b-256 f26bb81816b2804c4edc0aefb3f87a2a5f7fca8f61c2b8991622452d156d7f67

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.3-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 be6c04e8a77a6388799b886f876d71dc78b4a70e1ac0ab96b0162e0ef14805fe
MD5 296b472dae58f57d009dd5df8060f286
BLAKE2b-256 ce6d12d1fbd148a6b20a92ea3f716b44f098831a5153b68c215c6201aaac6adc

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-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.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a6f2aec1586b87894f6f5067428496a5074e1126b2c5668430af4b74d70981ab
MD5 8fbd36e926f6a9694ac46270a6d62ac1
BLAKE2b-256 3c5b6e799cf57e81db842ea1c485af28abf522d08253432fb975bc40c5120c88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meteorite-0.0.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 af9b09521dbbf17314e040cee80af6a6c782c294debf382cc48755d5e898b22b
MD5 2dffadf65641465df89383f5b91b8df2
BLAKE2b-256 fa8404ae3050d8917186a8b05890318dcc8501e2b822cc311a2d1451a947dba2

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.3-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1852bcca2674d1698e5e2f25d7bfd4cc80f8acc409dc7e693e58fb4d9d049190
MD5 1e651cb3f3f39961ea3afc4e83d52278
BLAKE2b-256 c6eec62d0338773e2b21da60028fa6601aca6ead3e7dfc0568d276c0911fe1b5

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-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.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fcddeaf7bfee47f3d82edf0ae5db71874843cb3f34afae1eed47ca9e70089d4b
MD5 a546fdb613bcd49dffc770abe473393f
BLAKE2b-256 4677e69c75f6afbd3e712c4450e55625bdeccc13d7ab4fd3fa9b4c437062ad60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meteorite-0.0.3-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 69d4f20026b0371d5f4cb178a22c57fdc5a00b1fa52ea5dda1b246c3364a04f4
MD5 9ed4828ea5781d724c71dab0a4a11853
BLAKE2b-256 441449ed9ddd3d86970e116d772c014be92cb27a46e10bf02332a2c07ae8a3be

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-cp37-cp37m-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for meteorite-0.0.3-cp37-cp37m-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c0094ea56adbeb22b37fb2104db290f5029adfa6883aa3ba0c3fc07af5a928d9
MD5 33a21d6ebdbcd135b1798559fb886947
BLAKE2b-256 c3851b1d8596d0c22c3c27577be7f53914237a2d54ee18bfb2b1b9c180a2a64d

See more details on using hashes here.

File details

Details for the file meteorite-0.0.3-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.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0456379cab01667ba36f423f5a1fc994aa19f53580157a17b347454856ea1328
MD5 a0213f8a3093bcd30344c44b7e88b91d
BLAKE2b-256 34dfc3262ab64b47add0478be2a830a2de62de5c788f14326f248f88aea3c52d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page