{ "info": { "author": "Elizaveta Shashkova", "author_email": "elizabeth.shashkova@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "bytesinsert\n===========\n\nDescription\n-----------\n\nA library allows to insert one piece of code into another piece of code\nsecretly, without changing line numbers.\n\nThe current version supports only **Python 3.6**. Also it allows to\ninsert only functions without arguments.\n\nUsage\n-----\n\nA library has a useful function ``insert_code``, which inserts which\ntakes the original code, the code to insert and line number for\ninsertion. The simplest example of usage from the ``examples``\ndirectory:\n\n.. code:: python\n\n from bytesinsert import insert_code\n\n\n def hello():\n print(\"1\")\n print(\"3\")\n\n\n def new_code():\n print(\"2\")\n\n\n code_orig = hello.__code__\n code_to_insert = new_code.__code__\n success, result = insert_code(code_orig, code_to_insert, 6)\n if success:\n exec(result)\n\nThe resulting output will be:\n\n::\n\n 1\n 2\n 3\n\nThe ``insert_code`` function inserted code from the function\n``new_code`` into the function ``hello`` by updating its bytecode.\n\nInstall\n-------\n\nThis library can be easily installed with pip:\n\n``pip install bytesinsert``", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Elizaveta239/bytes-insert", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bytesinsert", "package_url": "https://pypi.org/project/bytesinsert/", "platform": "", "project_url": "https://pypi.org/project/bytesinsert/", "project_urls": { "Homepage": "https://github.com/Elizaveta239/bytes-insert" }, "release_url": "https://pypi.org/project/bytesinsert/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "A library for inserting a piece of code into another piece of code", "version": "0.2.2" }, "last_serial": 3052586, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "11290716024e55e2578f80ad52f4a7a3", "sha256": "da81b6da906d8e7b802b62d423e1a0d3f0eb89420a3a4d662930055f8361c528" }, "downloads": -1, "filename": "bytesinsert-0.1.0.tar.gz", "has_sig": false, "md5_digest": "11290716024e55e2578f80ad52f4a7a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3404, "upload_time": "2017-05-22T23:01:35", "url": "https://files.pythonhosted.org/packages/10/09/fbee4a521ae6498db9f5391491b9f6f06d1d678f678666548b555f837d15/bytesinsert-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "bccf8c13201476bb2441c99e070b41a5", "sha256": "8bb327d5b0d9be125a781d4321588c96bffe2676410b4643044a244fcce9fe3f" }, "downloads": -1, "filename": "bytesinsert-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bccf8c13201476bb2441c99e070b41a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6296, "upload_time": "2017-07-07T20:58:45", "url": "https://files.pythonhosted.org/packages/fe/68/f87728a326f180a94887bed1d4d0d3d842ef72a1f42e76c7520b5551a452/bytesinsert-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "fe6704412377b1ec55a4d6af8a31164c", "sha256": "85e59e721503ca96da91469b1a9011084f973db2814f85731bbc1be764d46c6e" }, "downloads": -1, "filename": "bytesinsert-0.2.1.tar.gz", "has_sig": false, "md5_digest": "fe6704412377b1ec55a4d6af8a31164c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6808, "upload_time": "2017-07-27T11:29:08", "url": "https://files.pythonhosted.org/packages/c4/60/b35b2a4db946fac2e931a9091225ddc7be48d74aa61baa09dc26071350d7/bytesinsert-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "6b1132992530c3501d41daaa80434751", "sha256": "662f07cacf042f1232bb92db475aabdfd2750fcb3fe01ee5315ce7c02a6de83e" }, "downloads": -1, "filename": "bytesinsert-0.2.2.tar.gz", "has_sig": false, "md5_digest": "6b1132992530c3501d41daaa80434751", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6858, "upload_time": "2017-07-27T11:38:46", "url": "https://files.pythonhosted.org/packages/a3/27/68870afeb98bdfe35bf47606c25ee2ef50b39ab86c3817ce90095487e6d0/bytesinsert-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b1132992530c3501d41daaa80434751", "sha256": "662f07cacf042f1232bb92db475aabdfd2750fcb3fe01ee5315ce7c02a6de83e" }, "downloads": -1, "filename": "bytesinsert-0.2.2.tar.gz", "has_sig": false, "md5_digest": "6b1132992530c3501d41daaa80434751", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6858, "upload_time": "2017-07-27T11:38:46", "url": "https://files.pythonhosted.org/packages/a3/27/68870afeb98bdfe35bf47606c25ee2ef50b39ab86c3817ce90095487e6d0/bytesinsert-0.2.2.tar.gz" } ] }