Auto Switch Providers
Project description
Auto Switch Providers
Install
Install the latest auto-switch-providers release via pip
pip install auto-switch-providers
How to use?
To use auto-switch-providers
, you must first import it, like the following code:
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
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
Built Distribution
File details
Details for the file auto_switch_providers-0.0.8.tar.gz
.
File metadata
- Download URL: auto_switch_providers-0.0.8.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94ba60b5463cf978aeea18ca89e95d7b353d4578ed3aec7b715a050165c441dc |
|
MD5 | d37debba1b9299c92dd1e30dfe647884 |
|
BLAKE2b-256 | f262761e0aebae96d458f28c2cafe38e86ea3cd04d78ecbe3b6628b5f9caf45f |
File details
Details for the file auto_switch_providers-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: auto_switch_providers-0.0.8-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf0c970a208289cc0ca9bb1d513537e7aa6c9d6ccd915cd9f7db3009b5c192d |
|
MD5 | a4b2e794f933bc5ba16c8ebee0f90504 |
|
BLAKE2b-256 | ad539a45e36497c1dc05ee8a66d6eaae1546756304ae248cb99cf7f263e3497b |