{ "info": { "author": "Emmanuel Levijarvi", "author_email": "emansl@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "TempoDB Archive tool archives datapoints that you no longer want hosted\nat TempoDB but want to keep. By default, it keeps the most recent\nthirty days of datapoints and looks back in 24 hour intervals,\narchiving the datapoints in each interval until no datapoints are\nfound.\n\nDatapoints are saved to an SQLite3 database - one table per series. The\nTempoDB Archive tool will take care of creating the necessary schema.\n\n.. note:: Deleting datapoints from TempoDB is optional but if there is\n more than one tempodb-archive run with the same sqlite3 file, the tool\n will generate a duplicate record error.\n\n.. note:: When searching back through 24 hour (default setting)\n interval, the tool will stop as soon as it finds an empty interval.\n If there are data points beyond the empty interval, they will not be\n archived.\n\n.. note:: This tool is not developed by TempoDB. Please do not contact\n them for support.\n\nInstallation\n-----------------------------------------------------------------------\n.. code:: bash\n\n pip install tempodb-archive\n\n\nConfiguration\n-----------------------------------------------------------------------\nTempoDB Archive tool does not require configuration but frequently (or\nalways) used options my be stored in a conifuration file for\nconvenience. The TempoDB Archive tool uses the ini format. If left\nunspecified, the TempoDB Archive tool will look for a configuration\nfile at ``$HOME/.tempodb-archive.cfg``. This may be overriden by using\nthe ``-c`` option (see usage).\n\nThe following options, stored in a \"tempodb\", section are recognized:\n\n============ ================== ===========================================================\nOption Default Value Description\n============ ================== ===========================================================\napi key no default TempoDB api key (from tempo-db.com)\napi secret no default TempoDB api secret (from tempo-db.com)\ninterval 24 (hours) Length of the interval to fetch datapoints from TempoDB\nkeep days 30 (days) Archive datapoints that are older then this number of days\ndelete false Delete datapoints after saving them to the local archive\nseries keys archive all series Comma delimited list of series keys\n============ ================== ===========================================================\n\nExample:\n\n.. code:: ini\n\n ; ~/.tempodb-archive.cfg\n\n [tempodb]\n api key = < your api key >\n api secret = < your api secret >\n interval = 48\n keep days = 15\n delete = true\n series names = temp, windspeed, humidity\n\n\nUsage\n-----------------------------------------------------------------------\n::\n\n tempodb-archive [-h] [--version] [-c CONFIG_FILE] [--api-key API_KEY]\n [--api-secret API_SECRET]\n {list,archive} ...\n\n TempoDB Archive Tool\n\n positional arguments:\n {list,archive} commands\n list list available series\n archive archive datapoints\n\n optional arguments:\n -h, --help show this help message and exit\n --version Display Version\n -c CONFIG_FILE, --config-file CONFIG_FILE\n Configuration Filename\n --api-key API_KEY TempoDB API Key\n --api-secret API_SECRET\n TempoDB API Secret\n\n\nLicense\n===============================================================================\nCopyright (c) 2014, Emmanuel Levijarvi\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/eman/tempodb-archive", "keywords": "tempodb archive", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "tempodb-archive", "package_url": "https://pypi.org/project/tempodb-archive/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tempodb-archive/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/eman/tempodb-archive" }, "release_url": "https://pypi.org/project/tempodb-archive/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Archive TempoDB Datapoints", "version": "1.0.0" }, "last_serial": 1105757, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "047ba2a596e64372ca8960177045b664", "sha256": "86492e1a60e49e010a8dceab14b756410596ede47719a8b59645611c9d0c0c5a" }, "downloads": -1, "filename": "tempodb_archive-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "047ba2a596e64372ca8960177045b664", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 8563, "upload_time": "2014-05-27T16:00:13", "url": "https://files.pythonhosted.org/packages/d4/7d/af45e3d2dc275e1caf5abc46e6b8486b30577ad80bffb3d9bba3f7c7ad4e/tempodb_archive-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b23b2ea74013b19d5c31205e489d325f", "sha256": "759da473e45cb5af3c9d9216306b4e03360ebea5419da244d4a2ff022214f3e7" }, "downloads": -1, "filename": "tempodb-archive-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b23b2ea74013b19d5c31205e489d325f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5476, "upload_time": "2014-05-27T15:59:52", "url": "https://files.pythonhosted.org/packages/d2/21/f4b774aa3aff5404b13a11d003eb97c55e5cf599166610e0a835d24807e3/tempodb-archive-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "047ba2a596e64372ca8960177045b664", "sha256": "86492e1a60e49e010a8dceab14b756410596ede47719a8b59645611c9d0c0c5a" }, "downloads": -1, "filename": "tempodb_archive-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "047ba2a596e64372ca8960177045b664", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 8563, "upload_time": "2014-05-27T16:00:13", "url": "https://files.pythonhosted.org/packages/d4/7d/af45e3d2dc275e1caf5abc46e6b8486b30577ad80bffb3d9bba3f7c7ad4e/tempodb_archive-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b23b2ea74013b19d5c31205e489d325f", "sha256": "759da473e45cb5af3c9d9216306b4e03360ebea5419da244d4a2ff022214f3e7" }, "downloads": -1, "filename": "tempodb-archive-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b23b2ea74013b19d5c31205e489d325f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5476, "upload_time": "2014-05-27T15:59:52", "url": "https://files.pythonhosted.org/packages/d2/21/f4b774aa3aff5404b13a11d003eb97c55e5cf599166610e0a835d24807e3/tempodb-archive-1.0.0.tar.gz" } ] }