Deployment of a Scikit-Learn model and it's column transformations with a single endpoint.
Project description
sk-serve
Deployment of a Scikit-Learn model and it's column transformations with a single endpoint. Only a traditional Scikit-Learn model is needed and a ColumnTransformer object (sklearn.compose) to deploy your model. Validation of input data is also supported with pydantic.
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
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
File details
Details for the file simple_serve-1.0.2.tar.gz
.
File metadata
- Download URL: simple_serve-1.0.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9352a01c9ba66d26f7a8f8a03ff94e7892ab10144f29ced0e95691893fad6ea1 |
|
MD5 | 755b615a546e1f4d6628a9e1c87899a3 |
|
BLAKE2b-256 | a52a2067baa227c0bbfcd894a53f221b6be7584ea3e2940046b7d2b88085d620 |
File details
Details for the file simple_serve-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: simple_serve-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa5b77bb55f4cdb981096ac1b27ff8669e620556967877388e8cd898cce7c230 |
|
MD5 | eaf77a58da5323af75db99df985a8ebd |
|
BLAKE2b-256 | f017af01aa74b4b62c18a43e811c353e97205e22497be84f0b8fdd97865b0e4b |