Blockpipe Client for Python
Blockpipe Client is a Python library for interacting with Blockpipe Endpoint API. It provides a simple interface for fetching data from the API and supports both single endpoint and multiple endpoints.
Installation
Install the package using pip:
pip install blockpipe-client
Usage
- Import
BlockpipeClientand create a new instance:
from blockpipe_client import BlockpipeClient
client = BlockpipeClient("<PROJECT_SLUG>", {
"environment": "production", # optional
"baseUrl": "https://app.blockpipe.io/endpoint" # optional
})
- Fetch data from the Blockpipe Endpoint API:
results = client.get(["/path1", "/path2"])
or with a single endpoint
result = client.get("/path1")
- Use the fetched data in your application:
for result in results:
print(result)
# If you only requested one endpoint, you can access the data directly:
print(result)
API
BlockpipeClient
A Python class representing a Blockpipe Client instance.
Constructor:
project: The project slug.options(optional): A dictionary with optional configurations:environment: The deployment environment. Default is"production".baseUrl: The base URL for the API. Default is"https://app.blockpipe.io/endpoint".
get
A method to fetch data from one or multiple Blockpipe Endpoint API paths.
Arguments:
endpoints: A list of endpoint paths or a single endpoint path as a string.
Returns:
A list of data fetched from the specified endpoints, or a single data object if a single endpoint path was provided.
License
Metadata
Release files for blockpipe-client 0.1.3
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 |
|---|---|---|---|---|
| blockpipe-client-0.1.3.tar.gz | 6.3 kB | Without provenance | Details for blockpipe-client-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blockpipe_client-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for blockpipe_client-0.1.3-py3-none-any.whl |
Total release size: 13.0 kB
Release files / blockpipe-client-0.1.3.tar.gz
| Download URL | blockpipe-client-0.1.3.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01205353c62ae7312c2fc43dede1d23bb736e85f39e98d7e508f3486fa998aff
|
|
BLAKE2b-256 checksum How to use checksums |
07d3dd2b84187a4e9aff34e58626df9b6db74f4e4a5932baa864224e1416f919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Release files / blockpipe_client-0.1.3-py3-none-any.whl
| Download URL | blockpipe_client-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbd103aa785ca4a56fa7c7c601ccefbe6150be8481010b39be7025b418cd11db
|
|
BLAKE2b-256 checksum How to use checksums |
a75626526c806bec37ca4fc7b111ddd4709eee55f038a1868b0df5c6044c7f1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Security for blockpipe-client 0.1.3
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.