Skip to main content

sscpy

PyPI version

Python bindings to SAM Simulation Core (SSC)

Installation

Requirements

pip install sscpy

Installing from Github

pip install git+https://github.com/StationA/sscpy.git#egg=sscpy

Installing from source

git clone https://github.com/StationA/sscpy.git
cd sscpy
pip install .

Usage

Example running PVWatts (v7)

from ssc.api import PVWatts

pvwatts = PVWatts()
params = {
    'solar_resource_file': 'weather_data.csv',
    'system_capacity': 1.0,
    'losses': 14.0,
    'array_type': 0,
    'tilt': 20,
    'azimuth': 180,
    'adjust:constant': 0
}
results = pvwatts.run(**params)

for output in results['ac']:
    print(output)

Contributing

When contributing to this repository, please follow the steps below:

  1. Fork the repository
  2. Submit your patch in one commit, or a series of well-defined commits
  3. Submit your pull request and make sure you reference the issue you are addressing

Installing for development

pip install --editable .

Running tests

tox -e dev

Metadata

Release files for sscpy 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sscpy 0.2.1
File Size Uploaded Provenance Actions
sscpy-0.2.1.tar.gz 13.6 kB Without provenance Details for sscpy-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sscpy 0.2.1
File Interpreter ABI Platform Actions
sscpy-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for sscpy-0.2.1-py2.py3-none-any.whl

Total release size: 26.8 kB

Release files / sscpy-0.2.1.tar.gz

Download URL sscpy-0.2.1.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e5607f50aaa0932559e64f2a5ada99e6eae4cdd9d97dfaeaee627e6ce59bf0a4
BLAKE2b-256 checksum
How to use checksums
198776474067fe9f7dd2c69567705a7b74138523f0b38e5693ff3a10ba14984f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

Release files / sscpy-0.2.1-py2.py3-none-any.whl

Download URL sscpy-0.2.1-py2.py3-none-any.whl
Size 13.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6855a15ad6d76a44cef2612663b535565f8650f156e8d35c1c3658d68355cb79
BLAKE2b-256 checksum
How to use checksums
d558321b004a28b56c8731abe1d24131381fb29043db284bcdade9750540cf9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

Security for sscpy 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page