{ "info": { "author": "Axel Juraske", "author_email": "axel.juraske@short-report.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.7", "Topic :: Communications", "Topic :: Internet :: WWW/HTTP" ], "description": "# short-report-client\n\nThis is a small client for short-report. I write this client and Short-Report to\ntry out some python packages and frameworks. If you find something what's wrong,\nfeel free to contact me. \n\nAfter you have log in, Short-Report give you a token. So you only have to log in\nonce. Only the token is saved in a file, not the password. Every log in change\nthe token. If you run a scrip on one mashine and log in an other mashien. The\ntoken of the first one are not longer valid.\n\n## Install\nInstall requirements\n```{r, engine='bash', count_lines}\nsudo apt update && sudo apt -y upgrade\nsudo apt install -y python3-pip\nsudo -H pip3 install --upgrade pip\n```\nYou can clone the repo:\n```{r, engine='bash', count_lines}\ncd\npython3 -m venv venv\nsource venv/bin/activate\ngit clone https://github.com/axju/short-report-client\ncd short-report-client\npip install -e .\n```\n\n## Setup server with supervisor\nInstall and setup requirements\n```{r, engine='bash', count_lines}\nsudo apt -y install supervisor\nsudo systemctl enable supervisor\nsudo systemctl start supervisor\n```\nLogin to generate the token:\n```{r, engine='bash', count_lines}\nshort-report-client -u \"usernam\" -p \"password\"\n```\nCreate the config file for supervisor:\n```{r, engine='bash', count_lines}\nmkdir ~/logs\nsudo nano /etc/supervisor/conf.d/short-report-client.conf\n```\nWith the following, change the user and stdout_logfile:\n```{r, engine='text', count_lines}\n[program:short-report-client]\ncommand=/home/user/venv/bin/short-report-client -t 60\nuser=user\nautostart=true\nautorestart=true\nredirect_stderr=true\nstdout_logfile=/home/user/logs/s-r-client.log\n```\nActive the settings and check the status\n```{r, engine='bash', count_lines}\nsudo supervisorctl reread\nsudo supervisorctl update\nsudo supervisorctl status short-report-client\n```\n\n\nTODO:\n 1. Check if the api has rights to push data to the server.\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/axju/short-report-client", "keywords": "REST client coreapi short report", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "srclient", "package_url": "https://pypi.org/project/srclient/", "platform": "", "project_url": "https://pypi.org/project/srclient/", "project_urls": { "Homepage": "https://github.com/axju/short-report-client" }, "release_url": "https://pypi.org/project/srclient/0.0.1/", "requires_dist": [ "argparse", "bs4", "coreapi", "requests" ], "requires_python": "", "summary": "A small client for short-report.", "version": "0.0.1" }, "last_serial": 3679629, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b8c9ce63cfc59cbaeb66f54c014f13e2", "sha256": "b927e3c3782af1dbce364ebdcfda2d91f8d5bc7651b043a190f61d8223260177" }, "downloads": -1, "filename": "srclient-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b8c9ce63cfc59cbaeb66f54c014f13e2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7847, "upload_time": "2018-03-17T20:58:12", "url": "https://files.pythonhosted.org/packages/ec/c8/aa0f288b323200ca27bc0d7863afbe6eb4f7dc1cc1146da7779023712e7d/srclient-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "daf80724364e5517941132902c5ac19c", "sha256": "e2b8dd0b8ebb2864b9ef7b61dff83965e2df1ab67db569aa0b6f484a1b195e2e" }, "downloads": -1, "filename": "srclient-0.0.1.tar.gz", "has_sig": false, "md5_digest": "daf80724364e5517941132902c5ac19c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5152, "upload_time": "2018-03-17T20:58:13", "url": "https://files.pythonhosted.org/packages/99/e7/e4a6b5ceb252307ce1c4661b3163b5904359b0818d9846d47e8ecbd4b251/srclient-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8c9ce63cfc59cbaeb66f54c014f13e2", "sha256": "b927e3c3782af1dbce364ebdcfda2d91f8d5bc7651b043a190f61d8223260177" }, "downloads": -1, "filename": "srclient-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b8c9ce63cfc59cbaeb66f54c014f13e2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7847, "upload_time": "2018-03-17T20:58:12", "url": "https://files.pythonhosted.org/packages/ec/c8/aa0f288b323200ca27bc0d7863afbe6eb4f7dc1cc1146da7779023712e7d/srclient-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "daf80724364e5517941132902c5ac19c", "sha256": "e2b8dd0b8ebb2864b9ef7b61dff83965e2df1ab67db569aa0b6f484a1b195e2e" }, "downloads": -1, "filename": "srclient-0.0.1.tar.gz", "has_sig": false, "md5_digest": "daf80724364e5517941132902c5ac19c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5152, "upload_time": "2018-03-17T20:58:13", "url": "https://files.pythonhosted.org/packages/99/e7/e4a6b5ceb252307ce1c4661b3163b5904359b0818d9846d47e8ecbd4b251/srclient-0.0.1.tar.gz" } ] }