Skip to main content

No project description provided

Project description

Azure Subscription Switcher

🔹 A CLI tool to interactively select Azure subscriptions using fzf fuzzy search.

📦 Installation

pip install azure-subscription-switcher
# Or using Poetry
poetry add azure-subscription-switcher

🚀 Usage

azsub

-OR-

azsub -s <subscription_id>

🛠 Requirements

  • Azure CLI (az) must be installed and logged in.
  • fzf (fuzzy finder) is required:
    • Mac: brew install fzf
    • Linux: sudo apt install fzf
    • Windows: Install via Git Bash or Chocolatey (choco install fzf).

🧰 Features

✅ Fetches available Azure subscriptions ✅ Interactive fuzzy search for selection ✅ Automatically switches to the selected subscription ✅ Switches to the subscription passed with -s,--subscription

🛠 Development & Contribution

  1. Clone the repository:
    git clone https://github.com/yourusername/azure-subscription-switcher.git
    cd azure-subscription-switcher
    
  2. Install dependencies using Poetry:
    poetry install
    
  3. Run the CLI locally:
    poetry run azsub
    

📤 Publishing to PyPI

  1. Build the package:
    poetry build
    
  2. Publish to PyPI:
    poetry publish --username <your-pypi-username> --password <your-pypi-password>
    

🤝 Contributing

Pull requests are welcome! If you'd like to make improvements, please fork the repository and open a PR

📄 License

This project is licensed under the MIT License. See the LICENSE file 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

azure_subscription_switcher-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

azure_subscription_switcher-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: azure_subscription_switcher-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for azure_subscription_switcher-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ac886b782717976ae7901786e2c4017cfbddb02c7d064b1cc6316a6c67b4b72
MD5 2855dac0077bdd463a63f2f564e4fbc5
BLAKE2b-256 09730a80236ad2e7f40310284c04db349873b88c0af976d3f7325af471283200

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for azure_subscription_switcher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff7ae74edbf6227b71e833419a35f5cd4b720a264df4fb0504aaae2e62de18bf
MD5 05ba82f25dc4eb3d26861ae74ea9b348
BLAKE2b-256 bde08c77b854c6a099a0f800902c44c2c965471491fc662a60a12defacf08408

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