Dynamic Alias is a powerful CLI application that allows users to create 'aliases with superpowers'. It transforms complex command-line interactions into simple, autocompletable shortcuts, leveraging dynamic data sources and structured configurations.
Project description
Dynamic Alias (dya)
A declarative CLI builder that transforms complex command-line workflows into simple, memorable aliases with smart autocompletion.
Why Dynamic Alias?
Modern infrastructure professionals juggle dozens of CLI tools daily—AWS, GCP, Azure, Kubernetes, databases, and more. Each tool has its own syntax, flags, and resource identifiers. Dynamic Alias lets you define once, use everywhere:
# Instead of remembering:
aws ssm start-session --target i-0abc123def456 --region us-east-1
# Just type:
dya ssm prod-web-server
Quick Start
# Install
pip install dynamic-alias
# Create ~/.dya.yaml
echo "
config:
history-size: 100
---
type: command
name: Hello World
alias: hello
command: echo 'Hello from Dynamic Alias!'
" > ~/.dya.yaml
# Run
dya hello
Documentation
| Topic | Description |
|---|---|
| Getting Started | Installation, first config, running |
| Configuration | YAML structure, config block, styles |
| Static Dicts | Defining static data sources |
| Dynamic Dicts | Fetching data from external commands, caching, TTL |
| Commands | Aliases, subcommands, arguments |
| Helper System | Auto/custom helper types, array aliases |
| Features | Strict mode, timeout, history |
| Interactive Mode | Shell, autocomplete, history navigation |
Examples
Real-world configurations for cloud providers:
| Example | Description |
|---|---|
| AWS | SSO login, SSM sessions, RDS PostgreSQL, ElastiCache |
| GCP | gcloud auth, Compute SSH, Cloud SQL, Memorystore |
| Azure | az login, VM SSH, PostgreSQL, Redis Cache |
| OCI | oci session, Compute SSH, Autonomous DB, Redis |
| Custom CLI | Building your own branded CLI |
Use Cases
Infrastructure Professionals
DBAs, SREs, DBREs, and DevOps engineers who work with multiple tools and dozens of resources daily. Stop memorizing instance IDs—let Dynamic Alias remember them for you.
Companies Building Internal CLIs
Create a declarative, customizable CLI for your organization. Define your company's resources in YAML and distribute a branded tool to your teams.
Roadmap
Recently Added
- Cache Encryption - Automatic encryption using machine identifier (Windows GUID, Linux/macOS machine-id)
Upcoming
- OS Package Publishing - Debian (.deb), RPM, Windows installer
- Homebrew Publication - macOS/Linux via Homebrew
License
MIT License - See LICENSE for details.
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 dynamic_alias-1.1.0.tar.gz.
File metadata
- Download URL: dynamic_alias-1.1.0.tar.gz
- Upload date:
- Size: 76.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c746b4dea72baf4870edac4a45a79f56be4ad0ebb75120a61869c622466eabb
|
|
| MD5 |
eb20f8ca3cb5812e958ea12edb7fe839
|
|
| BLAKE2b-256 |
d9e3309ad4f6e0c1d71aa54c20fe762bbfb5786bf74f3c0761a1cf5365a4dffe
|
File details
Details for the file dynamic_alias-1.1.0-py3-none-any.whl.
File metadata
- Download URL: dynamic_alias-1.1.0-py3-none-any.whl
- Upload date:
- Size: 45.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b51cf971b1166d799d1a79c08fafcdd785b2c21812f7bbe4b93c6b91331c9a3
|
|
| MD5 |
85da942a0ea61eeebd001bc4c21de8c5
|
|
| BLAKE2b-256 |
defe9e315d1aa698082e8395ebbbf05df28c1050b35ed1e1217cc5383c89118a
|