semvec/pypi-packages huggingface dataset:
lb-telemetry 0.5.0
A utility for logging telemetry data from LHCb packages to MONIT

# lb-telemetry

A utility for logging telemetry data about LHCb packages to [MONIT](https://monit.web.cern.ch/).
Usage data graphs specific to each package can be viewed on the [MONIT Grafana](https://monit-grafana.cern.ch/d/Q78h6E-nz/home?orgId=46).

The package is not user-callable. It is intended to be imported and called by other LHCb packages such as [PIDCalib2](https://gitlab.cern.ch/lhcb-rta/pidcalib2).

## Setup

### Installing from PyPI

The package is available on [PyPI](https://pypi.org/project/lb-telemetry/).
It can be installed on any computer via `pip` by running (preferably in a [virtual environment](https://docs.python.org/3/library/venv.html)):
```sh
pip install lb-telemetry
```

## Usage

### Adding to a package

```python
from lb_telemetry import Logger

# Time execution (optional)
start_time = time.perf_counter()
do_some_task()
exec_time = time.perf_counter() - start_time

telemetry = {
    "exec_time": exec_time,
    "version": VERSION,
    "some_field": "field_value",
    "some_tag": "tag_value",
}

Logger().log_to_monit(
    "NameOfThisPackage",  # Or other readable identifier
    telemetry,
    tags=["version", "some_tag"],  # `exec_time` and `some_field` interpreted as fields
)
```

### Running the CLI

The default value for `--table` is 'CLI'.
```commandline
lb-telemetry send '{"test_field": "test_value"}' --include-host-info
```

Tags can be specified by:
```commandline
lb-telemetry send '{"field1": 0, "tag1": 5, "tag2": 2}' --table some_table --tags tag1 tag2
```

### Viewing the telemetry

Logged telemetry is usually visible in under a minute and can be accessed via this [Grafana dashboard](https://monit-grafana.cern.ch/d/vQC-V7C4k/lb-telemetry?orgId=46&from=now-30d&to=now). Request permission to edit the dashboard from an LHCb Grafana org admin if necessary. Then create a new row on the dashboard for your package and add the desired graphs.
sacool-plugin 1.0.1
An sacool-plugin for vacation SACOOLPY
Requires Python: >=3.6

!]111aq# About
---

Write a detailed description of your Python Package here!

Need a Markdown Guide? You can find a guide at [Github-flavored Markdown](https://guides.github.com/features/mastering-markdown).

You can also find more information about packaging at [Python Packaging User Guide](https://packaging.python.org/tutorials/packaging-projects/).
michael-pan-print-lib 3.0
change output style

# 改变控制台输出样式库(Changing the console output style library)

## 1.简介(Introduction)

> 使用者你好，我是这个库的作者。你是否还在为枯燥无味的编程而烦恼，你是否已经习惯了毫无色彩的黑白控制台输出，你是否还在为代码哪块出bug而不知所措，运用该库就可以完美的解决这些问题。这个库依托于colorama库和datetime库，在打印需要输出的信息时会自动在前面加上运行的文件名称与代码行数，同时改变输出颜色。
>
> Hello user, I am the author of this library. Are you still troubled by boring programming, are you used to the colorless black and white console output, are you still at a loss for which part of the code has a bug, using this library can perfectly solve these problems . This library relies on the colorama library and datetime library. When printing the information to be output, it will automatically add the name of the running file and the number of lines of code in front, and change the output color at the same time.

## 2.使用方法(Use method)

```python
# pip install michael-pan-print-lib
from michael-pan-print-lib.change_print import print_with_style
print_with_style('what you want to output', color=color='red')  # color also have black,white,magenta,green,etc
```

## 3.联系方式(Contact information)

```python
# ***************************************************************
# Maintainers:
#     chuntong pan <panzhang1314@gmail.com>
# Date:
#     2023.7
# ***************************************************************
```