{"id":50861194,"url":"https://github.com/mohsinraza2999/simple-sever-client-app","last_synced_at":"2026-06-14T21:34:49.054Z","repository":{"id":307951171,"uuid":"975513687","full_name":"mohsinraza2999/simple-sever-client-app","owner":"mohsinraza2999","description":"This FastAPI app includes a GET endpoint at / and a POST endpoint at /send to receive user input. It retrieves data from a simulated database implemented as a Python dictionary. The app uses Pydantic's BaseModel to validate input data and ensure type safety.","archived":false,"fork":false,"pushed_at":"2025-08-03T07:19:26.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T09:09:23.850Z","etag":null,"topics":["basemodel","fas","requests-library-python","unicorn"],"latest_commit_sha":null,"homepage":"","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/mohsinraza2999.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,"zenodo":null}},"created_at":"2025-04-30T12:45:03.000Z","updated_at":"2025-08-03T07:21:06.000Z","dependencies_parsed_at":"2025-08-03T09:09:25.776Z","dependency_job_id":"2b1e7b62-eaad-40f9-819b-7eba4c67ce00","html_url":"https://github.com/mohsinraza2999/simple-sever-client-app","commit_stats":null,"previous_names":["mohsinraza2999/simple-sever-client-app"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mohsinraza2999/simple-sever-client-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinraza2999%2Fsimple-sever-client-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinraza2999%2Fsimple-sever-client-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinraza2999%2Fsimple-sever-client-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinraza2999%2Fsimple-sever-client-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohsinraza2999","download_url":"https://codeload.github.com/mohsinraza2999/simple-sever-client-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsinraza2999%2Fsimple-sever-client-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34339195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["basemodel","fas","requests-library-python","unicorn"],"created_at":"2026-06-14T21:34:47.946Z","updated_at":"2026-06-14T21:34:49.050Z","avatar_url":"https://github.com/mohsinraza2999.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple FastAPI Server-Client App\n\nThis is a lightweight FastAPI-based server-client application. It demonstrates basic API handling with GET and POST endpoints, data validation using Pydantic, and dictionary-based data retrieval simulating a database.\n\n## Features\n\n- `GET /` — Basic endpoint to test server availability.\n- `POST /send` — Accepts user input and retrieves corresponding data.\n- Uses Python dictionary as a mock database.\n- Validates request data with Pydantic's `BaseModel`.\n- Lightweight and suitable for learning or quick prototyping.\n\n## Requirements\n\n- Python 3.8+\n- FastAPI\n- Uvicorn\n\nInstall dependencies:\n\n## bash\n\npip install -r requirements.txt\nRunning the App\nTo start the server:\n\n## bash\npython server.py\n\n## bash\n\nuvicorn main:app --host 0.0.0.0 --port 8000\n\n## Example Usage\n### Request\n\nPOST /send\nContent-Type: application/json\n\n{\n  \"key\": \"desi\"\n}\n### Response\n\n{\n  \"value\": \"Apricote\",\"apple\"\n}\n## File Structure\n\n├── server.py             # Main FastAPI application \u003cbr\u003e\n├── clients_side.ipynb    # send queries and recieves responses \u003cbr\u003e\n├── requirements.txt    # Python dependencies \u003cbr\u003e\n├── README.md           # Project documentation \u003cbr\u003e\n## License\nThis project is open-source and available under the MIT License.\n\n## Author\nMohsin Raza\n\n## yaml\n\n\n---\n\nLet me know if you want to include testing instructions, Docker support, or an OpenAPI schema section.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohsinraza2999%2Fsimple-sever-client-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohsinraza2999%2Fsimple-sever-client-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohsinraza2999%2Fsimple-sever-client-app/lists"}