{"id":16699543,"url":"https://github.com/ousttrue/bpy_module","last_synced_at":"2025-03-14T05:21:47.060Z","repository":{"id":136458532,"uuid":"225299133","full_name":"ousttrue/bpy_module","owner":"ousttrue","description":"build blender as module","archived":false,"fork":false,"pushed_at":"2022-12-15T12:09:28.000Z","size":611,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T00:20:10.486Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ousttrue.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}},"created_at":"2019-12-02T06:13:38.000Z","updated_at":"2022-11-17T17:45:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"44bfb6b1-3870-45f8-89f5-c6af9e38f178","html_url":"https://github.com/ousttrue/bpy_module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousttrue%2Fbpy_module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousttrue%2Fbpy_module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousttrue%2Fbpy_module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousttrue%2Fbpy_module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ousttrue","download_url":"https://codeload.github.com/ousttrue/bpy_module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243527336,"owners_count":20305200,"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":[],"created_at":"2024-10-12T18:07:20.771Z","updated_at":"2025-03-14T05:21:47.020Z","avatar_url":"https://github.com/ousttrue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bpy_module\n\n* Auto clone, build and install blender python module(bpy)\n* Link to local python(C:\\Python39)\n* generate pyi\n* Blender v2.83\n\n## require\n\n* vc2019\n  * cmake(vc included)\n  * msbuild(vc included)\n* git https://git-scm.com/\n* svn https://sliksvn.com/download/\n\n## memo\n\n* blender\n* lib\n* git worktree\n* branch: v2.93-release\n  * tag: v2.93.0\n  * tag: v2.93.1\n  * tag: v2.93.2\n  * tag: v2.93.3\n  * tag: v2.93.4\n  * tag: v2.93.5\n\n## ToDo\n\n* Vector as sequence\n* Vector operator +\n* Vector assigin = \n* Matrix operator @\n\n## doit version\n\n```sh\n```\n\n## [obsolete] usage (build and install bpy)\n\n```sh\npython builder.py {WORKSPACE_FOLDER} {tag} --update --clean --build --install --stubs\n\nWORKSPACE_FOLDER\n    + blender(git clone)\n    + lib(svn checkout)\n    + build(cmake build)\n```\n\n* update: git clone and svn update\n* clean: clear WORKSPACE_FOLDER/build\n* build: cmake and msbuild\n* install: copy dll and *py to PYTHON_FOLDER/lib/site_lib/blender and PYTHON_FOLDER/2.XX\n\nexample\n\n```sh\n\u003e C:\\Python38\\python.exe builder.py --update --build --install C:/bpy_module v2.83\n# link to C:\\Pyhthon38\\libs\\python38.lib and install to C:\\Python38\n```\n\n## generate python stub(pyi)\n\n* Generate pyi stub from installed bpy\n* Baseed on https://github.com/mutantbob/pycharm-blender\n* Bassed on https://github.com/blender/blender/blob/master/doc/python_api/sphinx_doc_gen.py\n\n```sh\npython stub_generator.py\n```\n\nexample\n\n```sh\n\u003e C:\\Python38\\python.exe stub_generator.py\n# generate C:\\Python38\\lib\\site-package\\blender\\bpy\\__init__.pyi\n# generate C:\\Python38\\lib\\site-package\\blender\\mathutils.pyi\n```\n\n### use stub on vscode\n\n* install pylance\n\n```json\n// settings.json\n  \"python.languageServer\": \"Pylance\",\n  \"python.analysis.typeCheckingMode\": \"basic\",\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousttrue%2Fbpy_module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fousttrue%2Fbpy_module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousttrue%2Fbpy_module/lists"}