{ "info": { "author": "Jeremy Brown", "author_email": "mischif@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Open Software License 3.0 (OSL-3.0)", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "rstats-logreader\n================\n\n[![Python Versions](https://img.shields.io/pypi/pyversions/rstats-logreader?style=for-the-badge)](https://pypi.org/project/rstats-logreader/)\n[![Travis](https://img.shields.io/travis/mischif/rstats-logreader.svg?style=for-the-badge)](https://travis-ci.org/mischif/rstats-logreader)\n[![Codecov](https://img.shields.io/codecov/c/github/mischif/rstats-logreader.svg?style=for-the-badge)](https://codecov.io/gh/mischif/rstats-logreader)\n[![Package Version](https://img.shields.io/pypi/v/rstats-logreader?style=for-the-badge)](https://pypi.org/project/rstats-logreader/)\n[![License](https://img.shields.io/pypi/l/rstats-logreader?style=for-the-badge)](https://pypi.org/project/rstats-logreader/)\n\nRead bandwidth logfiles in the RStats format (usually created by routers running some offshoot of the Tomato firmware) and perform simple analysis/aggregation.\n\nSupports printing bandwidth data to the console, as well as conversion to CSV or JSON formats for further ingestion downstream.\n\nSupports arbitrary week/month beginnings and conversion to arbitrary units.\n\nUsage\n-----\n\n### Simple Usage\n\nPrinting to screen:\n\n\t$ rstats-reader --print dwm /path/to/logfile.gz\n\nSaving to another format:\n\n\t$ rstats-reader --write dwm -f json -o out.json /path/to/logfile.gz\n\n### All Options\n\n\t$ rstats-reader -h\n\n\tusage: rstats-reader [--print {dwm}] [-w {Mon - Sun}] [-m {1 - 31}]\n\t\t\t [--write {dwm}] [-o outfile.dat] [-f {csv,json}]\n\t\t\t [-u {B - TiB}] [-h] [--version]\n\t\t\t logpath\n\n\tpositional arguments:\n\t\tlogpath\t\t\t\tgzipped rstats logfile\n\n\toptional arguments:\n\t\t--print {dwm}\t\t\tPrint daily, weekly or monthly statistics to the console\n\t\t-w, --week-start {Mon - Sun}\tDay of the week statistics should reset\n\t\t-m, --month-start {1 - 31}\tDay of the month statistics should reset\n\t\t-u, --units {B - TiB}\t\tUnits statistics will be displayed in\n\t\t-h, --help\t\t\tshow this help message and exit\n\t\t--version\t\t\tshow program's version number and exit\n\n\twrite:\n\t\t--write {dwm}\t\t\tWrite daily, weekly or monthly statistics to a file\n\t\t-o, --outfile outfile.dat\tFile to write statistics to\n\t\t-f, --format {csv,json}\t\tFormat to write statistics in\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/mischif/rstats-logreader", "keywords": "RStats", "license": "NPOSL-3.0", "maintainer": "", "maintainer_email": "", "name": "rstats-logreader", "package_url": "https://pypi.org/project/rstats-logreader/", "platform": "", "project_url": "https://pypi.org/project/rstats-logreader/", "project_urls": { "Homepage": "https://github.com/mischif/rstats-logreader" }, "release_url": "https://pypi.org/project/rstats-logreader/2.0.1/", "requires_dist": [ "codecov ; extra == 'test'" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4", "summary": "Read bandwidth logfiles in the RStats format and perform simple analysis/aggregation.", "version": "2.0.1" }, "last_serial": 5926550, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "306f898cb96ecf19c5c4d11808d9238c", "sha256": "7b974502ba6f532addf5473a17772a742b70edc77bff6199a4d3fc03ab55637c" }, "downloads": -1, "filename": "rstats_logreader-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "306f898cb96ecf19c5c4d11808d9238c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 11654, "upload_time": "2019-09-24T18:46:29", "url": "https://files.pythonhosted.org/packages/a7/e7/ca4bbd25d016e55cfb84fbafead2544a8d0880c8884a441e170e0937c216/rstats_logreader-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a9d7c85e285c5e21d70a55e4f13e5d5e", "sha256": "163acf4ad7c5e1b126daa45328ef5da47bb3ac51b29c191983fcf3429b06d010" }, "downloads": -1, "filename": "rstats-logreader-2.0.0.tar.gz", "has_sig": false, "md5_digest": "a9d7c85e285c5e21d70a55e4f13e5d5e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 13306, "upload_time": "2019-09-24T18:46:32", "url": "https://files.pythonhosted.org/packages/6a/f0/878771252ff81f9f4ff8b62f31d63973dc5489aaf7738f290b5190e0fb6a/rstats-logreader-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "376cb02ed9d57145b41e2342cf4b79cd", "sha256": "3c3f5d6374554e97e9e826fcf4fafb00ed8de6d019b73d79499e847029a617ec" }, "downloads": -1, "filename": "rstats_logreader-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "376cb02ed9d57145b41e2342cf4b79cd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4", "size": 11686, "upload_time": "2019-10-04T04:44:38", "url": "https://files.pythonhosted.org/packages/41/8a/3c3967c60e391ffa8ab2d768691c410567820dbe74c53627647905c6aae4/rstats_logreader-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d6c5493fd5271714de13f96c402aabc6", "sha256": "f04c802c34bc52364117012312fcca1afaf2ed5f899c2dc1bbd8b0d8b4e226c1" }, "downloads": -1, "filename": "rstats-logreader-2.0.1.tar.gz", "has_sig": false, "md5_digest": "d6c5493fd5271714de13f96c402aabc6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4", "size": 13374, "upload_time": "2019-10-04T04:44:40", "url": "https://files.pythonhosted.org/packages/85/35/010b5537faca13dec70220d45704aad4438be638671f44c0f102c291ee89/rstats-logreader-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "376cb02ed9d57145b41e2342cf4b79cd", "sha256": "3c3f5d6374554e97e9e826fcf4fafb00ed8de6d019b73d79499e847029a617ec" }, "downloads": -1, "filename": "rstats_logreader-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "376cb02ed9d57145b41e2342cf4b79cd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4", "size": 11686, "upload_time": "2019-10-04T04:44:38", "url": "https://files.pythonhosted.org/packages/41/8a/3c3967c60e391ffa8ab2d768691c410567820dbe74c53627647905c6aae4/rstats_logreader-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d6c5493fd5271714de13f96c402aabc6", "sha256": "f04c802c34bc52364117012312fcca1afaf2ed5f899c2dc1bbd8b0d8b4e226c1" }, "downloads": -1, "filename": "rstats-logreader-2.0.1.tar.gz", "has_sig": false, "md5_digest": "d6c5493fd5271714de13f96c402aabc6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4", "size": 13374, "upload_time": "2019-10-04T04:44:40", "url": "https://files.pythonhosted.org/packages/85/35/010b5537faca13dec70220d45704aad4438be638671f44c0f102c291ee89/rstats-logreader-2.0.1.tar.gz" } ] }