Skip to main content

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

Metadata

Release files for auto-switch-providers 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auto-switch-providers 0.0.8
File Size Uploaded
auto_switch_providers-0.0.8.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auto-switch-providers 0.0.8
File Interpreter ABI Platform
auto_switch_providers-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / auto_switch_providers-0.0.8.tar.gz

Download URL auto_switch_providers-0.0.8.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
94ba60b5463cf978aeea18ca89e95d7b353d4578ed3aec7b715a050165c441dc
BLAKE2b-256 checksum
How to use checksums
f262761e0aebae96d458f28c2cafe38e86ea3cd04d78ecbe3b6628b5f9caf45f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / auto_switch_providers-0.0.8-py3-none-any.whl

Download URL auto_switch_providers-0.0.8-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbf0c970a208289cc0ca9bb1d513537e7aa6c9d6ccd915cd9f7db3009b5c192d
BLAKE2b-256 checksum
How to use checksums
ad539a45e36497c1dc05ee8a66d6eaae1546756304ae248cb99cf7f263e3497b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page