GithubHelp home page GithubHelp logo

bdmbdsm / nextbike_api Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 42 KB

Unofficial Nextbike API wrapper written in Python

Home Page: https://pypi.org/project/nextbike-api/

License: MIT License

Python 100.00%
api-wrapper api-client nextbike python3 python python-library python-package

nextbike_api's Introduction

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

nextbike_api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nextbike_api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.