Skip to content

Python HTTP client for finding and renting cycles from the docomo cycle service

License

Notifications You must be signed in to change notification settings

dan-ess/pycycles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pycycles

Python HTTP client for finding and renting cycles from the docomo cycle service.

Disclaimer

This is not officially associated with the docomo cycle service in any way. Use at your own discretion within the terms of use of the docomo cycle service.

Usage

You'll need an account on the docomo cycle service.

Once you have one, to rent a bicycle you can do this:

from pycycles import Client, ServiceArea
client = Client('username', 'password')
client.login()
cycleports = client.cycleports(ServiceArea.CHUO)
cycles = client.cycles(cycleports[0])
client.rent(cycles[0])

Development

To set up in your environment locally:

pipenv install

To check typing:

mypy pycycles

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dan-ess/pycycles

License

The gem is available as open source under the terms of the MIT License.

About

Python HTTP client for finding and renting cycles from the docomo cycle service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages