{ "info": { "author": "Facundo Batista", "author_email": "facundo@taniquetil.com.ar", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License (GPL)", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", "Natural Language :: Spanish", "Operating System :: MacOS", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development", "Topic :: Utilities" ], "description": "infoauth\n========\n\nA small but handy module and script to load/save tokens from/to disk.\n\nIt does:\n\n- Save tokens in a file in disk, pickled and zipped\n\n- Change the file to read-only, and only by yourself\n\n- Load the tokens from disk\n\nIn which case this module is useful? Say you have a script or program that\nneeds to use some secret tokens (mail auth, twitter tokens, DB connection info,\netc...), but you don't want to include those tokens in the code, because it is\npublic, so with this module you do::\n\n tokens = infoauth.load(os.path.expanduser(\"~/.my-tokens\"))\n\nNote that the user will remain only readable by yourself, and not in the\nproject file (so you don't have the risk of sharing it by accident).\n\n**WARNING**: it does NOT protect your secrets with any key or anything, this\nmodule does NOT secure your secrets in any way. Yes, the tokens are scrambled\n(because pickled and zipped) and other people may not be able to access them\neasily (readable only by you), but no further protection is implemented. Use\nat your own risk.\n\n\nHow to use it from a Python program?\n------------------------------------\n\nLoad your tokens::\n\n import infoauth\n auth = infoauth.load(os.path.expanduser(\"~/.my-mail-auth\"))\n # ...\n mail.auth(auth['user'], auth['password'])\n\nDump some secrets::\n\n import infoauth\n secrets = {'some-stuff': 'foo', 'code': 67}\n infoauth.dump(secrets, os.path.expanduser(\"~/.secrets\"))\n\nNote that as storing the secret tokens is normally done once, it's surely\nhandier to do it from the command line, as shown in the next section.\n\n\nHow to use it from the command line?\n------------------------------------\n\nShow the tokens::\n\n $ infoauth show ~/.my-mail-auth\n password: ...\n user: ...\n\nCreate a file with your secrets::\n\n $ infoauth create ~/.secrets some-stuff=foo code=67\n\nNote that creating the file from the command line has the limitation of all\nvalues stored being strings (if you want to store other data types, as\nintegers, lists or any custom objects, you would need to use the\nprogrammatically way of dumping your secrets to disk, as shown in the previous\nsection).", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/facundobatista/infoauth", "keywords": "info auth tokens", "license": "GPL-3", "maintainer": "", "maintainer_email": "", "name": "infoauth", "package_url": "https://pypi.org/project/infoauth/", "platform": "", "project_url": "https://pypi.org/project/infoauth/", "project_urls": { "Homepage": "https://github.com/facundobatista/infoauth" }, "release_url": "https://pypi.org/project/infoauth/1.4/", "requires_dist": null, "requires_python": "", "summary": "A small but handy module and script to load/save tokens from/to disk.", "version": "1.4" }, "last_serial": 3652259, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "d4f468005509b1d5ded1a6460bfa47a6", "sha256": "f7eca21d49b95b68ffe1d9853987e950f87b5ef3789224b4bac52c3783a90340" }, "downloads": -1, "filename": "infoauth-1.0.tar.gz", "has_sig": false, "md5_digest": "d4f468005509b1d5ded1a6460bfa47a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16005, "upload_time": "2018-03-08T19:49:08", "url": "https://files.pythonhosted.org/packages/ee/73/acf49488eaa6ba8709359d4b50831ca842c6fdc5d9f2acff04f1fecf0390/infoauth-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "839b4fb07851deb0436fe1094c5cccdc", "sha256": "3c9fd3350c9db711a98e53f3eac9a0d112de07283351abe28113ef00aa454805" }, "downloads": -1, "filename": "infoauth-1.1.tar.gz", "has_sig": false, "md5_digest": "839b4fb07851deb0436fe1094c5cccdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16038, "upload_time": "2018-03-08T19:53:02", "url": "https://files.pythonhosted.org/packages/44/09/081187d175927f7d477b349f5e3522de38ea77f5e2ad2af87fc35f786d39/infoauth-1.1.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "5caa4c0c0e600fdd30748f930fca3916", "sha256": "c2ca0845aeea9f60f75289bfc95ffb561f325edfe080783961d2ceccb41f5a66" }, "downloads": -1, "filename": "infoauth-1.4.tar.gz", "has_sig": false, "md5_digest": "5caa4c0c0e600fdd30748f930fca3916", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15932, "upload_time": "2018-03-08T20:19:00", "url": "https://files.pythonhosted.org/packages/3d/f0/db103052e7cfc6f19964b388bf1d9b77931e8aba2ffa991a06812134e1e4/infoauth-1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5caa4c0c0e600fdd30748f930fca3916", "sha256": "c2ca0845aeea9f60f75289bfc95ffb561f325edfe080783961d2ceccb41f5a66" }, "downloads": -1, "filename": "infoauth-1.4.tar.gz", "has_sig": false, "md5_digest": "5caa4c0c0e600fdd30748f930fca3916", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15932, "upload_time": "2018-03-08T20:19:00", "url": "https://files.pythonhosted.org/packages/3d/f0/db103052e7cfc6f19964b388bf1d9b77931e8aba2ffa991a06812134e1e4/infoauth-1.4.tar.gz" } ] }