{"id":23413900,"url":"https://github.com/erdem/fastapi-example","last_synced_at":"2026-05-16T17:38:02.236Z","repository":{"id":246367808,"uuid":"820862715","full_name":"erdem/fastapi-example","owner":"erdem","description":"A FastAPI example project with best practices. ","archived":false,"fork":false,"pushed_at":"2024-06-27T11:07:25.000Z","size":115,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-11T15:50:30.108Z","etag":null,"topics":["fastapi","pydantic"],"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/erdem.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":"2024-06-27T10:25:13.000Z","updated_at":"2026-03-11T08:45:41.000Z","dependencies_parsed_at":"2024-06-27T16:11:18.967Z","dependency_job_id":"266de548-0449-4a9b-abaf-15f0ffae1fca","html_url":"https://github.com/erdem/fastapi-example","commit_stats":null,"previous_names":["erdem/fastapi-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erdem/fastapi-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdem%2Ffastapi-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdem%2Ffastapi-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdem%2Ffastapi-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdem%2Ffastapi-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdem","download_url":"https://codeload.github.com/erdem/fastapi-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdem%2Ffastapi-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33112211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["fastapi","pydantic"],"created_at":"2024-12-22T19:56:05.280Z","updated_at":"2026-05-16T17:38:02.205Z","avatar_url":"https://github.com/erdem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup\n \n1. Clone the repository and navigate to the root folder in your terminal.\n```bash\ngit clone git@github.com:erdem/python-coding-test.git\n```\n\n2. Create a .env file (git ignored) by copying the [.env.example](.env.example) file.\n\n3. Install the project dependencies with poetry via call `make install` command.\n\n```shell\nmake install\n```\n\n4. The project uses pre-commit to enforce code formatting and run linters before every commit. The pre-commit hooks configuration is stored in the .pre-commit-config.yaml file. Install the hooks before making any commit.\n\n```bash\npre-commit install\n```\n\n5. Run FastAPI dev server to explore the API\n\n```\nmake dev\n```\n\n\n# Usage\n\n```shell\ncurl --request POST \\\n  --url http://localhost:8000/api/pdf-checker \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n      \"file_name\": \"retailco.pdf\",\n      \"company_name\": \"RetailCo\"\n    }\n'\n```\n\n# FastAPI PDF Data Checker\n\nThis project demonstrates a FastAPI application that compares company data extracted from PDFs against existing records. It's designed to simulate a common business task: verifying information from multiple sources.\n\n## What it does\n\n1. Extracts data from PDFs using a mocked external service\n2. Compares the extracted data with records stored in a CSV file\n3. Returns a summary of all fields, noting any discrepancies\n\n## Key components\n\n- FastAPI for the API framework\n- A mocked PDF extraction service (`src/pdf_service.py`)\n- CSV file for storing existing company data (`data/database.csv`)\n- Data comparison and reporting logic\n\n## Technical aspects\n\n- Integration with an external service (simulated)\n- Data processing and comparison\n- Error handling and input validation\n\nThis project serves as an example of using FastAPI to process data and generate comparison reports. It's structured following good coding practices.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdem%2Ffastapi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdem%2Ffastapi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdem%2Ffastapi-example/lists"}