{"id":19411598,"url":"https://github.com/suizer98/pydxf","last_synced_at":"2026-02-05T22:02:30.914Z","repository":{"id":198429582,"uuid":"700766139","full_name":"Suizer98/pydxf","owner":"Suizer98","description":"An api helps to convert dxf \u0026 dwg files into geojson or shapefiles format that can be displayed on web gis","archived":false,"fork":false,"pushed_at":"2026-01-02T02:32:08.000Z","size":26183,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-07T16:47:00.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Suizer98.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-05T08:53:53.000Z","updated_at":"2026-01-02T02:32:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"212875c4-1ffe-4fe0-8c9e-084a48b6e253","html_url":"https://github.com/Suizer98/pydxf","commit_stats":null,"previous_names":["suizer98/pydxf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Suizer98/pydxf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suizer98%2Fpydxf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suizer98%2Fpydxf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suizer98%2Fpydxf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suizer98%2Fpydxf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suizer98","download_url":"https://codeload.github.com/Suizer98/pydxf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suizer98%2Fpydxf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29135927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T21:59:57.939Z","status":"ssl_error","status_checked_at":"2026-02-05T21:59:57.628Z","response_time":65,"last_error":"SSL_read: 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":[],"created_at":"2024-11-10T12:22:13.708Z","updated_at":"2026-02-05T22:02:30.907Z","avatar_url":"https://github.com/Suizer98.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pydxf \u0026 Pydwg\n\n[[_TOC_]]\n\n## Description\nConvert DXF and DWG engineering CAD files to GeoJSON and Shapefile formats for web GIS applications.\nThis project provides a microservice API for on-demand conversion of CAD files.\n\nTech stacks:\n\n![Tech stacks](https://skillicons.dev/icons?i=fastapi,python,docker,ubuntu,bash,autocad)\n\n### Features\n\n- **DWG Support**: Convert DWG files using Aspose.CAD\n- **DXF Support**: Convert DXF files using OGR\n- **Output Formats**: GeoJSON and Shapefile\n\n### API Endpoints\n\n1. **Upload**: `POST /pydxf/upload` - Upload DXF or DWG files\n2. **List Files**: `GET /pydxf/files` - List uploaded files with download links\n3. **Download GeoJSON**: `GET /pydxf/geojson/download?filename=file.dxf` - Download as GeoJSON\n4. **Download Shapefile**: `GET /pydxf/shp/download?filename=file.dwg` - Download as Shapefile (ZIP)\n\n### How to use\n\n1. Go to [http://localhost:8000/docs](http://localhost:8000/docs) for Swagger UI, or go to [http://localhost:8000/scalar/](http://localhost:8000/scalar/) for Scalar API documentation\n2. Upload DXF or DWG files using the upload endpoint\n3. Download converted files using the download endpoints\n4. Files are stored in `data/Files/` and converted outputs in `data/Output/`\n\n### Local development\n\nStart the service:\n```bash\ndocker-compose up --build\n```\n\nThe API will be available at `http://localhost:8000/pydxf`\n\n### Dependencies\n\n- **Aspose.CAD**: For DWG to DXF conversion\n- **GDAL/OGR**: For DXF processing and GeoJSON/Shapefile output\n- **FastAPI**: Web framework\n- **Docker**: Containerization\n\n### Code formatting\n\nFormat code with *black*:\n```bash\ndocker exec pydxf black .\n```\n\nCheck code quality with *flake8*:\n```bash\ndocker exec pydxf flake8 .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuizer98%2Fpydxf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuizer98%2Fpydxf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuizer98%2Fpydxf/lists"}