Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suutari/tiimaweb
Tiima Web Controller
https://github.com/suutari/tiimaweb
Last synced: 6 days ago
JSON representation
Tiima Web Controller
- Host: GitHub
- URL: https://github.com/suutari/tiimaweb
- Owner: suutari
- License: mit
- Created: 2020-03-06T01:56:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T03:52:55.000Z (almost 3 years ago)
- Last Synced: 2024-11-05T17:55:02.409Z (10 days ago)
- Language: Python
- Size: 89.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
TiimaWeb - Tiima Web Controller
===============================This library can be used to control the Tiima web UI through a simple
Python API. It uses MechanicalSoup for mimicing browser actions.|PyPI|
.. |PyPI| image::
https://img.shields.io/pypi/v/tiimaweb.svg
:target: https://pypi.org/project/tiimaweb/Installing
----------TiimaWeb is in PyPI and can be installed simply by::
pip install tiimaweb
or if you use Poetry::
poetry add tiimaweb
Usage
-----The library can be used from Python code like this:
.. code:: python
from datetime import date, datetime
import tiimaweb
client = tiimaweb.Client()
with client.login('username', 'password', 'company') as tiima:
# Get all time blocks of 2020-02-29
time_blocks = tiima.get_time_blocks_of_date(date(2020, 2, 29))# Print and delete all those time blocks
for time_block in time_blocks:
print(time_block)
tiima.delete_time_block(time_block)# Add new time block
tiima.add_time_block(
start=datetime(2020, 3, 1, 8, 30),
end=datetime(2020, 3, 1, 11, 45))