semvec/pypi-packages huggingface dataset:
sys-vars 5.1.0
Access system variables in your code as native Python data types.
License: MIT
Requires Python: <4.0,>=3.8

# sys-vars

> Access system variables in your code as native Python data types.

## Usage

Requires Python 3.8+

Load system variables for used in applications as secrets, variables, and other related contexts as
native Python data types. Searches for a file in `SYS_VARS_PATH`, falling back to `os.enviorn`.
If the package is installed with the `dotenv` extra (`pip install sys-vars[dotenv]`), there is a
final check in the contents of a `.env` file located in `SYS_VARS_PATH`, if one exists.

`SYS_VARS_PATH` must be a defined OS environment variable that is set
before app start. If it is not found, a `KeyError` exception will be raised.


```python
import sys_vars


# Returns <class 'str'>
# Default values can be specified if the key is missing
sys_vars.get("HOST_ADDRESS", default="localhost")

# Returns <class 'bool'>
# Default values are supported for casting methods too
# Also treats "t", "true", "y", "yes" as True value
sys_vars.get_bool("DEBUG_MODE", default=False)

# Returns <class 'datetime.datetime'>
sys_vars.get_datetime("LAST_SYNC_RUN")

# Returns <class 'float'>
sys_vars.get_float("pi")

# Returns <class 'int'>
sys_vars.get_int("THE_MEANING_OF_LIFE")

# Returns <class 'dict'> or <class 'list'>
# Automatically decodes JSON strings into dictionaries/lists
sys_vars.get_json("CONFIGURED_TERMS")

# Returns <class 'pathlib.Path'>
sys_vars.get_path("CONFIG_PATH")

# Raises `sys_vars.SysVarNotFoundError`
sys_vars.get("DOES_NOT_EXIST")
```

## Building

1. Install [Poetry](https://python-poetry.org/) 1.6.0+
1. Run `poetry install`
1. Run `poetry build`
1. Tests can be run via the provided VS Code test runner config.

The resulting `.whl` file will be located at
`./dist/sys_vars-<x.y.z>-py3-none-any.whl`
myanonamouse 0.1.2
Python client for the MyAnonaMouse API
License: MIT
Requires Python: <4.0,>=3.8

# Usage

```
from myanonamouse import MamApi

api = MamApi("your mam_id here")

api.set_seedbox_ip()

print(api.load_user_data(snatch_summary=True))

torrents = api.torrent_search("", tor={
    "main_cat": 13,
}, limit=1000)

total_size = 0
for i, torrent in enumerate(torrents):
    size = human_read_to_byte(torrent["size"])
    total_size += size
    print(i, torrent["title"], torrent["size"], f"total size: {total_size / 1024 / 1024 / 1024:.2f} GB")

```
pyhaversion 24.6.1
Get the latest Home Assistant version from various sources.
License: MIT
Requires Python: <4.0,>=3.12
Keywords: homeassistant, version, update

# pyhaversion

[![codecov](https://codecov.io/gh/ludeeus/pyhaversion/branch/main/graph/badge.svg)](https://codecov.io/gh/ludeeus/pyhaversion)
![python version](https://img.shields.io/badge/Python-3.12-blue.svg)
[![PyPI](https://img.shields.io/pypi/v/pyhaversion)](https://pypi.org/project/pyhaversion)
![Actions](https://github.com/ludeeus/pyhaversion/workflows/Actions/badge.svg?branch=main)

_Get the latest Home Assistant version from various sources._

## Installation

```bash
python3 -m pip install pyhaversion
```

Look at the file `example.py` for a usage example.


## Contribute

**All** contributions are welcome!

1. Fork the repository
2. Clone the repository locally and open the devcontainer or use GitHub codespaces
3. Do your changes
4. Lint the files with `scrtips/lint`
5. Ensure all tests passes with `scripts/test`
6. Ensure 100% coverage with `scripts/coverage`
7. Commit your work, and push it to GitHub
8. Create a PR against the `main` branch
rpmlint-codeclimate 0.2.1
Codeclimate parser for rpmlint
License: MIT
Requires Python: >=3.6

# rpmlint-codeclimate

This project provides a Python-based parser for rpmlint to write
CodeClimate-format reports, mainly to assist using rpmlint in
Gitlab CI/CD pipelines.

## Install

```shell
python -m pip install rpmlint-codeclimate
```

## Usage

Just pipe the output of `rpmlint --info` to the `rpmlint_codeclimate` module.

```shell
rpmlint --info *.rpm | python -m rpmlint_codeclimate
```