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
Close
Hashes for auto_switch_providers-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94ba60b5463cf978aeea18ca89e95d7b353d4578ed3aec7b715a050165c441dc |
|
MD5 | d37debba1b9299c92dd1e30dfe647884 |
|
BLAKE2b-256 | f262761e0aebae96d458f28c2cafe38e86ea3cd04d78ecbe3b6628b5f9caf45f |
Close
Hashes for auto_switch_providers-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf0c970a208289cc0ca9bb1d513537e7aa6c9d6ccd915cd9f7db3009b5c192d |
|
MD5 | a4b2e794f933bc5ba16c8ebee0f90504 |
|
BLAKE2b-256 | ad539a45e36497c1dc05ee8a66d6eaae1546756304ae248cb99cf7f263e3497b |