semvec/pypi-packages huggingface dataset:
toolsos 0.4.0
OS tools
Requires Python: >=3.10
Keywords: tools, Onderzoek & Statistiek

# Tools Onderzoek & Statistiek

This package contains the tools used by the data scientists/researchers working at Onderzoek & Statistiek.

## Tools

- Huisstijl:
  - Tables: create `huisstijl` formatted excel files
  - Huisstijl: create `huisstijl` figures
- Database
  - Database connection: tools to connect to database
  - Database transfer: easily transfer tables between databases using sqlalchemy to reflect metadata
- Download: quickly download specific branch of repo to local folder
- Geo: some helpers to download geo data
- Polars helpers:
- Create tables: create tables that can be published with custom rounding

## Installation instructions

The package can be installed using:
    - pip
      - Use pip install "toolsos[all]". This will install the package including all the dependencies
    - conda.
      - Use pip install toolsos. The user has to download the dependencies themselves. At a later stage we might native support for conda

## Building the package

Instructions on building a package can be found [here](https://packaging.python.org/en/latest/tutorials/packaging-projects/)

- py -m pip install --upgrade build
- py -m build

## Uploading the package to PyPi

- make a pypi account
- ask to be added as collaborator to toolsos
- first update twine: py -m pip install --upgrade twine
- upload to pypi: twine upload dist/* --skip-existing

## Install to local enviroment for testing

- python -m venv local (maak een lokale venv aan)
- local\Scripts\activate (activeer de venv)
- pip install -e . (installer toolsos)
- pip install -r local_requirements.txt (installeer de benodigde dependencies)
test-for-ppe 1.0.0
POC package (beacon-only)
Requires Python: >=3.6


Hi Team,

This package `test-for-ppe` is **for testing purposes only**. It does **not contain any malicious code**.

It is designed to simulate a **pipeline poisoning attack** for testing. If someone installs this package, it will **only collect the IP address of the installing machine** for testing and verification purposes.

Use this package responsibly and only in a controlled testing environment.
cli-pydantic 0.2.1
Add your description here
Requires Python: >=3.12

# cli-pydantic

Turn a Pydantic model into a CLI. I dislike every other CLI library so here's yet another one.

- CLI defined by Pydantic
- Use multiple YAML / JSON configs with `--flag` CLI overrides.

## Install

```
pip install cli-pydantic
```

## Usage

```python
from pydantic import BaseModel, Field
from cli_pydantic import cli

class Data(BaseModel):
    path: str = "./data"
    splits: list[str] = ["train", "val"]

class Model(BaseModel):
    arch: str = "resnet50"
    lr: float = 1e-3
    layers: list[int] = [64, 128, 256]

class Config(BaseModel):
    data: Data = Data()
    model: Model = Model()
    epochs: int = 10
    profile: bool = Field(False, description="dump chrome trace")

cfg = cli(Config, desc="Training pipeline")
```

```bash
# CLI, use default from Pydantic
python train.py --model.arch vit_base --model.lr 3e-4 --epochs 50

# From a config file
python train.py base.yaml

# Layer multiple configs, then override with flags
python train.py base.yaml fast.yaml --model.lr 0.05 --epochs 3

# Lists and booleans
python train.py --model.layers 16,32 --profile
```

## Semantics:

- Use `--foo bar` or `--foo=bar`
- For lists: `--nums=1,2,3` or `--nums 1 --nums=2 --nums 3`
- For bools: `--enable` / `--no-enable`
- Lists will _replace_ previous configs on override -- not append!

## Automatic help

```bash
$ python train.py --help
help: Training pipeline

usage: train.py [-h] [configs ...] [--overrides ...]

config arguments:
  --data.path str          (default: ./data)
  --data.splits list[str]  (default: ['train', 'val'])
  --model.arch str         (default: resnet50)
  --model.lr float         (default: 0.001)
  --model.layers list[int] (default: [64, 128, 256])
  --epochs int             (default: 10)
  --verbose bool           dump chrome trace (default: False)
```
connections-sdk 3.2.2
A Python SDK for payment processing
Requires Python: >=3.8

# Connections SDK

The Connections SDK simplifies payment processing by providing a unified interface to multiple payment providers. It uses Basis Theory for secure card tokenization and supports multiple payment processors.

## Features

- Unified payment processing interface
- Support for multiple payment providers
- Support for one-time payments and card-on-file transactions
- 3DS authentication support
- Comprehensive error handling and categorization
- [Providers](./docs/providers/index.md) documentation for each provider supported by the SDK.

## Installation

```bash
pip install connections_sdk
```

## Quick Start

```python
from connections_sdk import Connections
from connections_sdk.models import RecurringType

# Initialize the SDK with your chosen provider
sdk = Connections({
    'is_test': True,  # Use test environment
    'bt_api_key': 'YOUR_BASIS_THEORY_API_KEY',
    'provider_config': {
        # Configure your chosen provider
        'adyen': {
            'apiKey': 'YOUR_PROVIDER_API_KEY',
            'merchantAccount': 'YOUR_MERCHANT_ACCOUNT',
        }
    }
})

# Create a transaction request
transaction_request = TransactionRequest(
    reference='unique-transaction-reference',
    type=RecurringType.ONE_TIME,
    amount=Amount(
        value=1000,  # Amount in cents
        currency='USD'
    ),
    source=Source(
        type=SourceType.BASIS_THEORY_TOKEN,
        id='YOUR_BASIS_THEORY_TOKEN_ID',
        store_with_provider=False
    ),
    customer=Customer(
        reference='customer-reference'
    )
)

# Process the transaction with your chosen provider
response = sdk.adyen.create_transaction(transaction_request)  # Use sdk.<provider>.transaction()
```

## Documentation

- [Getting Started](./docs/getting-started.md)
- [Authentication](./docs/authentication.md)
- [Processing Payments](./docs/processing-payments.md)
- [Error Handling](./docs/error-handling.md)
- [API Reference](./docs/api-reference.md)
- [Providers](./docs/providers/index.md)

## Support

For support, please contact [support@basistheory.com](mailto:support@basistheory.com) or open an issue on GitHub.