Tiima Web Controller
Project description
This library can be used to control the Tiima web UI through a simple Python API. It uses MechanicalSoup for mimicing browser actions.
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:
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))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tiimaweb-0.3.1.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for tiimaweb-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7821beb58d67bd8ebbc732b60d68b25f5583bc517d21792e4cf44479ae224c |
|
MD5 | 8400c7d25b10be7fa22c28e87f431fb7 |
|
BLAKE2b-256 | 77fb76e9da3fbc552a74d8e0b06693faea893b8067d08b815bc94c0c899f23c5 |