{"id":29633471,"url":"https://github.com/esteininger/file-processor","last_synced_at":"2025-07-21T14:04:31.557Z","repository":{"id":238539881,"uuid":"796776479","full_name":"esteininger/file-processor","owner":"esteininger","description":"A Python library that uses AI to convert unstructured files (like PDFs, HTML, etc.) into structured data.","archived":false,"fork":false,"pushed_at":"2024-05-06T15:58:20.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-06T17:20:43.348Z","etag":null,"topics":["fastapi","nlp","unstructured-data"],"latest_commit_sha":null,"homepage":"http://mixpeek.com","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/esteininger.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-05-06T15:54:30.000Z","updated_at":"2024-05-06T17:20:46.144Z","dependencies_parsed_at":"2024-05-06T17:35:11.674Z","dependency_job_id":null,"html_url":"https://github.com/esteininger/file-processor","commit_stats":null,"previous_names":["esteininger/file-processor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/esteininger/file-processor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esteininger%2Ffile-processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esteininger%2Ffile-processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esteininger%2Ffile-processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esteininger%2Ffile-processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esteininger","download_url":"https://codeload.github.com/esteininger/file-processor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esteininger%2Ffile-processor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266315763,"owners_count":23909802,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["fastapi","nlp","unstructured-data"],"created_at":"2025-07-21T14:04:28.541Z","updated_at":"2025-07-21T14:04:31.535Z","avatar_url":"https://github.com/esteininger.png","language":"Python","readme":"# FastAPI File Processor\n\nThis is a FastAPI application that accepts a file URL, fetches the file, partitions it, and sends the first chunk to an OpenAI GPT-4 model for processing.\n\n## Installation\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/yourusername/yourrepository.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd yourrepository\n   ```\n3. Install Poetry if you haven't already:\n   ```bash\n   curl -sSL https://install.python-poetry.org | python -\n   ```\n4. Install the required Python packages:\n   ```bash\n   poetry install\n   ```\n\n## Usage\n\n1. Start the FastAPI server:\n   ```bash\n   poetry run uvicorn main:app --reload\n   ```\n2. Send a POST request to the `/process` endpoint with a JSON body that contains the `url` parameter. Replace `http://example.com/path/to/your/file` with the actual URL of the file you want to process:\n   ```bash\n   curl -X POST \"http://localhost:8000/process\" -H  \"accept: application/json\" -H  \"Content-Type: application/json\" -d \"{\\\"url\\\":\\\"http://example.com/path/to/your/file\\\"}\"\n   ```\n\n## API Key\n\nThe application uses an OpenAI API key for the GPT-4 model. Make sure to replace the placeholder API key in the `main.py` file with your actual OpenAI API key.\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festeininger%2Ffile-processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festeininger%2Ffile-processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festeininger%2Ffile-processor/lists"}