tobiasbp / float_api

Python wrapper for API for project management service at float.com
MIT License
7 stars 8 forks source link

Float API

A Python wrapper of the project management service at float.com.

There is an example of how to use the wrapper here: https://github.com/tobiasbp/float_api/blob/master/demo.py

The API is documented here: https://dev.float.com/api_reference.html

To install with pip: pip install float-api

Example of use

To use the API, you must pass the FLOAT_ACCESS_TOKEN to the FloatAPI object when instantiating it. You must also supply a string of your own choice to use as User-Agent as well as an email address where you can be contacted. Read the documentation here.

# Import the API
from float_api import FloatAPI

# Instantiate API object
api = FloatAPI(FLOAT_ACCESS_TOKEN, 'My user agent', 'me@example.org')

# Get a list of all people
p = api.get_all_people()

Calls

These are the calls implemented in this wrapper. If the input to a function is DATA, it means a list of relevant arguments. See the Float documentation for details. getall calls returns lists, delete_ returns True or False. Other calls return dictionaries. On error, the wrapper will return empty lists, False and empty dictionaries respectively.

Clients

People

Phases

Projects

Tasks

Time off types

Logged Time

Testing

Test the wrapper by running pytest in the repository's root directory.