Skip to main content

Veliberator

Veliberator provides a Python API for getting informations about the stations of the Velib’ bike renting network.

Binaries

The packages provides few binaries to tests and to initialize the datas.

  • synchronize.py

    Must be used at first to grab the general datas about the stations.

  • find_place.py

    A test script for finding free places to park a bike or the stations around.

Note that you must run these commands as root until you have not configured your own settings.

Usage

To retrieve the informations of a station you only have to have the ID of the station, and run synchronize.py to initiate the data.

The in your python interpreter :

>>> from veliberator.stations import Station
>>> station = Station(42008)
>>> station.informations.address
u'128 AVENUE DANIEL CASANOVA'

The informations attributes contains many data such as :

  • address

  • postal_code

  • city

  • lat (the latitude of GPS coordonates)

  • lng (the longitude of GPS coordonates)

  • opened (boolean who told if the station is open)

  • bonus (boolean who told if the station is a bonus station)

You could retrieve the live status of the station easily :

>>> station.status.available
24
>>> station.status.free
1

And we can retrieve the station ids around our station by distance :

>>> station.stations_around
[42006, 42010, 42012, 42014, 42016, ...]

Other methods on the Station objects are available, but the source is often more explicit.

Settings

You can change the settings of the applications by creating or editing the .veliberator.cfg file in your home directory, basing on the /etc/veliberator.cfg.

Metadata

Release files for veliberator 0.2.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for veliberator 0.2.9.1
File Size Uploaded
veliberator-0.2.9.1.tar.gz 78.7 kB Details

Release files / veliberator-0.2.9.1.tar.gz

Download URL veliberator-0.2.9.1.tar.gz
Size 78.7 kB
Tags Source
SHA-256 checksum
How to use checksums
249d4d5e4365e1dc4ba0114d67731565e272da980e448bfac86dae8696723898
BLAKE2b-256 checksum
How to use checksums
ed0bc1dc4bc7c8ea44a62c15b22efffe10a8b81024d953e4b34360a4066ae1f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.3.3

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.9.2

1 release file

This release

0.2.9.1 This release

1 release file

0.2.9

1 release file

0.2.8.1

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4.1

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.1.9

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page