Skip to main content

A suite of CLI utilities for account pool and device spy services.

Project description

Account Pool CLI

A simple CLI tool to interact with the account pool service, allowing you to fetch account details.

Installation

To install the Account Pool CLI, run the following command in your terminal:

pip install .

(If you publish it to PyPI, you would use pip install account-pool-cli)

Usage

Once installed, you can use the ap command:

Get account info by main number

ap info <main_number> [--env_name <environment_name>]

Example:

ap info 1234567890
ap info +1234567890 --env_name specific_env

env_name defaults to webaqaxmn if not provided.

Get a random account

ap get_random_account <account_type> [--env_name <environment_name>]

Example:

ap get_random_account "QQ" 
ap get_random_account "YOUR_ACCOUNT_TYPE" --env_name specific_env

Get account info by ID

ap get_account_by_id <account_id> [--env_name <environment_name>]

Example:

ap get_account_by_id "60c72b2f9b1d8f001f8e4d3a"
ap get_account_by_id "60c72b2f9b1d8f001f8e4d3b" --env_name specific_env

Development

To set up for development:

  1. Clone the repository.
  2. Create a virtual environment: python -m venv .venv
  3. Activate it: source .venv/bin/activate (on Linux/macOS) or .venv\Scripts\activate (on Windows)
  4. Install dependencies: pip install -r requirements-dev.txt (You'll need to create this file if you have dev-specific dependencies like pytest)
  5. Install the package in editable mode: pip install -e .

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

my_cli_utilities-0.1.4.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

my_cli_utilities-0.1.4-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file my_cli_utilities-0.1.4.tar.gz.

File metadata

  • Download URL: my_cli_utilities-0.1.4.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for my_cli_utilities-0.1.4.tar.gz
Algorithm Hash digest
SHA256 377487f0e6c49a05ebae683e2e4ee8becf078d6901a4dd4bbdcc8804b7c2fb1d
MD5 f17d488edae3f5857fe7a8c39eb4f732
BLAKE2b-256 088245c6a20530ef498b64365cab6638638cb0376c7504895d1216bf0b2c4168

See more details on using hashes here.

File details

Details for the file my_cli_utilities-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for my_cli_utilities-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 80a624517fc9b676b27d67a124bcfa8b6f8e830348dfdabd518d17814d00fa09
MD5 ddd53e74314bdc7a897ea6e73a4ad265
BLAKE2b-256 a0b61bd489ec7fbf6df326f56d7b3ecb7e3cff5687ee751eb8783557b64a96d2

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