Socket
Socket
Sign inDemoInstall

pbsc

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pbsc

High-Level API Client for Public Bike System Company


Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc