Metadata-Version: 2.1
Name: auto-switch-providers
Version: 0.0.4
Summary: Auto Switch Providers
Home-page: https://github.com/fuongz/auto-switch-providers
Author: fuongz
Author-email: hi@phuongphung.com
License: MIT
Project-URL: Bug Reports, https://github.com/fuongz/auto-switch-providers/issues
Project-URL: Source, https://github.com/fuongz/auto-switch-providers
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8, <4
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: backports.tarfile ==1.2.0
Requires-Dist: certifi ==2024.2.2
Requires-Dist: charset-normalizer ==3.3.2
Requires-Dist: docutils ==0.21.2
Requires-Dist: flake8 ==7.1.0
Requires-Dist: idna ==3.7
Requires-Dist: importlib-metadata ==8.0.0
Requires-Dist: jaraco.classes ==3.4.0
Requires-Dist: jaraco.context ==5.3.0
Requires-Dist: jaraco.functools ==4.0.1
Requires-Dist: Jinja2 ==3.1.4
Requires-Dist: keyring ==25.2.1
Requires-Dist: markdown-it-py ==3.0.0
Requires-Dist: MarkupSafe ==2.1.5
Requires-Dist: marshmallow ==3.21.2
Requires-Dist: mccabe ==0.7.0
Requires-Dist: mdurl ==0.1.2
Requires-Dist: more-itertools ==10.3.0
Requires-Dist: nh3 ==0.2.17
Requires-Dist: packaging ==24.0
Requires-Dist: pkginfo ==1.10.0
Requires-Dist: pycodestyle ==2.12.0
Requires-Dist: pyflakes ==3.2.0
Requires-Dist: Pygments ==2.18.0
Requires-Dist: PyYAML ==6.0.1
Requires-Dist: readme-renderer ==43.0
Requires-Dist: redis ==5.0.7
Requires-Dist: requests ==2.32.2
Requires-Dist: requests-toolbelt ==1.0.0
Requires-Dist: rfc3986 ==2.0.0
Requires-Dist: rich ==13.7.1
Requires-Dist: twine ==5.1.1
Requires-Dist: urllib3 ==2.2.1
Requires-Dist: zipp ==3.19.2

# Auto Switch Providers

## Install

Install the latest auto-switch-providers release via **pip**

```bash
pip install auto-switch-providers
```

## How to use?

To use `auto-switch-providers`, you must first import it, like the following code:

```python
from auto_switch_providers import AutoSwitchProviders

# Import path from os to get template path
from os import path

# Define config
TEMPLATE_CONFIG = {
    "custom_api_provider": {
        "http_service": {
            "params": {
                "token": ""
            }
        }
    },
}

# Init service
service = AutoSwitchProviders(
    template_dir=f"{path.dirname(__file__)}/templates",
    config=TEMPLATE_CONFIG
)

# Process
service.process({
    "custom_param": "example"
})
```

## ©️ License

- [MIT](/LICENSE)
