semvec/pypi-packages huggingface dataset:
perry-py-lib-template 0.1.6
Test Python library
License: MIT
Requires Python: >=3.8

# Py Lib Template

A Python library template with modern packaging setup for PyPI publishing.

## Installation

```bash
pip install py-lib-template
```

## Usage

### Basic Addition

```python
from lib import add

# Add two numbers
result = add(1, 2)
print(result)  # 3

# Works with floats too
result = add(1.5, 2.5)
print(result)  # 4.0
```

### Adding Multiple Numbers

```python
from lib import add_many

# Add multiple numbers
result = add_many(1, 2, 3, 4, 5)
print(result.value)     # 15
print(result.operands)  # [1, 2, 3, 4, 5]
```

## Development

### Setup

```bash
# Create virtual environment
python -m venv venv

# Activate (Windows)
venv\Scripts\activate

# Activate (Unix/Mac)
source venv/bin/activate

# Install in development mode
pip install -e ".[dev]"
```

### Build

```bash
# Build the package
python build_lib.py

# Or manually
python -m build --outdir pypi_publish
```

### Test

```bash
pytest
```

### Lint & Format

```bash
# Format code
black lib tests

# Lint
ruff lib tests

# Type check
mypy lib
```

### Publish

```bash
# Build first
python build_lib.py

# Publish to PyPI (requires credentials)
cd pypi_publish
python -m twine upload *
```

## Project Structure

```
py_lib_template/
├── lib/                    # Library source code
│   ├── __init__.py        # Package entry point
│   └── math_utils.py      # Example module
├── pypi_publish/          # Build artifacts (wheel, sdist)
├── tests/                 # Test files
├── pyproject.toml         # Package configuration
└── README.md
```

## License

MIT
infrablocks.terraform_pkl_type_gen 0.0.2
Provides invoke tasks to interact with terraform
License: MIT
Requires Python: <4.0,>=3.13

# Terraform Pkl Type Gen

A library for creating Pkl types from Terraform variables definitions.

## Development

For the best developer experience make sure you have `direnv` and `asdf` installed.

Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/infrablocks/terraform_pkl_type_gen.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
Contributor Covenant code of conduct.

License
Copyright © 2025 InfraBlocks Maintainers

Distributed under the terms of the MIT License.