{ "info": { "author": "Will Breaden Madden", "author_email": "wbm@protonmail.ch", "bugtrack_url": null, "classifiers": [], "description": "camazotz\n========\n\nC code in Python code\n\nintroduction\n============\n\nCamazotz compiles and loads C code in Python code. Specifically, it\nenables insertion of C code directly into Python files, which can be\ndynamically linked and called via ctypes.\n\nsetup\n=====\n\n.. code:: bash\n\n pip install camazotz\n\nusage\n=====\n\n.. code:: bash\n\n export CC=\"gcc\"\n\n.. code:: python\n\n import camazotz\n\n library = camazotz.C(\n \"\"\"\n #include \n \n int factorial(int x){\n int result = 1;\n while (x > 1){\n result *= x;\n x--;\n }\n \n return result;\n }\n \"\"\"\n )\n\n function_factorial = library[\"factorial\"]\n print(\"5! =\", function_factorial(5))\n print(\"4! =\", function_factorial(4))", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wdbm/camazotz", "keywords": null, "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "camazotz", "package_url": "https://pypi.org/project/camazotz/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/camazotz/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wdbm/camazotz" }, "release_url": "https://pypi.org/project/camazotz/2017.3.20.1950/", "requires_dist": null, "requires_python": null, "summary": "template Python program", "version": "2017.3.20.1950" }, "last_serial": 2718632, "releases": { "2017.3.20.1950": [ { "comment_text": "", "digests": { "md5": "fc2426634ca0ee67390a89d077b06e1b", "sha256": "8f56cc0f87c3d08b427337b32c9b4b120d97db3649dd96c40c036fb639f2a435" }, "downloads": -1, "filename": "camazotz-2017.3.20.1950.tar.gz", "has_sig": false, "md5_digest": "fc2426634ca0ee67390a89d077b06e1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15123, "upload_time": "2017-03-20T20:02:36", "url": "https://files.pythonhosted.org/packages/a9/a1/b982a357af42da5fe179e98c760054c6d6004244a218296af6d278d4dd5c/camazotz-2017.3.20.1950.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fc2426634ca0ee67390a89d077b06e1b", "sha256": "8f56cc0f87c3d08b427337b32c9b4b120d97db3649dd96c40c036fb639f2a435" }, "downloads": -1, "filename": "camazotz-2017.3.20.1950.tar.gz", "has_sig": false, "md5_digest": "fc2426634ca0ee67390a89d077b06e1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15123, "upload_time": "2017-03-20T20:02:36", "url": "https://files.pythonhosted.org/packages/a9/a1/b982a357af42da5fe179e98c760054c6d6004244a218296af6d278d4dd5c/camazotz-2017.3.20.1950.tar.gz" } ] }