# pbsc
High-Level API Client for Public Bike System Company
## install
```sh
pip install pbsc
```
## basic CLI usage
```sh
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
```python
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")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/officeofperformancemanagement/pbsc",
"name": "pbsc",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "data, python",
"author": "Daniel J. Dufour",
"author_email": "daniel.j.dufour@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/db/f6/d474d12acc8e25babd352db4c1c375644424ee8a20f63f1c8066bb419f69/pbsc-0.2.0.tar.gz",
"platform": null,
"description": "# pbsc\nHigh-Level API Client for Public Bike System Company\n\n## install\n```sh\npip install pbsc\n```\n\n## basic CLI usage\n```sh\npbsc export-trips --base=\"https://example.publicbikesystem.net/operation/data\" --username=\"jdoe\" --password=\"2c56477e97ab8b2d180a6513\" --api-key=\"8854c5384dd288fb8f0ad8\" $PWD/trips.csv\n\npbsc export-stations --base=\"https://example.publicbikesystem.net/operation/data\" --username=\"jdoe\" --password=\"2c56477e97ab8b2d180a6513\" --api-key=\"8854c5384dd288fb8f0ad8\" $PWD/stations.csv\n\npbsc export-docks --base=\"https://example.publicbikesystem.net/operation/data\" --username=\"jdoe\" --password=\"2c56477e97ab8b2d180a6513\" --api-key=\"8854c5384dd288fb8f0ad8\" $PWD/docks.csv\n```\n\n## basic Python usage\n```python\nfrom pbsc import PBSC\n\nclient = PBSC(\n base =\"https://example.publicbikesystem.net/operation/data\",\n username = \"jdoe\",\n password = \"2c56477e97ab8b2d180a6513\",\n api_key = \"8854c5384dd288fb8f0ad8\"\n)\n\n## download csv of all trips to a file\nclient.export_trips(\"trips.csv\")\n\n## download csv of all stations to a file\nclient.export_stations(\"stations.csv\")\n\n## download csv of all docks to a file \nclient.export_docks(\"docks.csv\")\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "High-Level API Client for Public Bike System Company",
"version": "0.2.0",
"project_urls": {
"Download": "https://github.com/officeofperformancemanagement/pbsc/tarball/download",
"Homepage": "https://github.com/officeofperformancemanagement/pbsc"
},
"split_keywords": [
"data",
" python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dbf6d474d12acc8e25babd352db4c1c375644424ee8a20f63f1c8066bb419f69",
"md5": "9c53b9c3222d5e66370c9aa27c0505db",
"sha256": "b0e225b50ed3b92fa2aa80c296fcd5b2b3e13943cd279f9a3238ccc974e9c022"
},
"downloads": -1,
"filename": "pbsc-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "9c53b9c3222d5e66370c9aa27c0505db",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7208,
"upload_time": "2024-06-14T22:59:49",
"upload_time_iso_8601": "2024-06-14T22:59:49.535288Z",
"url": "https://files.pythonhosted.org/packages/db/f6/d474d12acc8e25babd352db4c1c375644424ee8a20f63f1c8066bb419f69/pbsc-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-14 22:59:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "officeofperformancemanagement",
"github_project": "pbsc",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pbsc"
}