Metadata-Version: 2.4
Name: daly-energy
Version: 1.0.0
Summary: Python SDK client for the Daly Energy REST API
Project-URL: Homepage, https://dalyenergy.com
Project-URL: Repository, https://github.com/dalyhq/daly-energy
Project-URL: Documentation, https://docs.dalyenergy.com
Project-URL: Bug Tracker, https://github.com/dalyhq/daly-energy/issues
Author-email: Daly Energy <dev@dalyenergy.com>
License-Expression: MIT
Keywords: energy-modeling,photovoltaic,pv,sdk,solar
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: httpx<1,>=0.26
Requires-Dist: pydantic<3,>=2.5
Provides-Extra: dev
Requires-Dist: mypy<2,>=1.8; extra == 'dev'
Requires-Dist: ruff<1,>=0.2; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest-cov<5,>=4.1; extra == 'test'
Requires-Dist: pytest<9,>=8.0; extra == 'test'
Description-Content-Type: text/markdown

# daly-energy

Python SDK client for the [Daly Energy](https://dalyenergy.com) REST API.

## Installation

```bash
pip install daly-energy
```

## Quick Start

```python
from dalysdk import DalyClient

client = DalyClient(
    workspace_api_key="wk_...",
    user_api_key="uk_...",
)

# List locations
locations = client.locations.list()

# Create a project
project = client.projects.create({
    "name": "My Solar Project",
    "location_index": 1,
})

# Always close when done
client.close()
```

Or use as a context manager:

```python
with DalyClient(workspace_api_key="wk_...", user_api_key="uk_...") as client:
    projects = client.projects.list()
```

## Resources

The client exposes the following resource namespaces:

- `client.locations` — Location management
- `client.projects` — Project CRUD
- `client.modules` — PV module library
- `client.inverters` — Inverter library
- `client.energy_models` — Energy model runs
- `client.shading_scenes` — 3D shading analysis
- `client.weather_data` — Weather data management
- `client.tasks` — Async task tracking
- `client.workflows` — Multi-step workflow orchestration
- `client.workspaces` — Workspace management

## License

MIT
