{"id":20215618,"url":"https://github.com/fuongz/auto-switch-providers","last_synced_at":"2026-03-14T09:01:41.048Z","repository":{"id":246455013,"uuid":"805298318","full_name":"fuongz/auto-switch-providers","owner":"fuongz","description":"🔀 Auto Switch Providers","archived":false,"fork":false,"pushed_at":"2024-07-11T05:35:10.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T23:20:00.353Z","etag":null,"topics":["auto-switch-providers","python","python-library","requests-library-python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/auto-switch-providers","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fuongz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-24T09:32:47.000Z","updated_at":"2024-07-11T05:34:03.000Z","dependencies_parsed_at":"2024-07-09T06:13:01.823Z","dependency_job_id":null,"html_url":"https://github.com/fuongz/auto-switch-providers","commit_stats":null,"previous_names":["fuongz/auto-switch-providers"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuongz%2Fauto-switch-providers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuongz%2Fauto-switch-providers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuongz%2Fauto-switch-providers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuongz%2Fauto-switch-providers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuongz","download_url":"https://codeload.github.com/fuongz/auto-switch-providers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243198252,"owners_count":20252171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-switch-providers","python","python-library","requests-library-python"],"created_at":"2024-11-14T06:23:35.758Z","updated_at":"2025-12-24T09:50:50.995Z","avatar_url":"https://github.com/fuongz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto Switch Providers\n\n## Install\n\nInstall the latest auto-switch-providers release via **pip**\n\n```bash\npip install auto-switch-providers\n```\n\n## How to use?\n\nTo use `auto-switch-providers`, you must first import it, like the following code:\n\n```python\nfrom auto_switch_providers import AutoSwitchProviders\n\n# Import path from os to get template path\nfrom os import path\n\n# Define config\nTEMPLATE_CONFIG = {\n    \"custom_api_provider\": {\n        \"http_service\": {\n            \"params\": {\n                \"token\": \"\"\n            }\n        }\n    },\n}\n\n# Init service\nservice = AutoSwitchProviders(\n    template_dir=f\"{path.dirname(__file__)}/templates\",\n    config=TEMPLATE_CONFIG\n)\n\n# Process\nservice.process({\n    \"custom_param\": \"example\"\n})\n```\n\n## ©️ License\n\n- [MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuongz%2Fauto-switch-providers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuongz%2Fauto-switch-providers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuongz%2Fauto-switch-providers/lists"}