Metadata-Version: 2.4
Name: piwebapiconnect
Version: 0.1.0
Summary: A professional library for PI Web API integration
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.26.0
Requires-Dist: pydantic-settings>=2.1.0
Requires-Dist: python-dotenv>=1.0.0

# piwebapiconnect

A professional Python library for PI Web API integration.

## Installation

```bash
pip install -e ./piwebapiconnect
```

## Usage

### Using .env file
```python
from piwebapiconnect import get_service
service = get_service()
```

### Passing credentials directly
```python
from piwebapiconnect import get_service

service = get_service(
    url="https://your-pi-server/piwebapi",
    username="domain\\user",
    password="your-password",
    server_name="PISERVER01",
    verify_ssl=False  # Optional
)

async def main():
    val = await service.get_current_value("YourTagName")
    print(val)
```
