{"id":17371931,"url":"https://github.com/dulikvor/sweetpy","last_synced_at":"2026-02-16T19:07:18.123Z","repository":{"id":46328650,"uuid":"119437943","full_name":"dulikvor/sweetPy","owner":"dulikvor","description":":cake: Extend python using C++14 and beyond with ease.","archived":false,"fork":false,"pushed_at":"2021-10-30T17:33:29.000Z","size":397,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T13:46:16.620Z","etag":null,"topics":["connectivity","cpp","cpp11","cpp14","python","python3","python37"],"latest_commit_sha":null,"homepage":"","language":"C++","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/dulikvor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-29T20:33:32.000Z","updated_at":"2021-10-30T17:33:32.000Z","dependencies_parsed_at":"2022-09-05T19:10:21.086Z","dependency_job_id":null,"html_url":"https://github.com/dulikvor/sweetPy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dulikvor/sweetPy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dulikvor%2FsweetPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dulikvor%2FsweetPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dulikvor%2FsweetPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dulikvor%2FsweetPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dulikvor","download_url":"https://codeload.github.com/dulikvor/sweetPy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dulikvor%2FsweetPy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274935954,"owners_count":25376832,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["connectivity","cpp","cpp11","cpp14","python","python3","python37"],"created_at":"2024-10-16T01:06:18.158Z","updated_at":"2026-02-16T19:07:18.063Z","avatar_url":"https://github.com/dulikvor.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Dudi119/sweetPy.svg?branch=master)](https://travis-ci.org/Dudi119/sweetPy)\n# sweetPy\n\nsweetPy is a seamless binding library, intended to export your C++ code with ease into Python 3.\n\nThe library was only tested as of now on Python 3.7.\n\nsweetPy will allow you to export your C++ code in an object oriented style, with out the need to learn python’s data model and C-API.\n\n## Getting Started\n\nsweetPy is written in C++14, it is officially based upon the gnu compiler, version - 5.4.0.\n\nIts using CMake as its higher echelon build system, version 3.0 and higher.\n\nThe code is fully portable, but officially it was only tested in linux environment, tho a windows build is also a possibility, only limited by a matching support of visual c++.\n\n### Prerequisites\n\nGnu - version 5.0 and higher.\n\nCMake - version 3.0 and higher.\n\nPython - version 3.7.\n\nGoogleTest - version 1.8.0 and higher - not mandatory.\n\nGoogleTest will be fetched automatically on need.\n\n### Installing\n\nsweetPy instalment is based upon two phases:\n1. Resolving all 3rd party dependencies.\n2. Compilation of sweetPy, its examples and if requested - its tests.\n\n#### 3RD Party dependencies instalment\n\n| Argument  | Description |\n| ------------- | ------------- |\n|sweetPy_3RD_PARTY_INSTALL_STEP - Mandatory  | 3rd parties installation step |\n|sweetPy_Test_Support - Optional| Will install the google test package  |\n\nIn sweetPy root directory:\n```\ncmake . -DsweetPy_3RD_PARTY_INSTALL_STEP=ON -DsweetPy_Test_Support=ON \u0026\u0026 make\n```\n\n#### Compilation phase\n\n| Argument  | Description |\n| ------------- | ------------- |\n|sweetPy_COMPILE_STEP - Mandatory  | Will compile sweetPy and its example |\n|sweetPy_Test_Support - Optional| Will compile sweetPy tests  |\n\nIn sweetPy root directory:\n```\ncmake . -DsweetPy_COMPILE_STEP=ON -DsweetPy_Test_Support=ON \u0026\u0026 make\n```\n\nThe binary product of sweetPy is a shared object file located at - \nIn sweetPy root directory:\n```\n./bin/libsweetPy.so\n```\n\n## Running the tests\n\nIn order to run sweetPy tests, just run the following command, from sweetPy root directory:\n```\n./Tests/bin/sweetPyTests\n```\n\n## SweetPy supporting capabilities\n\nsweetPy binds the following C++ language capabilities, into python:\n\n1. Exporting user types.\n1. Exporting Enums.\n3. User types supports:\n- User defined constructor.\n- User defined destructor.\n- Invocation of an overridden function from python side.\n- Member functions. \n- Overloaded Member functions are supported, must have unique name.\n- Members - both const and not (for read and write permission).\n- static member functions.\n4. Functions:\n- Overloading is supported with explicit cast.\n5. Reference types:\n- Invocation upon reference types.\n- Accessing reference types members.\n5. Invocation of global functions.\n6. Exporting global variables.\n7. Seamless transition between python builtin types into your C++ code.\n8. Seamless transition between C++ POD types and user defined types into python.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdulikvor%2Fsweetpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdulikvor%2Fsweetpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdulikvor%2Fsweetpy/lists"}