Skip to content

rhymiz/python-motion

Repository files navigation

Python Motion

A Python library for interfacing with the Motion

🧪 This library is still in development and is not yet ready for production use.

Installation

pip install python-motion

Usage

from motion import Motion

motion = Motion('your-api-key')

# Get Tasks
tasks = motion.tasks.list()

Documentation

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')

Available Resources:

  • Tasks
  • Projects
  • Users
  • Workspaces
  • Comments
  • Schedule

Roadmap

  • Initial implementation
  • Named arguments for all methods
  • Async support
  • Convert responses to Pydantic models