{"id":28346711,"url":"https://github.com/systemvll/py-pack","last_synced_at":"2026-02-12T23:31:06.317Z","repository":{"id":279420781,"uuid":"938756192","full_name":"SystemVll/py-pack","owner":"SystemVll","description":"A bundler for python and friends. Packs many python modules and project files into a few bundled python assets.","archived":false,"fork":false,"pushed_at":"2025-12-29T22:46:45.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-02T05:50:18.086Z","etag":null,"topics":["builder","bundler","packer"],"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/SystemVll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02-25T13:03:03.000Z","updated_at":"2025-12-29T22:46:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"24999478-92bc-4f6a-aa9f-9bb1aa233129","html_url":"https://github.com/SystemVll/py-pack","commit_stats":null,"previous_names":["inplex-sys/py-pack","systemvll/py-pack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SystemVll/py-pack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemVll%2Fpy-pack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemVll%2Fpy-pack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemVll%2Fpy-pack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemVll%2Fpy-pack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SystemVll","download_url":"https://codeload.github.com/SystemVll/py-pack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemVll%2Fpy-pack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29386217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"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":["builder","bundler","packer"],"created_at":"2025-05-27T14:10:42.845Z","updated_at":"2026-02-12T23:31:06.303Z","avatar_url":"https://github.com/SystemVll.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Package Chunker (PyPack)\n\nA webpack-like bundler for Python that splits code into optimized chunks.\n\n![image](https://github.com/user-attachments/assets/0598d4c8-88a6-4c68-8b59-a8e0c4f48454)\n\n\n## Features\n\n-   📦 Code splitting into multiple chunks\n-   🔍 Automatic dependency analysis\n-   🗺️ Chunk manifest generation\n-   🔄 Dynamic chunk loading\n-   📊 Smart module assignment based on dependencies\n-   ⚡ Webpack-like configuration\n-   📜 Regex-based file matching\n\n## Installation\n\n```bash\ngit clone https://github.com/SystemVll/py-pack.git\ncd pypack\npip install -e .\n```\n\n## Usage\n\nCreate a configuration file (`main.py`):\n\n```python\nfrom src.ChunkConfig import ChunkConfig\nfrom src.PythonPacker import PythonPacker\n\npacker = PythonPacker(\"./src/main.py\", \"./dist\")\n\n# Configure chunks\nchunks = [\n    ChunkConfig(\n        name=\"vendor\",\n        entry_points=[],\n        includes=[r\".*[/\\\\]vendor[/\\\\].*\\.py\"]\n    ),\n    ChunkConfig(\n        name=\"features\",\n        entry_points=[\"./src/features/feature1.py\", \"./src/features/feature2.py\"],\n        includes=[r\".*[/\\\\]features[/\\\\].*\\.py\"]\n    ),\n]\n\npacker.configure_chunks(chunks)\npacker.pack()\n```\n\n## Configuration\n\n### ChunkConfig Options\n\n-   `name`: Name of the chunk\n-   `entry_points`: List of entry point files for the chunk\n-   `includes`: List of regex patterns to match files that should be included in the chunk\n\n## Output\n\nThe bundler generates:\n\n-   Separate chunk files in the `dist` directory\n-   A `manifest.json` file containing chunk mapping information\n-   Each chunk includes a `load_chunk()` function for dynamic loading\n\n## Dynamic Loading\n\nYou can dynamically load chunks in your code:\n\n```python\ndef load_feature():\n    feature_module = load_chunk(\"features\")\n    return feature_module.some_feature()\n```\n\n## Development\n\nTo contribute to the project:\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Submit a pull request\n\n## Requirements\n\n-   Python 3.7+\n-   pathlib\n-   typing\n\n## License\n\nMIT License\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemvll%2Fpy-pack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemvll%2Fpy-pack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemvll%2Fpy-pack/lists"}