Skip to main content

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

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.2.0.tar.gz (12.3 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.2.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for simple_serve-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e0338249018d0f43d66b2882edf10f829b8f60d5bbcf76b64120c2f63b426d4f
MD5 ec7844691910fa949d8b0ccfb6077244
BLAKE2b-256 e8110e12316fc46dd44c6f3cd15cb02d11a2322db2b1c6015296eeb25c30c88a

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for simple_serve-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 131e629a5b22ce1059a740f9344aa945718f2a3d2d210218126a067c74a1b4c7
MD5 2d943114ccf6b2a5c21dd5f7f9191601
BLAKE2b-256 703be4a73a8c43cf7bf2af5660d72c0ecd3ea7d46f1cd643fbb77104954b4134

See more details on using hashes here.

Provenance

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