A Python-based command-line interface for interacting with the Memos API
Project description
📝 pymemos
Supercharge your note-taking with pymemos - your Python-based command-line companion for the Memos API!
🚀 Features
- ✍️ Create, read, update, and delete memos
- 🏷️ Manage memo visibility (Private, Protected, Public)
- 📂 List and manage resources
- 🗑️ Bulk delete all memos
- 🖥️ Clean, intuitive command-line interface
- 🐞 Debug logging for troubleshooting
🛠️ Installation
Get up and running in no time:
pip install pymemos
Configuration
Before using pymemos, you need to set the following environment variables:
MEMOS_BASE_URL: The base URL of your Memos API (e.g.,http://localhost:5230)MEMOS_ACCESS_TOKEN: Your access token (required)
You can set these in your shell:
export MEMOS_BASE_URL="http://your-memos-instance.com/api/v1"
export MEMOS_ACCESS_TOKEN="your-access-token"
🎮 Usage
After installation and configuration, you can use the pymemos command to interact with your Memos instance:
pymemos [command] [options]
Available commands:
create: Create a new memolist: List all memosget: Retrieve a specific memoupdate: Update an existing memodelete: Delete a specific memodelete-all: Delete all memos (use with caution!)list-resources: List all resources
Examples
-
Create a new memo:
pymemos create --content "Remember to buy groceries" --visibility PRIVATE -
List all memos:
pymemos list -
Get a specific memo:
pymemos get <memo_uid> -
Update a memo:
pymemos update <memo_uid> --content "Updated content" -
Delete a memo:
pymemos delete <memo_uid> -
Delete all memos:
pymemos delete-allUse the
--forceflag to skip the confirmation prompt:pymemos delete-all --force
🐞 Debugging
To enable debug logging, use the --debug flag with any command:
pymemos --debug [command] [options]
Debug logs are written to memos_debug.log in the current directory.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgements
- Memos - The open-source, self-hosted memo hub
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymemos-0.2.0.tar.gz.
File metadata
- Download URL: pymemos-0.2.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcc790540846435a94f36d78b87dfc6a8e1379e6fe148e66f7bc88754797c6fc
|
|
| MD5 |
fd659205a1121010684036872155447a
|
|
| BLAKE2b-256 |
d359e87a006f3dee33725461dc09558dcd8a1403d3df34fe3d09377262565587
|
File details
Details for the file pymemos-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pymemos-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dca59d2c478daedc1f6c740f1aaf256f66b9ccad630e0044515899038914123d
|
|
| MD5 |
0b5bde8e6b2cc16ae7bbc585566b9d36
|
|
| BLAKE2b-256 |
34570fdfccfff4dd41f1e16616b0b407d7636b7780025664cbfa2634c0dac682
|