Skip to main content

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

auto_switch_providers-0.0.8.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

auto_switch_providers-0.0.8-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for auto_switch_providers-0.0.8.tar.gz
Algorithm Hash digest
SHA256 94ba60b5463cf978aeea18ca89e95d7b353d4578ed3aec7b715a050165c441dc
MD5 d37debba1b9299c92dd1e30dfe647884
BLAKE2b-256 f262761e0aebae96d458f28c2cafe38e86ea3cd04d78ecbe3b6628b5f9caf45f

See more details on using hashes here.

File details

Details for the file auto_switch_providers-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_switch_providers-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 cbf0c970a208289cc0ca9bb1d513537e7aa6c9d6ccd915cd9f7db3009b5c192d
MD5 a4b2e794f933bc5ba16c8ebee0f90504
BLAKE2b-256 ad539a45e36497c1dc05ee8a66d6eaae1546756304ae248cb99cf7f263e3497b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page