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.1.0.tar.gz (38.5 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.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for simple_serve-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ddeac82f5e53b688490074d4b4b1f5536df3ec4f1200b5c439ab0b95552f6506
MD5 fa877047eb8e5479a045e2a6f16c8dd8
BLAKE2b-256 fb0749b83c038b8e03b131c78d2b36ead1b897a8dae620383c8d81f57e569417

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_serve-1.1.0.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.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for simple_serve-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcea39f16e6d5941108b01fae9abed090ccd64316b14ed9e1c0442d2eb0ff49b
MD5 e8af73903b07e655095965323424fdcf
BLAKE2b-256 b3c858a7211eaf4026716695be7d34a3d4804404070439c3d66579bad2917845

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_serve-1.1.0-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