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. get_all_* 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
- get_all_clients()
- create_client(data)
- get_client(client_id)
- update_client(data)
- delete_client(client_id)
People
- get_all_people()
- get_people_reports(start_date, end_date, [people_id])
- create_person(data)
- get_person(people_id)
- update_person(data)
- delete_person(people_id)
Phases
- create_phase(data)
- get_phase(phase_id)
- update_phase(data)
- delete_phase(phase_id)
Projects
- get_all_projects()
- get_project_reports(start_date, end_date, [project_id])
- create_project(data)
- get_project(project_id)
- update_project(data)
- delete_project(project_id)
Tasks
- get_all_tasks([start_date],[end_date])
- create_task(data)
- get_task(task_id)
- update_task(data)
- delete_task(task_id)
Time off types
- get_all_timeoff_types()
- create_timeoff_type(data)
- get_timeoff_type(timeoff_type_id)
- update_timeoff_type(data)
- delete_timeoff_type(timeoff_type_id)
Logged Time
- get_all_logged_time()
- create_logged_time(data)
- get_logged_time(logged_time_id)
- update_logged_time(data)
- delete_logged_time(logged_time_id)
Testing
Test the wrapper by running pytest in the repository's root directory.
Metadata
Release files for float-api 0.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| float_api-0.0.15.tar.gz | 10.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| float_api-0.0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / float_api-0.0.15.tar.gz
| Download URL | float_api-0.0.15.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99f7dcfe3b641899aa3c65171a28c103ccc45e0e749beab0d2642f0b9f358ab3
|
|
BLAKE2b-256 checksum How to use checksums |
d5f41a1ec7ff0be91a46fbbd96c1e157eefd0bdea16f32570ce8f6ef8fc36012
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / float_api-0.0.15-py3-none-any.whl
| Download URL | float_api-0.0.15-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc62cf1dfc775397cd3a3f4b4427ff67bdb18096b3387587f9e5404add1ef19b
|
|
BLAKE2b-256 checksum How to use checksums |
5fed1d0c7732552da0e5464fa970e7b457e6f55167c4cb6ca6512cde9556f07f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for float-api 0.0.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.