Skip to main content

No project description provided

Reason this release was yanked:

Outdated and incompatible

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 = bytearray(data).decode("utf-8")
    """
    Run your model on the input
    """
    return {"result": "value"}

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.1-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.1-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.1-cp39-none-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.9 Windows x86-64

meteorite-0.0.1-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.1-cp38-none-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

meteorite-0.0.1-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.1-cp37-none-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.7 Windows x86-64

meteorite-0.0.1-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.1-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.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9c6410f603a47fea5064d6b0f1e676f2f09d437aaea1327d8f7abc6a3c0ceb6f
MD5 8b35d3b6f9ac5ebfbd4352183e58974d
BLAKE2b-256 5ae4fd86828c1ec73a810655ab0ad1289c864b859b7c01566dff205f2ac5f190

See more details on using hashes here.

File details

Details for the file meteorite-0.0.1-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.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 03277a6e8529c4bd41591fb255ff75d89864fe47c14a8188a2b83af65c16fa30
MD5 117d0481b36b1d38f547d891177456b1
BLAKE2b-256 55895940ebb431ede3bb6a39386713f6b68755453fe4aafb9a3324c57205b623

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meteorite-0.0.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb496d930405e3b5a03ab09148236ff78e0d60371d65b6b830f595e0fd3c3f98
MD5 f43a65d98c55400d8632c705a98b38e1
BLAKE2b-256 901cc3cc08f5222c705b3896db22ed3e1b1d910122c79526eeb8137afdc0fcfb

See more details on using hashes here.

File details

Details for the file meteorite-0.0.1-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.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4b4d8cb5c37ba931286ffb6ed0f43c152078a0c2dbd2618e8dde5b957ff9c1bf
MD5 6caae23ec8b7bb9d84fb9c8a18d1c346
BLAKE2b-256 1476952e786a33987b60f6e34b3ccf32fcc46bb5b4443f7da744fe3267267508

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meteorite-0.0.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 3c9042dc4ed2dd53e1832fb2804227fd68f1a3f50cb2b02fb76a3baefdc08309
MD5 9ce5d9a1fc94a550619347eba2fa9704
BLAKE2b-256 fa45fcfe58eb5c1aa29581e7a150eee55625a7e164c7bb25dbbd1e57b7425598

See more details on using hashes here.

File details

Details for the file meteorite-0.0.1-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.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d1ad36e8ed0a9228eaef75a566254f8bcf7dce33399433dd1feb665ac77bf0de
MD5 6db54879b5aad86c6af589a843b10000
BLAKE2b-256 62f75a5d690a1ec9d99b9a46bcf08929dc61bd67dbebf829441dc2e8bce6b5f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meteorite-0.0.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 65f8fab4e6500d2766da55be0f115394ac1c81e2ecec5db48284688afa42cf6a
MD5 e7ba2372845edbabdc9dad57d99d9046
BLAKE2b-256 b1baaf5eb433c8dbe7bd079bccf4a118a11c39bcae9e5827c6370b53b8bdc08d

See more details on using hashes here.

File details

Details for the file meteorite-0.0.1-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.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d7955c19759d87c1de108b12eef41a1106a1e18e67ea6876db3fa70a46b14b3b
MD5 be23dbfaf125693a37346eec18a890af
BLAKE2b-256 9b451ad43014fbe9120ff7776b0198e198cc1049d82bb533386dbcafeb0c5bda

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