{"id":15813762,"url":"https://github.com/agentgill/unstructured-local","last_synced_at":"2025-04-01T01:44:54.840Z","repository":{"id":254910831,"uuid":"847935997","full_name":"agentgill/unstructured-local","owner":"agentgill","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-26T20:39:33.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-06T04:05:26.128Z","etag":null,"topics":["macos","pdf","python","unstructured"],"latest_commit_sha":null,"homepage":"https://unstructured.io","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/agentgill.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-08-26T20:34:10.000Z","updated_at":"2024-08-26T20:39:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"839645b0-5e29-4d29-9825-20e3eccc52da","html_url":"https://github.com/agentgill/unstructured-local","commit_stats":null,"previous_names":["agentgill/unstructured-local"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Funstructured-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Funstructured-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Funstructured-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Funstructured-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentgill","download_url":"https://codeload.github.com/agentgill/unstructured-local/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246569006,"owners_count":20798341,"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":["macos","pdf","python","unstructured"],"created_at":"2024-10-05T04:05:33.871Z","updated_at":"2025-04-01T01:44:54.818Z","avatar_url":"https://github.com/agentgill.png","language":"Python","readme":"# Unstructured.io Local\n\n## Resources\n\n- [Official Documentation](https://docs.unstructured.io)\n- [Open Source Documentation](https://docs.unstructured.io/open-source/introduction/overview)\n- [Full-installation](https://docs.unstructured.io/open-source/installation/full-installation)\n- [Unstructured Repo](https://github.com/Unstructured-IO/unstructured)\n\n## Installation\n\nInstall System Dependencies (macOS using brew)\n\n```bash\nbrew install libmagic\nbrew install poppler\nbrew install tesseract\nbrew install pandoc\nbrew install libreoffice\n```\n\nCreate Venv\n\n```bash\npython3.12 -m venv .venv \u0026\u0026 source .venv/bin/activate\n```\n\nInstall unstructured\n\n```bash\npip install unstructured\n```\n\n## Usage\n\nTurn unstructured data (pdf) into strunctured data (json)\n\n```python\n#!/usr/bin/env python3\nimport json\n\nfrom unstructured.partition.pdf import partition_pdf\n\n# Fake Patient Data\nelements = partition_pdf(filename=\"document.pdf\")\n\nelement_dicts = [element.to_dict() for element in elements]\njson_elements = json.dumps(element_dicts, indent=2)\n\nprint(json_elements)\n\nwith open(\"output.json\", \"w\") as file:\n    file.write(json_elements)\n```\n\n## Unstanding structured data\n\n[Document Element Types](https://docs.unstructured.io/open-source/concepts/document-elements#element-type)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentgill%2Funstructured-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentgill%2Funstructured-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentgill%2Funstructured-local/lists"}