Mochi-api-client

Latest version: v0.1.4

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.1

Features
- Initial release of the Mochi API Client.
- Provides a Python client for interacting with the Mochi API.
- Supports managing cards, decks, and templates.
- Includes methods for creating, retrieving, updating, and deleting cards and decks.
- Supports custom fields and attachments in cards.

(latest) Improvements
- Comprehensive documentation with examples.
- Added class and sequence diagrams for better understanding of the client structure and interactions.
- Implemented unit tests for core functionalities.

Bug Fixes
- N/A (Initial release)

Known Issues
- None reported

API features not implemented
- Pagination (https://mochi.cards/docs/api/#pagination)

Installation
Install the Mochi API Client using pip:
sh
pip install mochi-api-client


Usage
Here's a quick example to get you started:
python
from mochi.client import Mochi
from mochi.auth import Auth

auth = Auth.Token("your_api_key")
mochi = Mochi(auth=auth)

List decks
decks = mochi.decks.list_decks()
print(decks)

Create a new deck if none exist
if len(decks) < 1:
new_deck = mochi.decks.create_deck(name="My new deck")
print(new_deck)


For detailed documentation, visit the [Mochi API Documentation](https://github.com/gsejas/mochi-api-client).

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.