Deployment of a Scikit-Learn model and it's column transformations with a single endpoint.
Project description
sk-serve
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eccdd52e39e9c2ed6f51e0327dbdfbb6d420d12025122d9a61f7ef42c066565e
|
|
| MD5 |
f0156bfa1f2b4717179557d2782da95d
|
|
| BLAKE2b-256 |
1e3b5c9b0193838d8be9115fb4215f63da1e950a04b203534c8c658746bb3700
|
Provenance
The following attestation bundles were made for simple_serve-1.0.3.tar.gz:
Publisher:
publish_package.yaml on alexliap/sk_serve
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simple_serve-1.0.3.tar.gz -
Subject digest:
eccdd52e39e9c2ed6f51e0327dbdfbb6d420d12025122d9a61f7ef42c066565e - Sigstore transparency entry: 165502673
- Sigstore integration time:
-
Permalink:
alexliap/sk_serve@9e17b76fb0fa560a398fa794252a083b0c68adc4 -
Branch / Tag:
refs/tags/1.0.3 - Owner: https://github.com/alexliap
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_package.yaml@9e17b76fb0fa560a398fa794252a083b0c68adc4 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86996c253b36870161f8387b4613863e967b668e8bba4d64c3e394eed0ee4861
|
|
| MD5 |
33be6e6b84f073b9fe6edefaeffd239b
|
|
| BLAKE2b-256 |
35a980014c74adf2662fb8b63d229a8edb3fff8c3c94306eb7c22649ef4061b1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simple_serve-1.0.3-py3-none-any.whl -
Subject digest:
86996c253b36870161f8387b4613863e967b668e8bba4d64c3e394eed0ee4861 - Sigstore transparency entry: 165502675
- Sigstore integration time:
-
Permalink:
alexliap/sk_serve@9e17b76fb0fa560a398fa794252a083b0c68adc4 -
Branch / Tag:
refs/tags/1.0.3 - Owner: https://github.com/alexliap
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_package.yaml@9e17b76fb0fa560a398fa794252a083b0c68adc4 -
Trigger Event:
release
-
Statement type: