A Python library for interfacing with the Motion
๐งช This library is still in development and is not yet ready for production use.
pip install python-motion
from motion import Motion
motion = Motion('your-api-key')
# Get Tasks
tasks = motion.tasks.list()
Library docs are a work in progress. For now, you can refer to the official API documentation for more information.
Every resource has a list
, retrieve
, create
, update
, and delete
method.
# List
tasks = motion.tasks.list()
# Retrieve
task = motion.tasks.retrieve('task-id')
# Create
task = motion.tasks.create({
'name': 'Task Name',
'description': 'Task Description'
})
# Update
task = motion.tasks.update('task-id', {
'name': 'New Task Name'
})
# Delete
motion.tasks.delete('task-id')
- Tasks
- Projects
- Users
- Workspaces
- Comments
- Schedule
- Initial implementation
- Named arguments for all methods
- Async support
- Convert responses to Pydantic models