Skip to main content

A CLI tool to interact with an account pool service.

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

account_pool_cli-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

account_pool_cli-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for account_pool_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 897eea194ef51d2449a2c908ba54f7a03ee1826d00059bc56cb09638d1ed556e
MD5 28c75a8cee7889086c64670088821312
BLAKE2b-256 11c3857fd03f3d32fce05a1744b75314f6144dacf93cf8f87f8b48c7383a456d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for account_pool_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae165d09f6445ad20ed16622d5925a56006010b7d727485a1ff35f6b7986a713
MD5 ff2bf46661d64ef6d801af29508ca1eb
BLAKE2b-256 c63e0849b17a7457fcb3d7a6725501b471b5258fa740d5f8fb6ee1034af04df4

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