semvec/pypi-packages huggingface dataset:
lpb-lib 1
This package contains tools that will help me to develop my projects
Requires Python: >=3.10

# lpb_lib
This repo allows me to deploy the tools I need for my projects at LPB.

# Main features
*  big_query : This function allows me to query the data from BigQuery.
*  get_env : This function allows me to get the environment variables from .env file.
*  gmail : This function allows me to send emails using Gmail API.
*  gsheet : This function allows me to read and write data from Google Sheets.
*  geo : This function allows me to get the geolocation from latitude and longitude.
*  ai : This function allows me to use the AI models from OpenAI.
*  gdrive : This function allows me to list, download, and move file from Google Drive.
astronuts-python-reporter 0.0.4
A package to automate running pytest and transforming reports.

# Astronuts Python Reporter

Astronuts Reporter is a powerful tool that generates test reports. It's designed to be easy to use.

## Installation

To install Astronuts Reporter, open your terminal and run the following command:

### Using Pip
```bash
pip install astronuts-python-reporter
```



This command installs Astronuts Reporter as a development dependency in your project.

## Usage

To generate a test report, run the following command in your terminal:

```bash
astronuts-generate
```

This command tells Astronuts Reporter to start generating test reports.

## Integration with Build Scripts

You can also integrate Astronuts Reporter into your build scripts for automatic report generation. 
This can be particularly useful in continuous integration (CI) environments where tests are run automatically.

Add Astronuts Reporter to your requirements.txt file:
```bash
astronuts-python-reporter
```
Then, you can install this dependency in your workflow file (e.g., .yml):
```bash
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt
        
    - name: Generate reports
      run: |
       astronuts-generate
```

In this example, the pytest command runs the tests and generates a JUnit XML report. Astronuts Reporter then uses this report to generate a test report. Whenever your workflow runs the command astronuts-generate, Astronuts Reporter will automatically generate a test report.

### Please note that this library is to be used in conjunction with the Astronuts code quality action. You can download the app from the [Github](https://github.com/marketplace/actions/astronuts-code-quality-action).
abcDict 0.0.6
use yaml config easy
Requires Python: >=3.8

# abcDict

## example

```yaml
# abctest.yaml
path: ${ALLUSERSPROFILE}

info:
  none1: ''
  none2: None
  name: ${name}
  name_default: ${name|default:msbrm}
  age: ${age}
  age_default: ${age|default:18}
  age_default_int: ${age|default:18|type:int}

info_str: 我是name:${name},name_default:${name|default:$<name>},今年刚满age:${age},age_default:${age|default:18}岁
info_str2: ${HOME}xxxxxxx${age|default:18|type:int}xxxxxxx${HOME}
file_path: /home/${FILE|default:abc}/abc.test
```

```python
# abctest.py
import sys
from pathlib import Path

FILE_PATH = Path(__file__)

sys.path.append(str(FILE_PATH.parent.parent))

from src import AbcDict

yaml_file = FILE_PATH.with_suffix('.yaml')

abcDict = AbcDict(yaml_file)

print(abcDict.path)
print(abcDict.info.age_default_int)
print(type(abcDict.info.age_default_int))
print(abcDict)

abcDict.dump(yaml_file.with_stem('save'))  # save as save.yaml
```

```txt
# cmd output
> python .\test\abctest.py
C:\ProgramData
18
<class 'int'>
{'path': 'C:\\ProgramData', 'info': {'none1': '', 'none2': 'None', 'name': None, 'name_default': 'msbrm', 'age': None, 'age_default': '18', 'age_default_int': 18}, 'info_str': '我是name:None,name_default:$<name>,今年刚满age:None,age_default:18岁', 'info_str2': 'C:\\Users\\Administratorxxxxxxx18xxxxxxxC:\\Users\\Administrator', 'file_path': '/home/abc/abc.test'}
```

```yaml
# save.yaml
file_path: /home/abc/abc.test
info:
  age: null
  age_default: '18'
  age_default_int: 18
  name: null
  name_default: msbrm
  none1: ''
  none2: None
info_str: 我是name:None,name_default:$<name>,今年刚满age:None,age_default:18岁
info_str2: C:\Users\Administratorxxxxxxx18xxxxxxxC:\Users\Administrator
path: C:\ProgramData
```