priceloop-api-python
A client library for accessing Priceloop API
Install
pip install priceloop-api
Usage
First, create a PriceloopClient:
from priceloop_api.priceloop.auth import PriceloopClient
client = PriceloopClient.with_credentials("username", "password")
read and write to nocode:
import pandas as pd
from priceloop_api.priceloop.data import to_nocode, read_nocode
# write to nocode
data = [["Alex", 10], ["Bob", 12], ["Clarke", 13]]
df = pd.DataFrame(data, columns=["Name", "Age"])
to_nocode(df, "table_name", client)
# read from nocode
new_df = read_nocode("table_name", client, limit=limit, offset=offset)
call your endpoint, example:
from priceloop_api.api.workspace_api import list_workspaces, get_workspace
workspaces = list_workspaces.sync(client=client)
workspace = get_workspace.sync(workspaces[0], client=client)
add columns to existing table:
from priceloop_api.api.column_api import add_data_column, add_formula_column
from priceloop_api.models import AddDataColumnType
add_data_column.sync(workspace.name, "table_name", "column_name", type=AddDataColumnType.STRING, client=client)
add_formula_column.sync(workspace.name, "table_name", "column_name", "expression", client=client)
Things to know:
-
Every path/method combo becomes has four functions:
sync: Blocking request that returns parsed data (if successful) orNonesync_detailed: Blocking request that always returns aRequest, optionally withparsedset if the request was successful.asyncio: Likesyncbut async instead of blockingasyncio_detailed: Likesync_detailedbut async instead of blocking
-
All path/query params, and bodies become method arguments.
-
If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)
-
Any endpoint which did not have a tag will be in
priceloop_api.api.default
Metadata
Release files for priceloop-api 0.213.6
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 |
|---|---|---|---|---|
| priceloop-api-0.213.6.tar.gz | 57.6 kB | Without provenance | Details for priceloop-api-0.213.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| priceloop_api-0.213.6-py3-none-any.whl | Python 3 | none | any | Details for priceloop_api-0.213.6-py3-none-any.whl |
Total release size: 267.1 kB
Release files / priceloop-api-0.213.6.tar.gz
| Download URL | priceloop-api-0.213.6.tar.gz |
|---|---|
| Size | 57.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed78e447656aaa9a6a276a193357da2a81ee892cecfa8dcc629e94c843f2eabb
|
|
BLAKE2b-256 checksum How to use checksums |
6e9476e56db1beb851540141701e73f654669a4293b3ec4e88a6d48963a1d3eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / priceloop_api-0.213.6-py3-none-any.whl
| Download URL | priceloop_api-0.213.6-py3-none-any.whl |
|---|---|
| Size | 209.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c30f2374bf2e6f14e490f32555b1ee922a8228336c7b5c1947d73f59758998d
|
|
BLAKE2b-256 checksum How to use checksums |
001e76c52121640e760ccb1ec52f81ad436e4e525a42d73bc1a1c5ac9f0a07f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Security for priceloop-api 0.213.6
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.