{"id":27650793,"url":"https://github.com/grgomariani/python-boost-module-cpp","last_synced_at":"2025-10-24T15:42:55.398Z","repository":{"id":287229621,"uuid":"137874752","full_name":"GrgoMariani/Python-boost-module-cpp","owner":"GrgoMariani","description":"Should you need to compile Python modules written in C++ using Boost library","archived":false,"fork":false,"pushed_at":"2018-06-19T12:45:00.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-24T03:47:45.395Z","etag":null,"topics":["boost","cpp","python","python-boost","python-modules"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/GrgoMariani.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}},"created_at":"2018-06-19T10:11:47.000Z","updated_at":"2018-06-19T12:45:01.000Z","dependencies_parsed_at":"2025-04-10T17:09:38.925Z","dependency_job_id":"10be8b68-3bbc-487a-afe3-4971a3d16dff","html_url":"https://github.com/GrgoMariani/Python-boost-module-cpp","commit_stats":null,"previous_names":["grgomariani/python-boost-module-cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrgoMariani%2FPython-boost-module-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrgoMariani%2FPython-boost-module-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrgoMariani%2FPython-boost-module-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrgoMariani%2FPython-boost-module-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrgoMariani","download_url":"https://codeload.github.com/GrgoMariani/Python-boost-module-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250560007,"owners_count":21450168,"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":["boost","cpp","python","python-boost","python-modules"],"created_at":"2025-04-24T03:47:49.688Z","updated_at":"2025-10-24T15:42:50.372Z","avatar_url":"https://github.com/GrgoMariani.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Boost module C++\n\n### ___Short___\nYou want to write a module in C++ for use in Python and as easy as possible ?\n\n\n### ___Prerequisites___\n\u003e``` \n\u003esudo apt-get install libboost-all-dev\n\u003esudo apt-get install python-dev python3-dev\n\u003e```\n\n### ___Prerequisites2___\n\u003eCheck ___Makefile___ and make sure the _PYTHON_VERSION_ is the same as the one you'll be using, while you're there check the dirs as well.\n\u003e\n\u003eAlso make sure your _TARGET_ (in Makefile) and _BOOST_PYTHON_MODULE_ name (in .cpp) are the same.\n\n### ___Installation___\n\u003e```make``` builds .so file in build directory\n\u003e\n\u003e```sudo make install``` copies .so file to python libs directory\n\u003e\n\u003e```sudo make uninstall``` deletes .so file from python libs directory\n\n### ___Python usage___\nOnce installed open python\n\n##### Example 1\n\u003e```\n\u003efrom custom_module import ADD\n\u003ea = ADD(2, 5)\n\u003eprint( a.result() )\n\u003ea.x = 10\n\u003eprint( a.result() )\n\u003ea.y = 12\n\u003eprint( a.y )\n\u003eprint( a.result() )\n\u003e```\n\n##### Example 2\n\u003e```\n\u003efrom custom_module import TLAA\n\u003ea = TLAA([12, 8, 17, 22])\n\u003eprint( a.getAt(0))\n\u003eprint( a.getAt(3))\n\u003eprint( a.size() )\n\u003eprint( a.sumAll() )\n\u003e```\n\n### ___Links___\n[Python Boost]( https://www.boost.org/doc/libs/1_63_0/libs/python/doc/html/tutorial/tutorial/exposing.html )\n\n[Python Modules]( https://docs.python.org/3/tutorial/modules.html )\n\n[Python Extending]( https://docs.python.org/2/extending/extending.html )\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrgomariani%2Fpython-boost-module-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrgomariani%2Fpython-boost-module-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrgomariani%2Fpython-boost-module-cpp/lists"}