Friendly client to navigate in Glassfrog's API
- Install with:
pip install glassfrog
- Add your API token to the environment variable
GLASSFROG_API_TOKEN
All supported models have 2 methods that can be used to locate resources:
.get(id: int)
fetches the resource given its ID.list()
iterates over all known resources
Most models also have attributes to help navigate through related resources, such as fetching all roles from a circle.
Here's an example of exploration:
from glassfrog import models
for circle in models.Circles.list(): # fetch all circles from the organization
print(circle.name)
for role in circle.roles: # fetch all roles from a each circle
print(role.purpose)
for people in role.people: # fetch all people that are assigned to each role
print(people.name)
- Can be listed?: YES
- Attributes: name, short_name, strategy
- Linked Resources: organization, roles, policies, domains, supported_role
- Can be listed?: YES
- Attributes: name, email
- Linked Resources: organizations, circles, assignments
- Can be listed?: YES
- Attributes: name, short_name, is_core, purpose, elected_until
- Linked Resources: organization, circle, supporting_circle, domains, accountabilities, people, assignments
- Can be listed?: YES
- Attributes: focus, election, exclude_from_meetings
- Linked Resources: person, role
- Can be listed?: NO
- Attributes: description
- Can be listed?: NO
- Attributes: title, body
- Can be listed?: NO
- Attributes: description
- Can be listed?: NO
- Attributes: created_at, archived_at, description, status, waiting_on_who, waiting_on_what, value, effort, roi, private_to_circle
- Linked Resources: circle, person, role