A Python client for interacting with the Mochi API.
Project description
Mochi API Client
The Mochi API Client is a Python library designed to simplify interacting with the Mochi API, allowing developers to easily create, retrieve, update, and delete cards and decks within their Python applications.
Features
- Simplified access to the Mochi API endpoints
- Methods for managing cards, decks, and templates
- Support for custom fields and attachments in cards
- Easy to integrate with Python applications
Installation
Install the Mochi API Client using pip:
pip install mochi-api-client
Quick Start
Here's a quick example to get you started:
from mochi.client import Mochi
from mochi.auth import Auth
auth = Auth.Token("find api token in mochi settings page")
mochi = Mochi(auth=auth)
# list decks
decks = mochi.decks.list_decks()
print(decks)
if len(decks) < 1:
# Working with decks
new_deck = mochi.decks.create_deck(name="My new deck")
print(new_deck)
# Working with cards
new_card = mochi.cards.create_card("New card content", (decks[0])["id"])
print(new_card)
# Working with templates
templates = mochi.templates.list_templates()
print(templates)
mochi.close()
Documentation
For detailed documentation on all available methods and their parameters, visit Mochi API Documentation.
Contributing
Contributions are welcome! Please read our Contributing Guide for details on how to submit pull requests, report issues, and suggest improvements.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you encounter any problems or have suggestions, please file an issue on the GitHub issue tracker.
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
Built Distribution
File details
Details for the file mochi-api-client-0.1.1.tar.gz
.
File metadata
- Download URL: mochi-api-client-0.1.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a245c5cc8fd8b7afd35067a8521d7187bce306f20542d444a4ab1f04bc560f72 |
|
MD5 | d0a654641ae7d521ff7448befcba6e90 |
|
BLAKE2b-256 | 148d30b81943bc03fc43d05570701023567844bb8eb5044df8378fbda05bc55d |
File details
Details for the file mochi_api_client-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: mochi_api_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ede3b249e2a0ce2481a132b32797b6e17e8378f2509f7d131a9fa97e3bbe6b0e |
|
MD5 | b6701b00ab95eec5fce458af917710bc |
|
BLAKE2b-256 | ff7df2ad38351f6fdd44c1a25e0d702083bfe29b165ba6137fd1cacef5dbc64c |