{ "info": { "author": "Yi Ou", "author_email": "dashjson.project@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "[![Build Status](https://travis-ci.org/ouyi/dashjson.svg?branch=master)](https://travis-ci.org/ouyi/dashjson)\n\n# dashjson.py -- a Datadog tool\n\nA tool for exporting (or importing) Datadog dashboards to (or from) json. It allows the Datadog dashboard definitions to be\n\n- version controlled as json files, and\n- migrated across Datadog accounts\n\nTested with Python 3.6.7 and datadog 0.26.0.\n\n## How to use\n\nCreate the credentials file containing the api\\_key and the app\\_key. Example content of the credentials file (your keys can be found at https://app.datadoghq.com/account/settings#api):\n\n # cat ~/.dashjson.json\n {\n \"api_key\": \"abcdefg12345678\",\n \"app_key\": \"abcdefg987654321\"\n }\n\nInstall via pip:\n\n python3 -m pip install --user dashjson\n\nShow usage of the tool:\n\n python3 -m dashjson -h\n\n## How to build (for contributors only)\n\nThese are the steps I used on Ubuntu 18.04.\n\nAdd the following lines to `~/.bashrc`:\n\n # Due to https://github.com/pypa/pipenv/issues/2122\n export PATH=\"${HOME}/.local/bin:$PATH\"\n\n # Due to https://github.com/pypa/pipenv/issues/1382\n export PIPENV_VENV_IN_PROJECT=true\n\nInstall pip and pipenv:\n\n sudo apt install python3-pip\n python3 -m pip install --user pipenv\n\nClone and set up the project locally:\n\n git clone git@github.com:ouyi/dashjson.git\n cd dashjson\n pipenv install --dev\n pipenv run python -m unittest\n pipenv run python dashjson.py -h\n\nUpload a release:\n\n rm -rf build/ dist/\n python setup.py sdist bdist_wheel\n pip install . -vvv\n python -m dashjson -h\n vim setup.py # bump version\n git add setup.py && git commit -m \"Bump version\"\n git tag -a my_tag -m \"My message\"\n git push origin master && git push origin --tags\n python -m twine upload dist/*\n\n## TODOs\n\n1. Automatically determine the dashboard type\n\nFor import, the information is available in the input file. For export, we can first [get a list of all screenboards](https://docs.datadoghq.com/api/?lang=python#get-all-screenboards) and then check existence by id.\n\n2. Embed a code coverage badge\n\nThe coverage data can be generated with:\n\n coverage run --source=dashjson -m unittest && coverage report && coverage-badge -f -o coverage.svg\n\n3. Automate the release process\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ouyi/dashjson", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dashjson", "package_url": "https://pypi.org/project/dashjson/", "platform": "", "project_url": "https://pypi.org/project/dashjson/", "project_urls": { "Homepage": "https://github.com/ouyi/dashjson" }, "release_url": "https://pypi.org/project/dashjson/0.1.5/", "requires_dist": [ "datadog (>=0.26.0)" ], "requires_python": "", "summary": "A tool for exporting (or importing) Datadog dashboards to (or from) json", "version": "0.1.5" }, "last_serial": 4847009, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "21ee92896147eae4beb0aa1e4316abc7", "sha256": "769ba1705d606c44794d6afee1557699fbc5ff5acc4563d27d61c59b4415b97c" }, "downloads": -1, "filename": "dashjson-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "21ee92896147eae4beb0aa1e4316abc7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4752, "upload_time": "2019-02-17T16:58:49", "url": "https://files.pythonhosted.org/packages/eb/00/842afeeddbefbca587cc7a7d7fce04557d752e0fbc2fcf1c29047b6a15e4/dashjson-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ba8d1a0799cbfa4f6460dd186e2ca0c", "sha256": "d33f3fb0cac75cdfcd8aee8b0f31e69f5037314c137c7461115ee247f198e9a7" }, "downloads": -1, "filename": "dashjson-0.1.5.tar.gz", "has_sig": false, "md5_digest": "1ba8d1a0799cbfa4f6460dd186e2ca0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3654, "upload_time": "2019-02-17T16:58:51", "url": "https://files.pythonhosted.org/packages/ed/4a/a619d799d43ff4c4d17fe734749214903f80b29d6ac2f4f64e905528ddd1/dashjson-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "21ee92896147eae4beb0aa1e4316abc7", "sha256": "769ba1705d606c44794d6afee1557699fbc5ff5acc4563d27d61c59b4415b97c" }, "downloads": -1, "filename": "dashjson-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "21ee92896147eae4beb0aa1e4316abc7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4752, "upload_time": "2019-02-17T16:58:49", "url": "https://files.pythonhosted.org/packages/eb/00/842afeeddbefbca587cc7a7d7fce04557d752e0fbc2fcf1c29047b6a15e4/dashjson-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ba8d1a0799cbfa4f6460dd186e2ca0c", "sha256": "d33f3fb0cac75cdfcd8aee8b0f31e69f5037314c137c7461115ee247f198e9a7" }, "downloads": -1, "filename": "dashjson-0.1.5.tar.gz", "has_sig": false, "md5_digest": "1ba8d1a0799cbfa4f6460dd186e2ca0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3654, "upload_time": "2019-02-17T16:58:51", "url": "https://files.pythonhosted.org/packages/ed/4a/a619d799d43ff4c4d17fe734749214903f80b29d6ac2f4f64e905528ddd1/dashjson-0.1.5.tar.gz" } ] }