pbsc
High-Level API Client for Public Bike System Company
install
pip install pbsc
basic CLI usage
pbsc export-trips --base="https://example.publicbikesystem.net/operation/data" --username="jdoe" --password="2c56477e97ab8b2d180a6513" --api-key="8854c5384dd288fb8f0ad8" $PWD/trips.csv
pbsc export-stations --base="https://example.publicbikesystem.net/operation/data" --username="jdoe" --password="2c56477e97ab8b2d180a6513" --api-key="8854c5384dd288fb8f0ad8" $PWD/stations.csv
pbsc export-docks --base="https://example.publicbikesystem.net/operation/data" --username="jdoe" --password="2c56477e97ab8b2d180a6513" --api-key="8854c5384dd288fb8f0ad8" $PWD/docks.csv
basic Python usage
from pbsc import PBSC
client = PBSC(
base ="https://example.publicbikesystem.net/operation/data",
username = "jdoe",
password = "2c56477e97ab8b2d180a6513",
api_key = "8854c5384dd288fb8f0ad8"
)
## download csv of all trips to a file
client.export_trips("trips.csv")
## download csv of all stations to a file
client.export_stations("stations.csv")
## download csv of all docks to a file
client.export_docks("docks.csv")
Metadata
Release files for pbsc 0.2.0
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 |
|---|---|---|---|---|
| pbsc-0.2.0.tar.gz | 7.2 kB | Without provenance | Details for pbsc-0.2.0.tar.gz |
Release files / pbsc-0.2.0.tar.gz
| Download URL | pbsc-0.2.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0e225b50ed3b92fa2aa80c296fcd5b2b3e13943cd279f9a3238ccc974e9c022
|
|
BLAKE2b-256 checksum How to use checksums |
dbf6d474d12acc8e25babd352db4c1c375644424ee8a20f63f1c8066bb419f69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.5
|
Security for pbsc 0.2.0
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.