Skip to content

Leschonander/Jump-Bike-D.C-Python-API-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jump-Bike-D.C-Python-API-Wrapper

🚴 🚴 🚴🚴🚴

A wrapper for Jump Bike D.C's open API made in python. Meant to make it easier to make requests to the library.

Do pip install pip install Jump-Bike-DC-API-Wrapper to install the package.

Package depends on Requests and JSON, depends on no other packages.

To work with here is an example.

import Jump-Bike-DC-API-Wrapper

API1 = JumpBikeAPI()
print(API1.FreeBikeStatus())

This will save a variable to the JSON feed that contains all open bikes at the moment.

Here are all the commands, with documentation as well.

FreeBikeStatus():
    '''
    Returns all the free Jump Bikes in D.C . Returns longitude, latitude,
    bike name, bike ID, and charge level
    '''

SystemInformation():
    '''
    Returns system information about Jump Bike D.C such as phone number
    and email. 
    '''

StationInformation():
    '''
    Returns information about the several rent stations that Jump Bike D.C
    has in D.C . Gives id, name, address, payment methods, longitude, and latitude.
    '''

SystemHours():
    '''
    Returns the hours of the day that renting a Jump Bike is possible.
    '''

SystemCalendar():
    '''
    Returns a simple calendar for the bike system.
    '''

SystemRegions():
    '''
    Returns basic information, really just the name, of the D.C
    Jump Bike region. 
    '''

SystemPricing():
    '''
    Returns the pricing plans Jump Bike has in D.C .
    '''

SystemAlerts():
    '''
    Returns any alerts Jump Bike D.C has. 
    '''

Just set any variable equal to JumpBikeAPI() and all these functions will be available to call, like print(test.SystemAlerts() to call any system alerts.

About

A Python Wrapper for Jump Bike DC's open API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages