A suite of CLI utilities for account pool and device spy services.
Project description
My CLI Utilities
A suite of powerful CLI tools for interacting with Account Pool and Device Spy services. This package provides two main utilities: ap for account management and ds for device management.
🚀 Features
- Account Pool CLI (
ap): Manage and query accounts from the account pool service - Device Spy CLI (
ds): Monitor and interact with devices in the device spy system - User-friendly interface: Beautiful emoji-enhanced output with pagination
- Smart caching: Index-based access for faster operations
- Flexible search: Support for various query patterns including IP suffix matching
📦 Installation
From PyPI (Recommended)
pip install my-cli-utilities
From Source
git clone <repository-url>
cd my-cli-utilities
pip install .
Development Installation
git clone <repository-url>
cd my-cli-utilities
make setup
🔧 Usage
Account Pool CLI (ap)
Quick Start
# List available account types
ap types
# Get a random account by type name
ap get "kamino2(CI-Common-4U,mThor,brand=1210)"
# Get a random account by index (from types list)
ap get 2
# Get account details by phone number
ap info 12495002020
# Get account by ID
ap by_id 507f1f77bcf86cd799439011
Available Commands
ap types [filter] [brand]- List account types with optional filteringap get <type|index> [env]- Get random account by type or indexap info <phone> [env]- Get account details by phone numberap by_id <id> [env]- Get account details by IDap cache [clear]- Manage cache (view status or clear)ap help- Show detailed help
Device Spy CLI (ds)
Quick Start
# Get device information
ds udid A1B2C3D4E5F6
# List available devices
ds devices android
ds devices ios
# Find hosts
ds host lab # Search by keyword
ds host .201 # Search by IP suffix
ds host XMNA067 # Search by alias
Available Commands
ds info <udid>- Get detailed device informationds devices <platform>- List available devices (android/ios)ds host <query>- Find host by various criteriads help- Show detailed help
💡 Advanced Features
Smart Caching
The account pool CLI automatically caches account types for faster access:
ap types # Cache account types
ap get 5 # Use index instead of long type name
ap cache # View cache status
ap cache clear # Clear cache
Flexible Host Search
The device spy CLI supports multiple search patterns:
ds host 192.168 # Find hosts containing IP pattern
ds host .201 # Find hosts ending with .201
ds host lab # Find hosts with 'lab' in any field
ds host 15.4 # Find hosts with macOS version 15.4
Pagination
Both tools support interactive pagination for long lists:
- Press Enter to continue to next page
- Type 'q' to quit viewing
🛠️ Development
Setup Development Environment
make setup # Install dev dependencies
make build # Build the package
make install-dev # Install in editable mode
Build and Release
make build # Build package
make upload-test # Upload to TestPyPI
make upload # Upload to PyPI
Project Structure
my-cli-utilities/
├── account_pool_cli/ # Account Pool CLI
├── device_spy_cli/ # Device Spy CLI
├── my_cli_utilities_common/ # Shared utilities
│ ├── http_helpers.py # HTTP request helpers
│ └── pagination.py # Pagination utilities
├── .cursor/ # Coding rules and patterns
├── pyproject.toml # Project configuration
├── Makefile # Build automation
└── README.md # This file
🔧 Configuration
Default Settings
- Account Pool: Default environment is
webaqaxmn, brand1210 - Device Spy: Supports both Android and iOS platforms
- Pagination: 5 items per page by default
- Cache: Stored in system temp directory
Environment Variables
No environment variables required - all configuration is built-in with sensible defaults.
🤝 Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes following the coding standards in
.cursor/ - Test your changes:
make build && make install-dev - Submit a pull request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
For issues and questions:
- Check the help:
ap helpords help - Review the examples in this README
- Create an issue on the project repository
Happy CLI-ing! 🚀
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 my_cli_utilities-0.3.4.tar.gz.
File metadata
- Download URL: my_cli_utilities-0.3.4.tar.gz
- Upload date:
- Size: 61.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
488c1ef85803de41701d7359b0f9003280a01024ab4af0a90883be6da34b2091
|
|
| MD5 |
9949b1cab37e9870aa7cd5e3995594bd
|
|
| BLAKE2b-256 |
c6271e0b8b94e05b772d094cfce12e30db7570e79fb2857c12930bd7f515f6f2
|
File details
Details for the file my_cli_utilities-0.3.4-py3-none-any.whl.
File metadata
- Download URL: my_cli_utilities-0.3.4-py3-none-any.whl
- Upload date:
- Size: 70.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8c8e92fac0f6b09e72a9f611ba76098b61ea660a8b927d6f0e42d760651b794
|
|
| MD5 |
182089f0aad71d5c5df64d08968451a0
|
|
| BLAKE2b-256 |
6671d0ae36fdbe6d8ef28b918f98bd91948a5fcf0a0340edf146df45616c2f2e
|