Metadata-Version: 2.3
Name: azure-subscription-switcher
Version: 0.1.0
Summary: 
Author: Lahiru Senevirathne
Author-email: lahiru.senevirathne@icloud.com
Requires-Python: >=3.13
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: click (>=8.1.3,<9.0.0)
Description-Content-Type: text/markdown

# Azure Subscription Switcher

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

## 📦 Installation

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

## 🚀 Usage

```sh
azsub
```
-OR-
```sh
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:
   ```sh
   git clone https://github.com/yourusername/azure-subscription-switcher.git
   cd azure-subscription-switcher
   ```
2. Install dependencies using Poetry:
   ```sh
   poetry install
   ```
3. Run the CLI locally:
   ```sh
   poetry run azsub
   ```

## 📤 Publishing to PyPI

1. Build the package:
   ```sh
   poetry build
   ```
2. Publish to PyPI:
   ```sh
   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](LICENSE) file for details.


---



