{ "info": { "author": "Matthew Russell", "author_email": "astromars42@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: IPython" ], "description": "# bpmagic\n\nbpmagic is a library to save and load boilerplate code. With a few simple commands, you can save and load bits of frequently used code to speed up programming in iPython and Jupyter.\n\n## Install\nbpmagic is up on pip, so you can simply call:\n`pip install bpmagic`\n\n## Loading bpmagic\nTo load the bpmagic namespaces, you can use the load_ext magic function:\n`%load_ext bpmagic`\nTo prevent typing this everytime, you can add this to your ipython profile startup (mine is in `/.ipython/profile_default/startup/`) and place the above command into a `*.ipy` file (you can name it whatever you want, I used `bpmagic.ipy`)\n\n\n\n## Save\n\nUsing the `%%isave` magic function, you can write and save a chunk of code into a new bpmagic namespace. For example:\n\n```\n\t%%isave data\n\timport pandas as pd\n\timport numpy as np\n\timport scipy as sp\n``` \n\nThis will save your current cell of code into the namespace `data`. If the namespace is already defined, you can overwrite using the -o flag:\n\n```\n\t%%isave plot -o\n\timport matplotlib.pyplot as plt\n\timport seaborn as sns\n\t%matplotlib inline\n``` \n\n## Load\n\nUsing the `%iload` function, you can load up 1 or more profiles at once. For example:\n\n`%iload data plot`\n\nThis will load the boiler plate code for `data` and `plot` and replace the cell that contained `%iload` with:\n\n```\n\t# data\n\timport pandas as pd\n\timport numpy as np\n\timport scipy as sp\n\n\t# plot\n\timport matplotlib.pyplot as plt\n\timport seaborn as sns\n\t%matplotlib inline\n\n``` \n\n## Delete\nIf you pass a profile name after `%idelete`, you will remove that profile name. Example:\n`%idelete data`\n\n## Rename\nPassing in the old name followed by the new profile name will change the name of a profile:\n`%irename plot plotting`\n\n\n## List\nTo get a list of current profiles, simply call `%ilist` in ipython, and it will return a list of all of your current profiles.\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/pm8k/bpmagic/archive/0.13.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pm8k/bpmagic", "keywords": "python,magic,jupyter,ipython,boiler,plate,bp", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bpmagic", "package_url": "https://pypi.org/project/bpmagic/", "platform": "", "project_url": "https://pypi.org/project/bpmagic/", "project_urls": { "Download": "https://github.com/pm8k/bpmagic/archive/0.13.1.tar.gz", "Homepage": "https://github.com/pm8k/bpmagic" }, "release_url": "https://pypi.org/project/bpmagic/0.13.1/", "requires_dist": [ "ipython" ], "requires_python": "", "summary": "Magic functions to load boilerplate code", "version": "0.13.1" }, "last_serial": 3423707, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d7bf848ec97a558d97aaa0a7ed98bbb5", "sha256": "5939d53454059399b486779a5c725e13a91a59d3320242a90d37a8083ad854c4" }, "downloads": -1, "filename": "bpmagic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d7bf848ec97a558d97aaa0a7ed98bbb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2780, "upload_time": "2017-07-29T05:33:15", "url": "https://files.pythonhosted.org/packages/6e/84/83f5c7edce5fac2792424a40923ac3fac961f6a142396a47f953d3791c78/bpmagic-0.1.0.tar.gz" } ], "0.13.0": [ { "comment_text": "", "digests": { "md5": "31339c798dc52e4c36d3519e175cf00b", "sha256": "37d57074664484fa02afee307c9565f0a4ec20eedee20db971864e750158d15c" }, "downloads": -1, "filename": "bpmagic-0.13.0-py3-none-any.whl", "has_sig": false, "md5_digest": "31339c798dc52e4c36d3519e175cf00b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5158, "upload_time": "2017-12-17T20:53:31", "url": "https://files.pythonhosted.org/packages/b6/57/df33260cde2f1dfb8ddd744f91a528cc9367d5e3e8eb9f462583439a9326/bpmagic-0.13.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c5da7a8ca48d45625156bbaf523307e", "sha256": "fea16533ba02a8fd50d674a490baed37b031ac84151174cb7c819ad6ad094be1" }, "downloads": -1, "filename": "bpmagic-0.13.0.tar.gz", "has_sig": false, "md5_digest": "9c5da7a8ca48d45625156bbaf523307e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3665, "upload_time": "2017-12-17T20:53:33", "url": "https://files.pythonhosted.org/packages/18/38/bdcbd3ae00114d26d1c086f3d2670c639c5d9854a2c5b99856748b443d96/bpmagic-0.13.0.tar.gz" } ], "0.13.1": [ { "comment_text": "", "digests": { "md5": "7e3778e730aa2198804d0e0f83a3b16e", "sha256": "92a5553c2f54c1cc518c99cd32eaf6817bf4d0e2b7e68cdec42a06d5fcf10079" }, "downloads": -1, "filename": "bpmagic-0.13.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7e3778e730aa2198804d0e0f83a3b16e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5197, "upload_time": "2017-12-17T21:07:39", "url": "https://files.pythonhosted.org/packages/f4/94/333689eaf0fc400cb19580ca1ecc752059a446acc7661b2eba105c69cf43/bpmagic-0.13.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4d29e189efcb96e893db8b5347733dc", "sha256": "7924c0266d883b6e328afadf20e5a8d5036b8c4c9a5b453a4a6b47643a2b3e5c" }, "downloads": -1, "filename": "bpmagic-0.13.1.tar.gz", "has_sig": false, "md5_digest": "a4d29e189efcb96e893db8b5347733dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3671, "upload_time": "2017-12-17T21:07:40", "url": "https://files.pythonhosted.org/packages/4b/b7/9b00262388eb7b6b436d8dedf6a2567337346b2500425b86c6b191fb5067/bpmagic-0.13.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7e3778e730aa2198804d0e0f83a3b16e", "sha256": "92a5553c2f54c1cc518c99cd32eaf6817bf4d0e2b7e68cdec42a06d5fcf10079" }, "downloads": -1, "filename": "bpmagic-0.13.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7e3778e730aa2198804d0e0f83a3b16e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5197, "upload_time": "2017-12-17T21:07:39", "url": "https://files.pythonhosted.org/packages/f4/94/333689eaf0fc400cb19580ca1ecc752059a446acc7661b2eba105c69cf43/bpmagic-0.13.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4d29e189efcb96e893db8b5347733dc", "sha256": "7924c0266d883b6e328afadf20e5a8d5036b8c4c9a5b453a4a6b47643a2b3e5c" }, "downloads": -1, "filename": "bpmagic-0.13.1.tar.gz", "has_sig": false, "md5_digest": "a4d29e189efcb96e893db8b5347733dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3671, "upload_time": "2017-12-17T21:07:40", "url": "https://files.pythonhosted.org/packages/4b/b7/9b00262388eb7b6b436d8dedf6a2567337346b2500425b86c6b191fb5067/bpmagic-0.13.1.tar.gz" } ] }