Skip to main content

Library an CLI to speak with moolticute service

Project description

A Python client library to interact with a Mooltipass device via Moolticuted WebSocket.

Description

This project provides a Python library for interacting with Mooltipass devices through the Moolticuted daemon. It allows you to manage logins, get/set passwords, and more.

Features

  • Real-time communication with the Mooltipass device via moolticuted WebSocket.
  • Convenience methods for common use cases, like getting passwords or setting credentials.
  • CLI usage

Installation

pip install moolticutepy

Library Usage

To use this library, simply import it into your Python project and start using its functions. For example:

client = MoolticuteClient()

# Get a password for a specific service
response = client.get_password("example.com")
password = response.data.password

# Set a new credential for another service
response = client.set_password(
    "other.example.com",
    password="new_password",
    login="username",
    description="A description"
)

CLI

The moolticutepy CLI provides a command-line interface to interact with your Mooltipass device. It allows you to list, get, and set passwords for various services.

Commands

list_logins

Lists all logins stored on the Mooltipass device.

Usage: list_logins

Example:

$ moolticutepy list_logins
Entering management mode. Please approve prompt on device ...[OK]
- example.com []:
     * {'category': '0', 'date_created': '2024-07-30', 'date_last_used': '2024-07-30', 'description': 'description', 'favorite': -1, 'login': 'user@example.com'}
     * {'category': '0', 'date_created': '2024-07-30', 'date_last_used': '2024-07-30', 'description': 'description', 'favorite': -1, 'login': 'other.user@example.com'}
- other.example.com []:
     * {'category': '2', 'date_created': '', 'date_last_used': '2024-09-04', 'description': 'description', 'favorite': 20, 'login': 'username@example.com'}

get

Retrieves a password for a specific service.

Usage: get <service> [-f|--fallback-service <fallback_service>] [-l|--login <login>]

  • <service>: the name of the service (required)
  • -f or --fallback-service: an optional fallback service to use if the primary service is not available
  • -l or --login: an optional login to use with the password

Example:

$ moolticutepy get private.example.com -f example.com
password123

set

Sets a password for a specific service.

Usage: set <service> [-l|--login <login>] [-p|--password <password>] [-d|--description <description>]

  • <service>: the name of the service (required)
  • -l or --login: an optional login to associate with the password
  • -p or --password: the new password to set (optional, will prompt for input if not provided)
  • -d or --description: an optional description to store with the password

Example:

$ moolticutepy set example.com -l admin -p newPassword123
Credentials stored for example.com [OK]

License

This project is licensed under the MIT License.

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

moolticutepy-0.3.4.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moolticutepy-0.3.4-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file moolticutepy-0.3.4.tar.gz.

File metadata

  • Download URL: moolticutepy-0.3.4.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for moolticutepy-0.3.4.tar.gz
Algorithm Hash digest
SHA256 e9fa1dd667786b6a9697f7afa15baf2fbad5efe8153227c307637a8d607f100e
MD5 2e7a890ca40084045a7848da990a17fa
BLAKE2b-256 4e0069d815700e3e2f002b5caadc0e9db033bfc4a0960ee2f1741b38150f32ed

See more details on using hashes here.

File details

Details for the file moolticutepy-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: moolticutepy-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for moolticutepy-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d2843ed8afcfe836eadc2413f8002843cc6ff898ce54a798519df826153d303c
MD5 878f72bbb74674f89f2aa94ee1331810
BLAKE2b-256 1a1d16b0008768a97972ba25a6be810e2470d86ecec0ed80a34e3c953b47f687

See more details on using hashes here.

Supported by

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