fastDeploy python client
Project description
fastDeploy python client
from fdclient import FDClient
client = FDClient('http://localhost:8080') # optional compression=False to disable zstd compression
# infer
response = client.infer([obj_1, obj_2, ...]) # optional unique_id='some_id' to specify a unique id for the request
# infer in background
response_future = client.infer_background([obj_1, obj_2, ...]) # optional unique_id='some_id' to specify a unique id for the request
response = response_future.result() # wait for the response and get it
- By default fdclient communicates with fastDeploy server via pickles
- pickle is very useful and makes sense when using fastDeploy server as a micro service internally i.e: all requests to fastDeploy originate from code you have writtem
- PICKLE is secure if all the inputs to fastDeploy are originating from your code and not direct external user's pickles
- PICKLE is unsecure if you are passing external user inputs to fastDeploy directly without validation in between
- start fastDeploy serve with
--config "allow_pickle=false"if the fastDeploy APIs are exposed to outside allow_pickle=falseconfig on server side makes fdclient usemsgpackif available orjsonif msgpack not available.
If pickle is unsecure, why use it at all?
- pickle is great to send or receive arbitary inputs and outputs
- if
allow_pickle=true(default) your inputs and outputs can be any python objects, eg: np arrays, pd dataframes, float32 anything .... - pickle is only unsecure if you are unpickling objects pickled by others (since they can insert malicious code)
- If fastDeploy is being used only for internal microservices, pickle is the best way so enabled by default
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 fdclient-3.1.2.tar.gz.
File metadata
- Download URL: fdclient-3.1.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65862c5c2decc8bd13ccff8cf4a5b01efce98216f3298cd1561e92e7172c118e
|
|
| MD5 |
de19515a3ee35b574d23afc797796fd3
|
|
| BLAKE2b-256 |
2aaa84dd533d3f2594bd75c9022bf8bfe6e446309ceb8e791bacf94820eb90d0
|
Provenance
The following attestation bundles were made for fdclient-3.1.2.tar.gz:
Publisher:
python_client.yml on notAI-tech/fastDeploy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fdclient-3.1.2.tar.gz -
Subject digest:
65862c5c2decc8bd13ccff8cf4a5b01efce98216f3298cd1561e92e7172c118e - Sigstore transparency entry: 937697350
- Sigstore integration time:
-
Permalink:
notAI-tech/fastDeploy@15bf4a937e6d6fe59751918eea5c3153953fbd8f -
Branch / Tag:
refs/heads/master - Owner: https://github.com/notAI-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python_client.yml@15bf4a937e6d6fe59751918eea5c3153953fbd8f -
Trigger Event:
push
-
Statement type:
File details
Details for the file fdclient-3.1.2-py3-none-any.whl.
File metadata
- Download URL: fdclient-3.1.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20289e3434e31dfbfe7c21488f81edbee3ae3458e57c4d34d4eaa2d7211ca1fc
|
|
| MD5 |
5a9746e03a68b5a222a64b96fa547c11
|
|
| BLAKE2b-256 |
4bb4f99d557b9d74abd4cfd835764346f9350a0e67962fec4ba12c105b188266
|
Provenance
The following attestation bundles were made for fdclient-3.1.2-py3-none-any.whl:
Publisher:
python_client.yml on notAI-tech/fastDeploy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fdclient-3.1.2-py3-none-any.whl -
Subject digest:
20289e3434e31dfbfe7c21488f81edbee3ae3458e57c4d34d4eaa2d7211ca1fc - Sigstore transparency entry: 937697359
- Sigstore integration time:
-
Permalink:
notAI-tech/fastDeploy@15bf4a937e6d6fe59751918eea5c3153953fbd8f -
Branch / Tag:
refs/heads/master - Owner: https://github.com/notAI-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python_client.yml@15bf4a937e6d6fe59751918eea5c3153953fbd8f -
Trigger Event:
push
-
Statement type: