{ "info": { "author": "Bartlomiej Piekarski", "author_email": "bartlomiej.piekarski@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: System :: Shells", "Topic :: System :: System Shells" ], "description": "=========\nspellbook\n=========\n\nstore and search command lines\n\n-------\nproblem\n-------\n\n.. image:: http://imgs.xkcd.com/comics/tar.png\n\n\n\n\nThe inspiration is user experience in opennssl command line tool.\nIn one of my previous project I was working with openssl command line tool.\nIn the examples below I will use openssl to show you how to use spellbook.\n\nthe quickest start\n==================\n\ninstall spellbook:\n\n.. code::\n\n $ pip install spellbook\n\n\ncreate first spellbook, called aux:\n\n.. code::\n\n $ spellbook aux create\n\n\nadd spell to your spellbook:\n\n.. code::\n\n $ spellbook aux add \"tar -xvzf file.tar.gz\" \"extract tar.gz archive\"\n\nsearch for it:\n\n.. code::\n\n $ spellbook aux search tar\n tar -xvzf file.tar.gz\n\n\ndocumentation\n=============\nThe idea is to create 'book' for openssl.\n\n\ncreate your first spellbook, called openssl:\n\n.. code:: \n\n $ spellbook openssl create\n\nthen create spellbook for linux:\n\n.. code:: \n\n $ spellbook linux create\n\n\nadd\n---\n\nadd some data to it, three ways are possible:\n\nformat:\n\n.. code:: \n\n $ spellbook add [command [description]]\n\nadd with command and description:\n\n.. code:: \n\n $ spellbook openssl add \"openssl rand 16 -hex\" \"generate random 16 bytes and encode as hex\"\n openssl rand 16 -hex::generate random 16 bytes and encode as hex\n\nadd with only command:\n\n.. code:: \n\n $ spellbook openssl add \"openssl asn1parse -in 3msg.enc.der -inform der\"\n provide description>> show asn1 encoded file\n openssl asn1parse -in 3msg.enc.der -inform der::show asn1 encoded file\n\nadd without command:\n\n.. code:: \n\n $ spellbook openssl add\n provide command>> openssl des3 -d -in 3msg.enc.msg -K `xxd -p 3msg.dec.key` -iv `xxd -p 3msg.iv`\n provide description>> decode file using des3 with key and iv\n openssl des3 -d -in 3msg.enc.msg -K `xxd -p 3msg.dec.key` -iv `xxd -p 3msg.iv`::decode file using des3 with key and iv\n\nadd something to linux book:\n\n.. code:: \n\n $ spellbook linux add \"tar -xvzf file.tar.gz\" \"extract tar.gz archive\"\n tar -xvzf file.tar.gz::extract tar.gz archive\n\n\nsearch\n------\n\nsearch in book openssl:\n\n.. code:: \n\n $ spellbook openssl search rand\n openssl rand 16 -hex\n\nor in all books ( - means all ):\n\n.. code:: \n\n $ spellbook - search extract\n tar -xvzf file.tar.gz\n\nsearch any word:\n\n.. code:: \n\n $ spellbook - search openssl d\n openssl rand 16 -hex\n openssl asn1parse -in 3msg.enc.der -inform der\n openssl des3 -d -in 3msg.enc.msg -K `xxd -p 3msg.dec.key` -iv `xxd -p 3msg.iv`\n\nor full pharse:\n\n.. code:: \n\n $ spellbook - search \"openssl d\"\n openssl des3 -d -in 3msg.enc.msg -K `xxd -p 3msg.dec.key` -iv `xxd -p 3msg.iv`\n\n\nlist\n----\n\nlist all spells:\n\n.. code:: \n\n $ spellbook openssl list\n openssl rand 16 -hex ::>> generate random 16 bytes and encode as hex\n openssl asn1parse -in 3msg.enc.der -inform der ::>> show asn1 encoded file\n openssl des3 -d -in 3msg.enc.msg -K `xxd -p 3msg.dec.key` -iv `xxd -p 3msg.iv` ::>> decode file using des3 with key and iv\n\n\ndropbox support\n===============\n\njust install dropbox or install spellbook with dropbox\n\n.. code::\n\n $ pip install spellbook[with_dropbox]\n or\n $ pip install spellbook dropbox\n\n\n\n\n\nconnect to dropbox\n------------------\n\n.. code::\n\n $ spellbook - connectdb\n 1. Go to: https://www.dropbox.com/1/oauth2/authorize?response_type=code&client_id=ow3gosk8pb9bhkr\n 2. Click \"Allow\" (you might have to log in first)\n 3. Copy the authorization code.\n provide the authorization code here>> oh4dTc9F_fgAAAAAAAAC3fovgKZ7cPL65mS5Ajxevug\n successfully linked account: DonPiekarz\n\nsync spellbooks with dropbox\n----------------------------\n\nall spellbooks will be synchronized with yours dropbox account\n\n.. code::\n\n $ spellbook - sync\n\n\n\nfuture work\n===========\n\n* some hack to end parse arguments\n* refactoring", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/donpiekarz/spellbook/tarball/1.1.5", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/donpiekarz/spellbook", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "spellbook", "package_url": "https://pypi.org/project/spellbook/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/spellbook/", "project_urls": { "Download": "https://github.com/donpiekarz/spellbook/tarball/1.1.5", "Homepage": "https://github.com/donpiekarz/spellbook" }, "release_url": "https://pypi.org/project/spellbook/1.1.5/", "requires_dist": null, "requires_python": null, "summary": "store and search command lines", "version": "1.1.5" }, "last_serial": 1951355, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "2311daae3dd4da9ff72a2d757e4b97e1", "sha256": "92aacb248a5ad2eaffcb8c44cd693282eb38e7191b5bc959948badaaab5dfaa4" }, "downloads": -1, "filename": "spellbook-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2311daae3dd4da9ff72a2d757e4b97e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3963, "upload_time": "2016-01-21T08:52:25", "url": "https://files.pythonhosted.org/packages/7a/01/fe958602b1c171aae00f427f281c5d935a74eb5badff2da50568c17ac49a/spellbook-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "0a52c58dda3ec0eacd0838f1286fb6ea", "sha256": "496d8c941eb0077cd8bb4ed1c8f67e7f9022b956481f4c4c82da1c908662b784" }, "downloads": -1, "filename": "spellbook-1.0.1.tar.gz", "has_sig": false, "md5_digest": "0a52c58dda3ec0eacd0838f1286fb6ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3945, "upload_time": "2016-01-21T11:30:32", "url": "https://files.pythonhosted.org/packages/7c/da/27e24ec340cfc7a114e5851d549ad02bf0256855950489e4e9546f3235fd/spellbook-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "9ac11f4a6312ba19d76e23a2f527a85d", "sha256": "a329a8db5723bd471141e6e97c143cdd997d6d07a5c2ac28d566c54e5b016e14" }, "downloads": -1, "filename": "spellbook-1.0.2.tar.gz", "has_sig": false, "md5_digest": "9ac11f4a6312ba19d76e23a2f527a85d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4002, "upload_time": "2016-01-21T11:36:56", "url": "https://files.pythonhosted.org/packages/e1/d6/8d92b933c2dc5f96316d4e9f954fda7c6fca81493e0742670fe282a04303/spellbook-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "eb5db08c0f2f73b80b78a2cbd904a3d5", "sha256": "7f06cb81338de3b35b54e150322f08736297031d99c9eb9dda28ee8e96e126d2" }, "downloads": -1, "filename": "spellbook-1.1.0.tar.gz", "has_sig": false, "md5_digest": "eb5db08c0f2f73b80b78a2cbd904a3d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5230, "upload_time": "2016-02-02T12:56:33", "url": "https://files.pythonhosted.org/packages/04/ff/afc3b7b223f8c59dfd1ccc2465dc482345246252a7d84d1f26990ceee8f6/spellbook-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "17a93888b47d945d359b05b81b434008", "sha256": "17c68067b051ba97ad1813e853bd04ae10a1a8a476d836c630f46a114634dc26" }, "downloads": -1, "filename": "spellbook-1.1.1.tar.gz", "has_sig": false, "md5_digest": "17a93888b47d945d359b05b81b434008", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5279, "upload_time": "2016-02-02T14:26:39", "url": "https://files.pythonhosted.org/packages/5c/a6/b4a91e9e45ad09c1021e9e431f466e3f5e4dae27ed96c5e3962582314e5c/spellbook-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "93dab886e35e432e9b9ca123965bfd9e", "sha256": "42480f34da0daa78470442d3082c1cc8c2d52b2e96301874a655fc98a78994fc" }, "downloads": -1, "filename": "spellbook-1.1.2.tar.gz", "has_sig": false, "md5_digest": "93dab886e35e432e9b9ca123965bfd9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5289, "upload_time": "2016-02-03T11:21:38", "url": "https://files.pythonhosted.org/packages/c2/60/0ae305ea7d177ede9aa2f20e0ab5c2a2d0cfe839b38d0525044439f06add/spellbook-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "fe923a5f863a416497a4d6c2cc4ca9bb", "sha256": "951c23d297c633022124549ce54723de31aa2c6ceb89f3819e6bbb6c047018ce" }, "downloads": -1, "filename": "spellbook-1.1.3.tar.gz", "has_sig": false, "md5_digest": "fe923a5f863a416497a4d6c2cc4ca9bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5688, "upload_time": "2016-02-03T13:15:00", "url": "https://files.pythonhosted.org/packages/3d/d3/a73823444fac988195527fa15e79f285b997e7ff6ef29e4d15d3f9af5a03/spellbook-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "fbf26d09f0967a02b70c52416923ae64", "sha256": "631a6f5c0a25aa642bdaccc12b0e9433aad7720504b825d34c7dcd4c470dfbbd" }, "downloads": -1, "filename": "spellbook-1.1.4.tar.gz", "has_sig": false, "md5_digest": "fbf26d09f0967a02b70c52416923ae64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5740, "upload_time": "2016-02-03T13:55:24", "url": "https://files.pythonhosted.org/packages/e3/c9/3170616c8137ada388962d3847ff2340e28acf8967c89a7757cebc0ab3ca/spellbook-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "21e185164a4101e019a63dd63ed681c1", "sha256": "d0a0f75868f47f04976a00c447f871d419cb04dc69c31c88c41bec77e99a6214" }, "downloads": -1, "filename": "spellbook-1.1.5.tar.gz", "has_sig": false, "md5_digest": "21e185164a4101e019a63dd63ed681c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5733, "upload_time": "2016-02-11T15:37:09", "url": "https://files.pythonhosted.org/packages/d6/ab/36b37ab0e9bb4952b7c206e542181483626fcdd236ffd6c744e249c6bba6/spellbook-1.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "21e185164a4101e019a63dd63ed681c1", "sha256": "d0a0f75868f47f04976a00c447f871d419cb04dc69c31c88c41bec77e99a6214" }, "downloads": -1, "filename": "spellbook-1.1.5.tar.gz", "has_sig": false, "md5_digest": "21e185164a4101e019a63dd63ed681c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5733, "upload_time": "2016-02-11T15:37:09", "url": "https://files.pythonhosted.org/packages/d6/ab/36b37ab0e9bb4952b7c206e542181483626fcdd236ffd6c744e249c6bba6/spellbook-1.1.5.tar.gz" } ] }