{"id":18775115,"url":"https://github.com/ozzs/users-service","last_synced_at":"2026-04-08T16:03:11.198Z","repository":{"id":133480834,"uuid":"579303412","full_name":"ozzs/users-service","owner":"ozzs","description":"User-management API demo, using Python with FastAPI and Postgres as database.","archived":false,"fork":false,"pushed_at":"2022-12-21T12:34:44.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T03:11:50.984Z","etag":null,"topics":["celery","docker","docker-compose","fastapi","postgres","python","redis","sqlmodel"],"latest_commit_sha":null,"homepage":"https://github.com/ozzs/users-service","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ozzs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-12-17T08:33:25.000Z","updated_at":"2022-12-21T12:41:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f6ebef1-7808-442c-a12f-f38e5a36aefd","html_url":"https://github.com/ozzs/users-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ozzs/users-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozzs%2Fusers-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozzs%2Fusers-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozzs%2Fusers-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozzs%2Fusers-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozzs","download_url":"https://codeload.github.com/ozzs/users-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozzs%2Fusers-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["celery","docker","docker-compose","fastapi","postgres","python","redis","sqlmodel"],"created_at":"2024-11-07T19:40:26.347Z","updated_at":"2026-04-08T16:03:11.181Z","avatar_url":"https://github.com/ozzs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# users-service\n\n## Usage\n\nTo start, run\n\n    docker-compose up --build\n\n### Step 1: Create and read user\n\nTo create a new user,\n\n    POST /users/\n    {\n        \"name\": \"Harry Potter\",\n        \"email\": \"harry@potter.com\",\n        \"age\": 53,\n        \"gender\": \"male\",\n        \"house\": \"gryffindor\",\n        \"blood_status\": \"pure_blood\"\n    }\n\nThis will return the user's ID. You can read it by calling `GET /users/\u003cID\u003e`.\n\n### Step 2: Update user\n\nTo update a user,\n\n    PATCH /users/\u003cUSER_ID\u003e\n    {\n        \"age\": 53,\n        \"gender\": \"male\",\n    }\n\nThis will run async using Celery. The API will return the task ID, e.g:\n\n    {\n        \"task_id\": \"a1adedda-9c1e-4ec5-83e3-037cb7bd96e4\"\n    }\n\nYou can now query the task by:\n\n    GET /tasks/a1adedda-9c1e-4ec5-83e3-037cb7bd96e4\n\n    {\n        \"id\": \"a1adedda-9c1e-4ec5-83e3-037cb7bd96e4\",\n        \"status\": \"SUCCESS\",\n        \"result\": {\n            \"created_at\": \"2022-12-17T10:36:44.281481\",\n            \"gender\": \"male\",\n            \"name\": \"HARRY\",\n            \"age\": null,\n            \"deleted_at\": null,\n            \"house\": \"slytherin\",\n            \"blood_status\": \"pure_blood\",\n            \"updated_at\": \"2022-12-17T12:50:00.518738\",\n            \"email\": \"malfoy@potter.com\",\n            \"id\": 4\n        }\n    }\n\n### Step 3: Delete user\n\nTo delete a user,\n\n    DELETE /users/\u003cID\u003e\n\nThis will soft delete the user - its data will still exist in the database. \nThis API simply updates `deleted_at`, and all other APIs make sure to ignore any users with `deleted_at != NULL`.\n\n## Tests\n\nTo run tests\n\n    poetry install\n    poetry run pytest\n\n## Linting \u0026 Formatting\n\nTo format code\n\n    poetry run black .\n    poetry run isort .\n\nTo run lint\n\n    poetry run flake8\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozzs%2Fusers-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozzs%2Fusers-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozzs%2Fusers-service/lists"}