{ "info": { "author": "Anthony Bloomer", "author_email": "ant0@protonmail.ch", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python" ], "description": "\nnrql-cli\n========\n\nAn interactive command line interface for querying NRQL data.\n\n|asciicast|\n\nAbout\n-----\n\nThe New Relic Insights query API is a REST API for querying Insights\nevent data. After you supply a standard NRQL query via HTTPS request,\nthe query API returns a JSON response for parsing.\n\nTo use the API, you need a query key. You can have multiple query keys,\nand any query key can be used to initiate any Insights API query. If you\nhave multiple systems querying Insights or different data destinations,\nNew Relic recommends you use multiple query keys to enhance data\nsecurity.\n\nTo create a new query key:\n\n1. Go to `insights.newrelic.com `__ >\n Manage data > API keys.\n2. Select the plus icon next to the Query keys heading.\n3. Enter a short description of the key.\n4. Select Save your notes.\n\nYou will also need make note of your New Relic Account ID. To find the\naccount ID for your New Relic account:\n\n1. Sign in to `rpm.newrelic.com `__.\n2. In the URL bar, copy the number after the /accounts/ portion of the\n URL: ``https://rpm.newrelic.com/accounts/ACCOUNT_ID/``\n\nInstallation\n------------\n\nnrql-cli is available on the Python Package Index (PyPI) at\nhttps://pypi.python.org/pypi/nrql-cli\n\nYou can install nrql-cli using pip.\n\n::\n\n pip install nrql-cli\n\nExport your `Query API\nkey `__\nand `Account\nID `__\nas environment variables:\n\n.. code:: shell\n\n export NR_API_KEY='YOUR_API_KEY'\n export NR_ACCOUNT_ID='YOUR_ACCOUNT_ID'\n\nThen, run:\n\n::\n\n nrql\n\nThis command will start the program and you can start querying your\ndata!\n\nAlternatively, you can run in Docker. You will need to update the\n`Dockerfile `__\nwith your API key and account id and then run:\n\n.. code:: shell\n\n docker build -f Dockerfile -t nrql-cli .\n docker run --rm -it nrql-cli\n\nUsage\n-----\n\n::\n\n usage: nrql-cli [-h] [--region {EU,US}] [--env ENV] [--verbose]\n\n optional arguments:\n -h, --help show this help message and exit\n --region {EU,US}, --r {EU,US}\n Pass this flag to set your region (EU or US) By\n default the region is set to US.\n --env ENV, --e ENV Environment handler.\n --verbose, --v Pass this flag if you want the whole response.\n\nManaging multiple accounts\n--------------------------\n\nIf you wish to easily switch between your New Relic accounts, you can\nuse the ``--env`` switch:\n\n.. code:: bash\n\n python nrql-cli.py --env PROD\n\nBy default, the program looks for the environment variables\n``NR_API_KEY`` and ``NR_ACCOUNT_KEY``.\n\nIf the ``env`` argument is not none, then the program appends the\nenvironment string to ``NR_API_KEY``. For example:\n\n::\n\n NR_API_KEY_PROD\n\nWhen naming your environment variables, ensure to follow this naming\nconvention.\n\nSupport\n-------\n\nPlease note that this is offered for use as-is without warranty. You are\nfree to use and modify as needed. It has been created for use with New\nRelic, but is not a supported product of New Relic\n\n.. |asciicast| image:: https://asciinema.org/a/271697.svg\n :target: https://asciinema.org/a/271697\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/anthonybloomer/nrql-cli", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nrql-cli", "package_url": "https://pypi.org/project/nrql-cli/", "platform": "", "project_url": "https://pypi.org/project/nrql-cli/", "project_urls": { "Homepage": "https://github.com/anthonybloomer/nrql-cli" }, "release_url": "https://pypi.org/project/nrql-cli/1.0.2/", "requires_dist": [ "requests", "colorful", "halo", "prompt-toolkit", "pygments" ], "requires_python": ">=3.7.0", "summary": "An interactive command line interface for querying NRQL data.", "version": "1.0.2" }, "last_serial": 5918127, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "11d414109f5ab3d1ad39e99066ed93ef", "sha256": "3bbd8bc336cc2cd8671175c88b7376ccc8aadc2bb483197f4f5a4ea3809506ce" }, "downloads": -1, "filename": "nrql_cli-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "11d414109f5ab3d1ad39e99066ed93ef", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7.0", "size": 6380, "upload_time": "2019-10-02T13:48:49", "url": "https://files.pythonhosted.org/packages/55/06/23866d78f84b1faaa07c24ba99a485efc1c7538183ed2b4e32c41ba923c1/nrql_cli-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c2ac4c63ae6ce12130004bbd81a3fc5", "sha256": "b8ae3b781ca7e841fba5923644e9ea98bbe9304a1ba346797bda96123d23c855" }, "downloads": -1, "filename": "nrql-cli-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1c2ac4c63ae6ce12130004bbd81a3fc5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 6347, "upload_time": "2019-10-02T13:49:05", "url": "https://files.pythonhosted.org/packages/b0/85/5b2bb964592250b5802791f47a4bf1eaa840d813389a1708ae200bb5f9bc/nrql-cli-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "17145c942718c6187deb5257c0f03a5c", "sha256": "ff6ac2de44f0893fe2dd0ca7e33d0040e52b5f07164e4d8ff4e1709833e958ec" }, "downloads": -1, "filename": "nrql_cli-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "17145c942718c6187deb5257c0f03a5c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7.0", "size": 6384, "upload_time": "2019-10-02T13:59:56", "url": "https://files.pythonhosted.org/packages/99/f2/9910f67c45df21faab6e36c69bcb0c891533e610b1b92674551c0a24db16/nrql_cli-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1109fedb21ab2cd2c604dae9b03a4b0c", "sha256": "1e9e04ecb7df74e2b659f365d52bfd04727c4e8f6191cd63deab20d0d9e3f79b" }, "downloads": -1, "filename": "nrql-cli-1.0.1.tar.gz", "has_sig": false, "md5_digest": "1109fedb21ab2cd2c604dae9b03a4b0c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 6245, "upload_time": "2019-10-02T14:00:00", "url": "https://files.pythonhosted.org/packages/16/64/39e0e84af24c55991cc3c16be4144b126f31ffb1e7e0b8d3b376256de72b/nrql-cli-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "7339f18494820e7c07fb6190cb82e99b", "sha256": "e9758fe6871523f587e1da213d805a5e38fa091d35b39c3d1e66c5135ffbd124" }, "downloads": -1, "filename": "nrql_cli-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7339f18494820e7c07fb6190cb82e99b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7.0", "size": 6319, "upload_time": "2019-10-02T14:10:56", "url": "https://files.pythonhosted.org/packages/91/31/005b0c7d64ff8e6afbf30aff820b414575d4db621ee090c0e9712b5ab917/nrql_cli-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74195e76586df90a28df4c5441b7c70f", "sha256": "15e80eef59b34c0e65d2d9c0cca04832e02d29bb7a4714650096398625ec4718" }, "downloads": -1, "filename": "nrql-cli-1.0.2.tar.gz", "has_sig": false, "md5_digest": "74195e76586df90a28df4c5441b7c70f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 6398, "upload_time": "2019-10-02T14:10:59", "url": "https://files.pythonhosted.org/packages/7a/e0/41d0cb0a99ff11353cc1838650bd71f77f26ada352b31f1ef37b7523106e/nrql-cli-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7339f18494820e7c07fb6190cb82e99b", "sha256": "e9758fe6871523f587e1da213d805a5e38fa091d35b39c3d1e66c5135ffbd124" }, "downloads": -1, "filename": "nrql_cli-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7339f18494820e7c07fb6190cb82e99b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.7.0", "size": 6319, "upload_time": "2019-10-02T14:10:56", "url": "https://files.pythonhosted.org/packages/91/31/005b0c7d64ff8e6afbf30aff820b414575d4db621ee090c0e9712b5ab917/nrql_cli-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74195e76586df90a28df4c5441b7c70f", "sha256": "15e80eef59b34c0e65d2d9c0cca04832e02d29bb7a4714650096398625ec4718" }, "downloads": -1, "filename": "nrql-cli-1.0.2.tar.gz", "has_sig": false, "md5_digest": "74195e76586df90a28df4c5441b7c70f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7.0", "size": 6398, "upload_time": "2019-10-02T14:10:59", "url": "https://files.pythonhosted.org/packages/7a/e0/41d0cb0a99ff11353cc1838650bd71f77f26ada352b31f1ef37b7523106e/nrql-cli-1.0.2.tar.gz" } ] }