Skip to main content

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 memos command to interact with your Memos instance:

memos [command] [options]

Available commands:

  • create: Create a new memo
  • list: List all memos
  • get: Retrieve a specific memo
  • update: Update an existing memo
  • delete: Delete a specific memo
  • delete-all: Delete all memos (use with caution!)
  • list-resources: List all resources

Examples

  1. Create a new memo:

    memos create --content "Remember to buy groceries" --visibility PRIVATE
    
  2. List all memos:

    memos list
    
  3. Get a specific memo:

    memos get <memo_uid>
    
  4. Update a memo:

    memos update <memo_uid> --content "Updated content"
    
  5. Delete a memo:

    memos delete <memo_uid>
    
  6. Delete all memos:

    memos delete-all
    

    Use the --force flag to skip the confirmation prompt:

    memos delete-all --force
    

🐞 Debugging

To enable debug logging, use the --debug flag with any command:

memos --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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymemos-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pymemos-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pymemos-0.1.0.tar.gz.

File metadata

  • Download URL: pymemos-0.1.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

Hashes for pymemos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8974aee21ce49c3a3a500195df92cca9afe588c067264874a6b8eedefc064e12
MD5 eef9c2a0acb6d56d17a11be4fecd9d90
BLAKE2b-256 ad0aa05da2583ececdcf3baac65f355523e7080a42f3db8f5e904161f633a55d

See more details on using hashes here.

File details

Details for the file pymemos-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pymemos-0.1.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

Hashes for pymemos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f65b2e0aff829ea064a510242ca016dc1886046fe99c74f518bf442c52db704d
MD5 52ad15682935f6567ff961166aeafb17
BLAKE2b-256 e2252346673e8ce93c6fec6ed915b36437ef129b194ba4fd9adbece9e195c3a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page