semvec/pypi-packages huggingface dataset:
truenas-backup 1.0.0
CLI tool for backing up TrueNAS configurations.
Requires Python: >=3.12

# TrueNAS Backup Tool

A CLI tool for backing up TrueNAS configurations using the TrueNAS API. It initiates a config download via the API, saves the backup as a .tar.gz file, and manages retention by limiting the number of kept backups.

## Features
- Authenticates with TrueNAS using API key.
- Downloads configuration backups with optional inclusion of secretseed and root authorized keys.
- Saves backups to a specified directory (default: system temp directory, e.g., /tmp on Unix, %TEMP% on Windows).
- Automatic retention management to keep only the specified number of recent backups.
- Cross-platform compatible.
- CLI commands: `run` to perform a backup.

## Usage

No installation required. The tool can be run directly with uvx (requires uv installed):
```
uvx truenas-backup --url truenas.local --api-key your-api-key
```
Note: For uvx, provide options directly; .env files are not loaded automatically.

Optionally, export environment variables directly:
```
export TRUENAS_URL=truenas.local
export TRUENAS_API_KEY=your-api-key
export VERIFY_SSL=false
export MAX_BACKUPS=5
export SECRETSEED=false
export ROOT_AUTHORIZED_KEYS=false
```

### Perform a Backup
```
truenas run
```
This performs a backup using environment defaults (from exports or .env).

With options (overrides env vars):
```
truenas run --url truenas.local --api-key your-api-key --backup-dir /path/to/backups --max-backups 10 --secretseed --verify-ssl
```

Options:
- `--url TEXT`: TrueNAS URL (overrides `TRUENAS_URL`).
- `--api-key TEXT`: API key (overrides `TRUENAS_API_KEY`).
- `--verify-ssl / --no-verify-ssl`: Verify SSL (overrides `VERIFY_SSL`).
- `--max-backups INTEGER`: Max backups to keep (overrides `MAX_BACKUPS`).
- `--secretseed / --no-secretseed`: Include secretseed (overrides `SECRETSEED`).
- `--root-authorized-keys / --no-root-authorized-keys`: Include root keys (overrides `ROOT_AUTHORIZED_KEYS`).
- `--backup-dir TEXT`: Directory to save backups (default: system temp dir).

Output example:
```
Backup completed: {'filename': '/tmp/truenas-backup-20251023-232000.tar.gz', 'size': 123456, 'backups_kept': 5}
```


## Docker

The project includes a Dockerfile for containerized deployment.

Build the image:
```
docker build -t truenas-backup .
```

Run with environment and volume mount:
```
docker run -it --env-file .env -v /host/backups:/app/backups truenas-backup python main.py run --backup-dir /app/backups
```

For scheduled runs, use cron inside the container or host cron.

## Development

- Linting: `uv run ruff check .`
- Run tests: (Add tests as needed)

## License

MIT License - see [LICENSE](LICENSE) for details.
wsp-balsa 2.1.7
Python tools for travel demand forecasting applications and analyses
Requires Python: <3.14,>=3.7

# Balsa (wsp-balsa)

![PyPI - Version](https://img.shields.io/pypi/v/wsp-balsa)

Balsa is a collection of functions and tools for Python to facilitate travel demand forecasting applications and analyses. It is designed to work the the “scientific stack” of Python, namely NumPy, Pandas, and Matplotlib; which are optimized for speed and usability. Most of balsa consists of standalone functions - for input/output, for analysis, etc. - as well as a few lightweight class-based data structures for specific applications.

> [!IMPORTANT]
> As of v2.0, this package is imported using `wsp_balsa` instead of `balsa`

## Key features

- I/O routines to convert from binary matrix formats (INRO, OMX, and more) to Pandas DataFrames and Series
- Matrix operations such as balancing, dis/aggregation, triple-indexing, and bucket rounding
- Plotting functions such a Trip Length Frequency Distributions
- Pretty Logging utilities for use in program applications
- and more!

Balsa is compatible with Python 3.7+

## Installation

> [!NOTE]
> **For TRESO v1.4 (and older) users:** TRESO is only compatible with the [`v0.6.1`](https://github.com/wsp-sag/balsa/releases/tag/v0.6.1) release of Balsa, which can only be installed directly from GitHub using `pip`.

Balsa can be installed with the following command:

```batch
pip install wsp-balsa
```

### With `pip` directly from GitHub

Balsa can be installed directly from GitHub using `pip` by running the following command:

```batch
pip install git+https://github.com/wsp-sag/balsa.git
```
oshconnect 0.3.0a5.post1
Library for interfacing with OSH, helping guide visualization efforts, and providing a place to store configurations.
Requires Python: <4.0,>=3.12

# OSHConnect-Python

Library for communicating with Opensensorhub that provides options for saving configurations, getting visualization 
recommendations for data, retrieving data in real time, archival streams, and batch modes, and more.

API Documentation available [here](https://botts-innovative-research.github.io/OSHConnect-Python/)

Links:  
 * [Architecture Doc](https://docs.google.com/document/d/1pIaeQw0ocU6ApNgqTVRZuSwjJAbhCcmweMq6RiVYEic/edit?usp=sharing)
 * [UML Diagram](https://drive.google.com/file/d/1FVrnYiuAR8ykqfOUa1NuoMyZ1abXzMPw/view?usp=drive_link)
ghostfolio 0.8.0
Python API client for Ghostfolio
Requires Python: >=3.10

# Rest API client for Ghostfolio

Unofficial REST API for [Ghostfolio](https://ghostfol.io/).

Supports documented and undocumented APIs

## Installation

```bash
pip install ghostfolio
```

## Usage

```python
from ghostfolio import Ghostfolio

client = Ghostfolio(token="your_token")

```

Or if you want to connect to your self-hosted Ghostfolio instance:

```python
from ghostfolio import Ghostfolio

client = Ghostfolio(token="your_token", host="https://your-ghostfolio-instance.com")
```

## Generate Documentation

```shell
pdoc --html --output-dir docs ghostfolio --force
```