%global _empty_manifest_terminate_build 0 Name: python-float-api Version: 0.0.13 Release: 1 Summary: A wrapper for the API at float.com License: MIT URL: https://github.com/tobiasbp/float_api Source0: https://mirrors.aliyun.com/pypi/web/packages/8f/f3/f3343fa8008b0394841c01515dd8044977c1301185736551d2a9f8f5173b/float_api-0.0.13.tar.gz BuildArch: noarch Requires: python3-requests %description # 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](https://dev.float.com/overview_authentication.html). # 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](https://dev.float.com/api_reference.html) 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) ## 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) # Testing Test the wrapper by running _pytest_ in the repository's root directory. %package -n python3-float-api Summary: A wrapper for the API at float.com Provides: python-float-api BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-float-api # 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](https://dev.float.com/overview_authentication.html). # 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](https://dev.float.com/api_reference.html) 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) ## 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) # Testing Test the wrapper by running _pytest_ in the repository's root directory. %package help Summary: Development documents and examples for float-api Provides: python3-float-api-doc %description help # 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](https://dev.float.com/overview_authentication.html). # 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](https://dev.float.com/api_reference.html) 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) ## 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) # Testing Test the wrapper by running _pytest_ in the repository's root directory. %prep %autosetup -n float_api-0.0.13 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-float-api -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Jun 08 2023 Python_Bot - 0.0.13-1 - Package Spec generated