Skip to main content

High-level library for NREL's SAM Simulation Core (SSC)

Project description

samlib

Samlib is a high-level Python wrapper to the SAM SSC library from the SAM SDK.

Overview

Samlib uses cffi to build Pythonic library bindings to the SAM SSC library. It includes mypy stubs for static type analysis and code completion.

Example

import samlib
from samlib.modules import pvsamv1

wfd = samlib.Data()  # weather forecast data
wfd.lat = 38.743212
wfd.lon = -117.431238
...

data = pvsamv1.Data()
data.solar_resource_data = wfd
data.use_wf_albedo = 0
...

module = pvsamv1.Module()
module.exec(data)

# Use results in data

License

Samlib is provided under a BSD 3-Clause license.

The SAM SSC, distributed in binary form in samlib wheels, is also licensed under a BSD 3-clause license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

samlib-0.3.0.240.tar.gz (344.3 kB view hashes)

Uploaded Source

Built Distributions

samlib-0.3.0.240-cp310-cp310-manylinux2010_x86_64.whl (10.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

samlib-0.3.0.240-cp310-cp310-macosx_10_9_x86_64.whl (9.2 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

samlib-0.3.0.240-cp39-cp39-manylinux2010_x86_64.whl (10.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

samlib-0.3.0.240-cp39-cp39-macosx_10_9_x86_64.whl (9.2 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

samlib-0.3.0.240-cp38-cp38-manylinux2010_x86_64.whl (10.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

samlib-0.3.0.240-cp38-cp38-macosx_10_9_x86_64.whl (9.2 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

samlib-0.3.0.240-cp37-cp37m-manylinux2010_x86_64.whl (10.0 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

samlib-0.3.0.240-cp37-cp37m-macosx_10_9_x86_64.whl (9.2 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page