# Preflet - Python SDK
Use this SDK to communicate with Preflet’s services to make your ML apps cloud native.
## Sample Code
from preflet import Model from preflet import generate_auth_token from preflet import list_all_models from preflet import get_model
# train_type defaults to “Classification” and can be “Multi-Class” or # “Regression” as well my_model = Model(“your_model_name”, trained_clf, train_type=”Multi-Class”)
my_model.calculate_metrics(y_test, predictions)
my_model.extract_metadata(x_train, y_train)
token = generate_auth_token(api_key=’your_api_key’)
# host can be ‘beta.preflet.com’ if you want to host it on the cloud, or # ‘localhost’ my_model.upload(token, host=’beta.preflet.com’)
# to get a list of all your models data = list_all_models(token, host=’beta.preflet.com’)
# get a specific model for normal use/batch-prediction downloaded_clf, details = get_model(“your_model_name”, token, host=’beta.preflet.com’)
# make predictions out of the box downloaded_clf.predict([…])
Metadata
Release files for preflet 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| preflet-0.0.1.tar.gz | 3.9 kB | Without provenance | Details for preflet-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| preflet-0.0.1-py2-none-any.whl | Python 2 | none | any | Details for preflet-0.0.1-py2-none-any.whl |
Total release size: 8.1 kB
Release files / preflet-0.0.1.tar.gz
| Download URL | preflet-0.0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96dc9e4bfe02294ad48e8cbc18aa4d99dd9d66520975aee4f7445ebc6106d25d
|
|
BLAKE2b-256 checksum How to use checksums |
f1e9f2d4b3b032e8b3f22ac61d3257447a746ecf0a13cc49aa456a03f6739a3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
|
Release files / preflet-0.0.1-py2-none-any.whl
| Download URL | preflet-0.0.1-py2-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
4fe581eb7d30627f0b7fb3805d903167e47bf9f32090569fc9bbecce7836ebcb
|
|
BLAKE2b-256 checksum How to use checksums |
265436a8ffd6630f191667c4818ff15207728a607d953e091f46d32116882342
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
|
Security for preflet 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.