dw-client-0.0.3
توضیحات
Client library for DeskWatch
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dw-client-0.0.3 |
| نام | dw-client |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kohinoor Bharti |
| ایمیل نویسنده | kohinoorbharti7@gmail.com |
| آدرس صفحه اصلی | https://deskwatch.net/ |
| آدرس اینترنتی | https://pypi.org/project/dw-client/ |
| مجوز | - |
dw-client
=========
[](https://github.com/DeskWatch/dw-client/actions)
[](https://pypi.org/project dw-client/)
[](https://github.com/psf/black)
[](http://mypy-lang.org/)
[**Documentation**](https://deskwatch.readthedocs.io/en/latest/)
Client library for DeskWatch in Python.
Please see the documentation for usage and examples.
## How to install
To install the latest git version directly from github without cloning, run
`pip install git+https://github.com/DeskWatch/dw-client.git`
To install from a cloned version, cd into the directory and run
`poetry install` to install inside an virtualenv. If you want to install it
system-wide it can be installed with `pip install .`, but that has the issue
that it might not get the exact version of the dependencies due to not reading
the poetry.lock file.
## Debugging
* Run python with `LOG_LEVEL=debug` to get additional debugging output
* If invalid events have been queued for submission, you may need to delete the file-based queues generated by this library
* To use the development version of this library use `dw-client = {path = "../dw-client" }` in `pyproject.toml`
## Examples
The `examples/` directory contains a couple of example scripts, including:
- `time_spent_today.py` - fetches all non-afk events and sums their duration to get the total active time for the day.
- `merge_buckets.py` - merges two buckets with non-intersecting events by moving all events from one into the other.
- `redact_sensitive.py` - redact sensitive events.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.0.3 | dw-core |
| <9.0,>=8.0 | click |
| <0.7.0,>=0.6.0 | persist-queue |
| <3.0,>=2.22 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl dw-client-0.0.3:
pip install dw-client-0.0.3.whl
نصب پکیج tar.gz dw-client-0.0.3:
pip install dw-client-0.0.3.tar.gz