{"id":20626717,"url":"https://github.com/coreprocess/pdistx","last_synced_at":"2026-02-25T13:01:07.769Z","repository":{"id":48031720,"uuid":"342566613","full_name":"coreprocess/pdistx","owner":"coreprocess","description":"Python Distribution Tools","archived":false,"fork":false,"pushed_at":"2021-08-10T19:19:22.000Z","size":1277,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T21:42:49.881Z","etag":null,"topics":["addons","blender","c4d","dcc","distribution","exports","extensions","houdini","maya","packing","plugins","python","shipping","vendoring"],"latest_commit_sha":null,"homepage":"https://3dninjas.github.io/pdistx/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coreprocess.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}},"created_at":"2021-02-26T12:17:07.000Z","updated_at":"2025-01-05T15:09:54.000Z","dependencies_parsed_at":"2022-08-12T17:10:24.912Z","dependency_job_id":null,"html_url":"https://github.com/coreprocess/pdistx","commit_stats":null,"previous_names":["3dninjas/pdistx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreprocess%2Fpdistx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreprocess%2Fpdistx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreprocess%2Fpdistx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreprocess%2Fpdistx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coreprocess","download_url":"https://codeload.github.com/coreprocess/pdistx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094939,"owners_count":21211837,"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":["addons","blender","c4d","dcc","distribution","exports","extensions","houdini","maya","packing","plugins","python","shipping","vendoring"],"created_at":"2024-11-16T13:14:29.086Z","updated_at":"2026-02-25T13:01:07.661Z","avatar_url":"https://github.com/coreprocess.png","language":"Python","readme":"# Python Distribution Tools\n\n## Installation\n\n**Note:** the Python Distribution Tools require Python 3.9 or newer to run. But of course, the tools can translate code for older Python versions.\n\n### Recommended: Use `pipx`\n\n```sh\n# find your Python 3.9 binary and use that one for the following commands\npython --version\npython3 --version\npython3.9 --version\n\n# install pipx to be able to run pypi packages directly\npython -m pip install pipx\n\n# run pdistx\npipx run pdistx vendor --help\npipx run pdistx variant --help\npipx run pdistx pack --help\n\n# in case pipx is not in the path, you can run it as module\npython -m pipx run pdistx vendor --help\npython -m pipx run pdistx variant --help\npython -m pipx run pdistx pack --help\n```\n\n### Alternative: Install `pdistx` and use it directly\n\n```sh\n# find your Python 3.9 binary and use that one for the following commands\npython --version\npython3 --version\npython3.9 --version\n\n# install pdistx\npython -m pip install pdistx\n\n# run pdistx\npvendor --help\npvariant --help\nppack --help\n\n# in case pdistx is not in the path, you can run it as module\npython -m pvendor --help\npython -m pvariant --help\npython -m ppack --help\n```\n\n## Python Vendoring Tool\n\nVendor libraries in a subpackage, which can be placed anywhere in a project.\n\n```\n$ pvendor --help\n$ pdistx vendor --help\n\nusage: pvendor [-h] [-r requirements] [-s source] [-p pip] [-k keep] [-z zip] target\n\npositional arguments:\n  target           target folder (will be cleared, except for the ones to be kept)\n\noptional arguments:\n  -h, --help       show this help message and exit\n  -r requirements  install packages from requirements.txt\n  -s source        copy modules from source folder\n  -p pip           pip command (defaults to pip)\n  -k keep          files or folders to be kept in the target folder (defaults to requirements.txt and .gitignore)\n  -z zip           zip file path (target becomes relative path within zip file)\n```\n\n## Python Variant Exporter\n\nExport a specific variant from a codebase.\n\n```\n$ pvariant --help\n$ pdistx variant --help\n\nusage: pvariant [-h] [-d name[:type]=value] [-f filter] [-z zip] source target\n\npositional arguments:\n  source                source path\n  target                target path (will be cleared)\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -d name[:type]=value  define variables to be replaced, e.g. -d __VARIANT__=PRO -d __LICENSE_CHECK__:bool=True\n  -f filter             defines files and folders to be filtered out (glob pattern)\n  -z zip                zip file path (target becomes relative path within zip file)\n```\n\n## Python Packer Tool\n\nPack a Python package into a single Python file.\n\n```\n$ ppack --help\n$ pdistx pack --help\n\nusage: ppack [-h] [-r] [-m] [-f filter] [-z zip] source target\n\npositional arguments:\n  source      source package path\n  target      target python (will be cleared)\n\noptional arguments:\n  -h, --help  show this help message and exit\n  -r          create a resources folder with all non-python files (it will be named \u003ctarget\u003e_resources and be cleared)\n  -m          use __main__.py of the package as bootstrap code (default is to use the root __init__.py of the package)\n  -f filter   defines files and folders to be filtered out (glob pattern)\n  -z zip      zip file path (target becomes relative path within zip file)\n```\n\n## Examples\n\n### Blender Addon\n\n```sh\n# vendor packages\npvendor examples/blender_addon/vendor\n\n# generate PRO as zip\npvariant \\\n    -d __VARIANT__=PRO                 \\\n    -f '**/free.bip'                   \\\n    -z $HOME/Desktop/blender_addon.zip \\\n    examples/blender_addon             \\\n    blender_addon\n\n# generate FREE as folder\npvariant \\\n    -d __VARIANT__=FREE    \\\n    -f '**/pro.bip'        \\\n    examples/blender_addon \\\n    $HOME/.config/blender/2.93/scripts/addons/blender_addon\n\n# pack addon as single file\nppack \\\n    -r \\\n    -f 'vendor/requirements.txt' -f 'vendor/.gitignore' \\\n    examples/blender_addon \\\n    $HOME/.config/blender/2.93/scripts/addons/blender_addon.py\n```\n\n### QT App\n\n```sh\n# vendor packages\npvendor examples/qt_app/vendor\n\n# pack app as single file\nppack \\\n    -r \\\n    -f 'vendor/requirements.txt' -f 'vendor/.gitignore' \\\n    -m \\\n    examples/qt_app \\\n    $HOME/Desktop/qt_app.py\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreprocess%2Fpdistx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoreprocess%2Fpdistx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreprocess%2Fpdistx/lists"}