{"id":46553861,"url":"https://github.com/pauldl-rs/spyrrow","last_synced_at":"2026-03-07T04:01:23.515Z","repository":{"id":289302479,"uuid":"970800105","full_name":"PaulDL-RS/spyrrow","owner":"PaulDL-RS","description":"Python wrapper of Sparrow, State-of-the-art Nesting for 2D irregular strip packing ","archived":false,"fork":false,"pushed_at":"2025-12-18T09:43:41.000Z","size":154,"stargazers_count":20,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-29T20:24:20.432Z","etag":null,"topics":["2d","compaction","cutting","cutting-and-packing","heuristic","irregular","local-search","nesting","optimization","packing","strip-packing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PaulDL-RS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-04-22T14:55:31.000Z","updated_at":"2025-12-29T17:24:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fadbda6-40d5-401c-947b-a3f213444dc9","html_url":"https://github.com/PaulDL-RS/spyrrow","commit_stats":null,"previous_names":["pauldl-rs/spyrrow"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/PaulDL-RS/spyrrow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulDL-RS%2Fspyrrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulDL-RS%2Fspyrrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulDL-RS%2Fspyrrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulDL-RS%2Fspyrrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaulDL-RS","download_url":"https://codeload.github.com/PaulDL-RS/spyrrow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulDL-RS%2Fspyrrow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30207390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["2d","compaction","cutting","cutting-and-packing","heuristic","irregular","local-search","nesting","optimization","packing","strip-packing"],"created_at":"2026-03-07T04:01:10.432Z","updated_at":"2026-03-07T04:01:23.482Z","avatar_url":"https://github.com/PaulDL-RS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spyrrow\n\n`spyrrow` is a Python wrapper on the Rust project [`sparrow`](https://github.com/JeroenGar/sparrow).\nIt enables to solve 2D [Strip packing problems](https://en.wikipedia.org/wiki/Strip_packing_problem). \n\nThe documentation is hosted [here](https://spyrrow.readthedocs.io/). \n\n## Installation\n\nSpyrrow is hosted on [PyPI](https://pypi.org/project/spyrrow/).\n\nYou can install with the package manager of your choice, using the PyPI package index.\n\nFor example, with `pip`, the default Python package:\n```bash\npip install spyrrow\n```\n\n## Examples\n```python\nimport spyrrow\n\nrectangle1 = spyrrow.Item(\n    \"rectangle\", [(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)], demand=4, allowed_orientations=[0]\n)\ntriangle1 = spyrrow.Item(\n    \"triangle\",\n    [(0, 0), (1, 0), (1, 1), (0, 0)],\n    demand=6,\n    allowed_orientations=[0, 90, 180, -90],\n)\n\ninstance = spyrrow.StripPackingInstance(\n    \"test\", strip_height=2.001, items=[rectangle1, triangle1]\n)\nconfig = spyrrow.StripPackingConfig(early_termination=False,total_computation_time=60,num_wokers=3,seed=0)\nsol = instance.solve(config)\nprint(sol.width) # 4.0 +/- 5%\nprint(sol.density)\nprint(\"\\n\")\nfor pi in sol.placed_items:\n    print(pi.id)\n    print(pi.rotation)\n    print(pi.translation)\n    print(\"\\n\")\n```\n\n## Contributing\n\nSpyrrow is open to contributions.\nThe first target should be to reach  Python open sources packages standards and practices. \nSecond, a easier integration with the package `shapely` is envsionned.\n\nPlease use GitHub issues to request features. \nThey will be considered relative to what is already implemented in the parent library `sparrow`. \nIf necessary, they can be forwarded to it. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauldl-rs%2Fspyrrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpauldl-rs%2Fspyrrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauldl-rs%2Fspyrrow/lists"}