Skip to main content

High-Level API Client for Public Bike System Company

Project description

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pbsc-0.2.0.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file pbsc-0.2.0.tar.gz.

File metadata

  • Download URL: pbsc-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.5

File hashes

Hashes for pbsc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b0e225b50ed3b92fa2aa80c296fcd5b2b3e13943cd279f9a3238ccc974e9c022
MD5 9c53b9c3222d5e66370c9aa27c0505db
BLAKE2b-256 dbf6d474d12acc8e25babd352db4c1c375644424ee8a20f63f1c8066bb419f69

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page