{"id":28165501,"url":"https://github.com/alexdemure/gadfastetcd","last_synced_at":"2025-05-15T12:11:40.584Z","repository":{"id":290321643,"uuid":"974049346","full_name":"AlexDemure/gadfastetcd","owner":"AlexDemure","description":"A FastAPI integration with Etcd for managing configuration settings via a RESTful API.","archived":false,"fork":false,"pushed_at":"2025-04-30T09:41:58.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"production","last_synced_at":"2025-04-30T10:05:45.794Z","etag":null,"topics":["fastapi-etdc","pydantic-etdc","python-etdc"],"latest_commit_sha":null,"homepage":"","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/AlexDemure.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,"zenodo":null}},"created_at":"2025-04-28T07:20:26.000Z","updated_at":"2025-04-30T09:42:02.000Z","dependencies_parsed_at":"2025-04-28T07:50:29.830Z","dependency_job_id":"fee22147-fd02-4c57-a77e-95eeb44baedc","html_url":"https://github.com/AlexDemure/gadfastetcd","commit_stats":null,"previous_names":["alexdemure/gadfastetdc","alexdemure/gadfastetcd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadfastetcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadfastetcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadfastetcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadfastetcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexDemure","download_url":"https://codeload.github.com/AlexDemure/gadfastetcd/tar.gz/refs/heads/production","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337540,"owners_count":22054254,"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":["fastapi-etdc","pydantic-etdc","python-etdc"],"created_at":"2025-05-15T12:11:40.459Z","updated_at":"2025-05-15T12:11:40.576Z","avatar_url":"https://github.com/AlexDemure.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/AlexDemure/gadfastetcd\"\u003e\n    \u003ca href=\"https://ibb.co/27z10Gjp\"\u003e\u003cimg src=\"https://i.ibb.co/rGBRKDZX/logo.png\" alt=\"logo\" border=\"0\"\u003e\u003c/a\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  A FastAPI integration with Etcd for managing configuration settings via a RESTful API\n\u003c/p\u003e\n\n---\n\n### Installation\n\n```\npip install gadfastetcd\n```\n\n### Usage\n\n#### API\nSet\n```curl\ncurl -X 'PUT' \\\n  'http://127.0.0.1:8000/-/etcd' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n  \"test\": 1\n}\n```\nGet\n```\ncurl -X 'GET' \\\n  'http://127.0.0.1:8000/-/etcd' \\\n  -H 'accept: application/json'\n\n{\n  \"test\": 1\n}\n```\n\n#### Code\n```python\nimport pydantic\n\nimport fastapi\n\nfrom gadfastetcd import Etcd\n\nclass Settings(pydantic.BaseModel):\n    class Config:\n        extra = \"allow\"\n\nsettings = Settings()\n\netcd = Etcd(url=\"localhost:2379\", storage=\"/{service_name}/{environment}\", settings=settings)\n\napp = fastapi.FastAPI()\n\napp.include_router(etcd.router)\n\n\u003e\u003e\u003e settings.test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdemure%2Fgadfastetcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexdemure%2Fgadfastetcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdemure%2Fgadfastetcd/lists"}