{ "info": { "author": "David O'Gwynn", "author_email": "dogywnn@acm.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3" ], "description": "tokenmanager\n============\n\nVery simple. You have tokens for all your REST APIs. This library\nmanages them.\n\nWhat is this for?\n-----------------\n\nIn my own work, I find myself having to code up a solution to the\nproblem: \"I need to connect to this REST API, but I don't want to have\nthe token saved in my code repo.\" The solutions often involve either\nsourcing bash scripts with environment variables or saving some\nout-of-repo config file with the needed token.\n\nThe goal of this library is to provide a dead simple solution. Create\na \"dot\" file (``~/.tokenmanager.yml``) with all of your tokens that\nyou can read from / write to when necessary.\n\nInstallation\n------------\n\n* Install using ``pip``::\n\n pip install tokenmanager\n\n* Initialize the ``.tokenmanager.yml`` file in your home directory::\n\n python -m tokenmanager -i\n\nUsage\n-----\n\nTo add tokens, specify them using YAML syntax::\n\n service_a: 239e896bfe6f3b7705696c8cef84832e760b689a9633c454432fc407cb7a17af\n service_b: 18c553b119e52cb7d1ab93699865dab38d02d09d13b453258edf859ec075d9d9\n digitalocean:\n app1: a1e1c084540b51b33af3c6b63d48ede2937c8df92f7e6e3beb1f630ac750b851\n app2: 03593464105708646cc04d847ffc81c5b7775c462f68b573f2aff5d933635e17\n twilio:\n sid: WF32428983a878dv89df9xcfjn8d983298\n token: 0b51b33af3c6b63d48ede2937c8df92f\n number: '+12825552341'\n\nTo access them from Python::\n\n >>> tokens = tokenmanager.get_tokens()\n >>> tokens.service_a\n '239e896bfe6f3b7705696c8cef84832e760b689a9633c454432fc407cb7a17af'\n >>> tokens.digitalocean.app1\n 'a1e1c084540b51b33af3c6b63d48ede2937c8df92f7e6e3beb1f630ac750b851'\n\nTo use from bash::\n\n $ python -m tokenmanager service_a\n 239e896bfe6f3b7705696c8cef84832e760b689a9633c454432fc407cb7a17af\n $ python -m tokenmanager digitalocean.app1\n a1e1c084540b51b33af3c6b63d48ede2937c8df92f7e6e3beb1f630ac750b851\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/dogwynn/tokenmanager", "keywords": "token manager rest api development helper utility", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "tokenmanager", "package_url": "https://pypi.org/project/tokenmanager/", "platform": "", "project_url": "https://pypi.org/project/tokenmanager/", "project_urls": { "Homepage": "https://bitbucket.org/dogwynn/tokenmanager" }, "release_url": "https://pypi.org/project/tokenmanager/0.0.1/", "requires_dist": [ "gems", "ruamel.yaml" ], "requires_python": "", "summary": "Simple token manager for token-based REST APIs", "version": "0.0.1" }, "last_serial": 2734521, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5fc76e1bb60b481152366ca709fd48f2", "sha256": "5d4bc9a161eaeb386e23a0c3bcf1d9641be97a21a860005ab733b05d42dcadf8" }, "downloads": -1, "filename": "tokenmanager-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5fc76e1bb60b481152366ca709fd48f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5783, "upload_time": "2017-03-27T21:05:22", "url": "https://files.pythonhosted.org/packages/bc/d3/dd7cf9d5fabfeb33ab938613902868fabc5002af5b089b6e95567c9486e6/tokenmanager-0.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5fc76e1bb60b481152366ca709fd48f2", "sha256": "5d4bc9a161eaeb386e23a0c3bcf1d9641be97a21a860005ab733b05d42dcadf8" }, "downloads": -1, "filename": "tokenmanager-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5fc76e1bb60b481152366ca709fd48f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5783, "upload_time": "2017-03-27T21:05:22", "url": "https://files.pythonhosted.org/packages/bc/d3/dd7cf9d5fabfeb33ab938613902868fabc5002af5b089b6e95567c9486e6/tokenmanager-0.0.1-py3-none-any.whl" } ] }