# short-report-client
This is a small client for short-report. I write this client and Short-Report to try out some python packages and frameworks. If you find something what’s wrong, feel free to contact me.
After you have log in, Short-Report give you a token. So you only have to log in once. Only the token is saved in a file, not the password. Every log in change the token. If you run a scrip on one mashine and log in an other mashien. The token of the first one are not longer valid.
## Install Install requirements `{r, engine='bash', count_lines} sudo apt update && sudo apt -y upgrade sudo apt install -y python3-pip sudo -H pip3 install --upgrade pip ` You can clone the repo: `{r, engine='bash', count_lines} cd python3 -m venv venv source venv/bin/activate git clone https://github.com/axju/short-report-client cd short-report-client pip install -e . `
## Setup server with supervisor Install and setup requirements `{r, engine='bash', count_lines} sudo apt -y install supervisor sudo systemctl enable supervisor sudo systemctl start supervisor ` Login to generate the token: `{r, engine='bash', count_lines} short-report-client -u "usernam" -p "password" ` Create the config file for supervisor: `{r, engine='bash', count_lines} mkdir ~/logs sudo nano /etc/supervisor/conf.d/short-report-client.conf ` With the following, change the user and stdout_logfile: `{r, engine='text', count_lines} [program:short-report-client] command=/home/user/venv/bin/short-report-client -t 60 user=user autostart=true autorestart=true redirect_stderr=true stdout_logfile=/home/user/logs/s-r-client.log ` Active the settings and check the status `{r, engine='bash', count_lines} sudo supervisorctl reread sudo supervisorctl update sudo supervisorctl status short-report-client `
- TODO:
Check if the api has rights to push data to the server.
Metadata
Release files for srclient 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| srclient-0.0.1.tar.gz | 5.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| srclient-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / srclient-0.0.1.tar.gz
| Download URL | srclient-0.0.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2b8dd0b8ebb2864b9ef7b61dff83965e2df1ab67db569aa0b6f484a1b195e2e
|
|
BLAKE2b-256 checksum How to use checksums |
99e7e4a6b5ceb252307ce1c4661b3163b5904359b0818d9846d47e8ecbd4b251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / srclient-0.0.1-py2.py3-none-any.whl
| Download URL | srclient-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b927e3c3782af1dbce364ebdcfda2d91f8d5bc7651b043a190f61d8223260177
|
|
BLAKE2b-256 checksum How to use checksums |
ecc8aa0f288b323200ca27bc0d7863afbe6eb4f7dc1cc1146da7779023712e7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for srclient 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.