Skip to main content

Deployment of a Scikit-Learn model and it's column transformations with a single endpoint.

Project description

sk-serve

deploy on pypi PyPI Version Downloads

Deployment of a Scikit-Learn pipeline with a single endpoint. Validation of input data is also supported with pydantic.

Usage

See the Examples section of the repository.

Installation

The package exists on PyPI (with a different name though) so you can install it directly to your environment by running the command

pip install simple-serve

Dependencies

  • pydantic
  • fastapi
  • pandas
  • scikit-learn
  • loguru

Additional packages for development:

  • pyright
  • pre-commit

Development

If you want to contribute you fork the repository and clone it on your machine

git clone https://github.com/alexliap/sk_serve.git

And after you create you environment (either venv or conda) and activate it then run this command

pip install -e ".[dev]"

That way not only the required dependencies are installed but also the development ones.

Also this makes it so that when you import the code to test it, you can do it like any other module but containing the changes you made locally.

Before you decide to commit, run the following command to reformat code in order to be in the acceptable style.

pre-commit install
pre-commit run --all-files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_serve-1.0.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_serve-1.0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file simple_serve-1.0.3.tar.gz.

File metadata

  • Download URL: simple_serve-1.0.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for simple_serve-1.0.3.tar.gz
Algorithm Hash digest
SHA256 eccdd52e39e9c2ed6f51e0327dbdfbb6d420d12025122d9a61f7ef42c066565e
MD5 f0156bfa1f2b4717179557d2782da95d
BLAKE2b-256 1e3b5c9b0193838d8be9115fb4215f63da1e950a04b203534c8c658746bb3700

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_serve-1.0.3.tar.gz:

Publisher: publish_package.yaml on alexliap/sk_serve

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simple_serve-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: simple_serve-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for simple_serve-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 86996c253b36870161f8387b4613863e967b668e8bba4d64c3e394eed0ee4861
MD5 33be6e6b84f073b9fe6edefaeffd239b
BLAKE2b-256 35a980014c74adf2662fb8b63d229a8edb3fff8c3c94306eb7c22649ef4061b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_serve-1.0.3-py3-none-any.whl:

Publisher: publish_package.yaml on alexliap/sk_serve

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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