Python client for the Teammood API.
Teammood (https://app.teammood.com) is a online app that polls teams daily to see how they are doing and to catch problems before they become big. Geared towards agile dev teams it's a easy way to see how everyone is operating.
I AM NOT PERSONALLY AFFILIATED WITH TEAMMOOD
I use this for my teams and i needed a python client for reporting. Hence this project. Any help you want to contribute is appreciated.
- requests
- Import the module
from teammood.teammood import Teammood, INTERVALS, TAG_COMBINATOR
- Create the client
teammood_client = Teammood(team_id="TEAM_ID",
api_key="API_KEY")
Query moods with associated participation
super_mood = teammood_client.get_moods_with_participation(
start_datetime=datetime.datetime(year=2019, month=5, day=1),
end_datetime=datetime.datetime(year=2019, month=5, day=27)
)
Query moods by a date range
moods = teammood_client.get_all_moods_for_dates(start_datetime=datetime.datetime(year=2019, month=5, day=1),
end_datetime=datetime.datetime(year=2019, month=5, day=31)
)
Query moods for last X days
moods = teammood_client.get_all_moods_since(since=7)
Response
Team
tags: [Tag]
days: [Day
moods: [Mood]
]
Query participation by a date range
participation = teammood_client.get_participation_for_dates(start_datetime=datetime.datetime(year=2019, month=5, day=1),
end_datetime=datetime.datetime(year=2019, month=5, day=27)
)
Response
Participation
rates: [Rate]