Nextbike API wrapper
Project description
Nextbike API wrapper (unofficial)
This is an unofficial nextbike API client.
It's worthy to note, that the API itself isn't open, so there is no permission of use or SLA.
Currently, the client implements only read operations.
How to use the client
The client itself is very simple. It allows acquiring all of the data, which, in turn, takes a lot of time, or fetch some country data only. Note, that "country" in terms of Nextbike API is not equal to its common meaning.
from nextbike_api.client import Client
c = Client()
print(c.country('ua'))
How to run the tests
There are two kinds of tests here: unit tests and integration tests. First ones do their job without interaction with some external stuff, e. g. Nextbike API. The latter need to make use of some external API. That makes them more time-consuming.
To be able to run tests, you need to install development packages:
$ pipenv install --dev
So, to run unit tests you need to execute pytest
But if you want to perform deep tests, you need to set a relevant environment variable:
export NEXTBIKE_API_SKIP_INTEGRATION_TESTS=False
and then run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nextbike_api-1.0.0.tar.gz.
File metadata
- Download URL: nextbike_api-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d332b37f6a9ace533439fa13cc9221db7ae2ef154edb4c6ca768a4b4d8ec9ad5
|
|
| MD5 |
13ef94f6f6fea400ed80b2f9a0423858
|
|
| BLAKE2b-256 |
cd9dcc1db96f1ea81490437e674d06d5133c053a083b1521e0fa932eef4e4fdb
|
File details
Details for the file nextbike_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nextbike_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f57d56df992e28741da149386b595fec5b1b6f9c8ffec952089b0890c217839e
|
|
| MD5 |
ea686593bebb06efcb8961a8318ce99d
|
|
| BLAKE2b-256 |
b2aa2ebbf64a80597ee2471af4d8f3464ef73a134f63e727e6ccfafec04e489c
|