Skip to main content

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

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
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

  • OS Package Publishing - Debian (.deb), RPM, Windows installer
  • Python Package Publication - PyPI release
  • Homebrew Publication - macOS/Linux via Homebrew

License

MIT License - See LICENSE for details.

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

dynamic_alias-1.0.1.tar.gz (55.2 kB view details)

Uploaded Source

Built Distribution

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

dynamic_alias-1.0.1-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file dynamic_alias-1.0.1.tar.gz.

File metadata

  • Download URL: dynamic_alias-1.0.1.tar.gz
  • Upload date:
  • Size: 55.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dynamic_alias-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c891e2fc4e8c5cd3e7755d53b8c977b381f8470424cedd0b4ed22c131ab66035
MD5 a48c7bddfea73fbf1c33f1a1aa12ca9f
BLAKE2b-256 3252c403e8a7f8e5d7fc2a1fec909b4baba0178583afb40528662115be41b253

See more details on using hashes here.

File details

Details for the file dynamic_alias-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: dynamic_alias-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dynamic_alias-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9eedc576b2c21319db826748d0d38f3bc1084320840d9bf86fd7d360baba8177
MD5 0cfd3d3ebe1f07326f9a9880d4a23b6c
BLAKE2b-256 c8f2431cd618df0833fdea4a8b9b92e24ec1f82cd2afbe015ab9f28946b5530e

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