Skip to main content

:zap:sting:zap:

Welcome! This repository contains sting—Specialized Tool for INverter-based Grids. STING is an open-source software that is able to run:

  • AC Power Flow
  • Stochastic capacity expansion
  • Kron reduction
  • Large-scale model reduction
  • Small-signal modeling
  • Electromagnetic simulation

Installation

STING is now available on PyPI (https://pypi.org/project/sting-py/)! To get the latest version of STING please install in Editable Mode, rather than through PyPI.

[!WARNING]
STING has been packaged under the name sting-py.

To install using pip use:

pip install sting-py

Installing STING in Editable Mode

  1. Download STING: Make sure you have python3.13 installed on your computer. Using pyenv can be helpful for managing multiple versions of python on your PC. Start by cloning this repository and navigating into the STING directory.

    git clone https://github.com/REAM-lab/sting
    cd sting
    

    Next, create a virtual environment and download all required packages.

    python3.13 -m venv .venv 
    source .venv/bin/activate
    pip install -e .  
    

    To install all optional dependencies, run pip install -e ".[all]". This will install extra packages necessary for optimization, specifically solvers.

  2. Run sting: To ensure that sting was installed correctly navigate to the examples folder. You will see examples for different modules. Find the file run.py and execute it.

Installing STING in Project Configuration

For research projects we recommend creating a separate directory for your project files and scripts—isolating them from the source files of STING. To install and configure STING in this manner perform the following steps.

  1. Download STING: If you haven't already, install python3.13 and clone STING
    git clone https://github.com/REAM-lab/sting
    
  2. Project Installation: In the same parent directory of STING, create a new directory for your project—for instance my_project. Then install all packages from STING in a virtual environment
    mkdir my_project
    cd my_project
    python3.13 -m venv .venv 
    source .venv/bin/activate
    pip install -e ../sting/.
    
  3. Visual Studio Code (Optional): If you are using Visual Studio Code as a text editor you can add STING as an "extra path". To do so go to Preferences > Settings and search for extra paths. Under Python > Analysis: Extra Paths add the global path of STING on your machine—for instance Users/your_name/python/sting.

Solvers

Most of modules additionally require commercial or open-source solvers to run various optimization models. For example, solving optimal power flow is needed to find an equilibrium point for small-signal modeling. We currently support and use the following libraries:

Solver How to install Use
IPOPT brew install ipopt ACOPF
Gurobi pip install gurobipy Capacity expansion
MOSEK pip install mosek Capacity expansion

[!IMPORTANT]
Please install all relevant solvers for your use case before running STING.

Citing

@misc{STING,
    author = {{Renewable Energy + Advanced Mathematics Lab (REAM)}},
    title = {Specialized tool for inverter-based grids},
    year = {2025},
    publisher = {GitHub},
    journal = {GitHub repository},
    url = {https://github.com/REAM-lab/sting}
}

Download files

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

Source Distribution

sting_py-0.2.1.tar.gz (167.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sting_py-0.2.1-py3-none-any.whl (257.7 kB view details)

Uploaded Python 3

File details

Details for the file sting_py-0.2.1.tar.gz.

File metadata

  • Download URL: sting_py-0.2.1.tar.gz
  • Upload date:
  • Size: 167.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for sting_py-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3f0013ddef896fbd26aacdb6d2857fdb44c264138ee63bc3e76f36aec96fee90
MD5 7b9f06195733207c781a33241d1d2bd1
BLAKE2b-256 0c879ac285ede2e26f52a010597caf8addb989e414aa9dee5ce1f0400f253544

See more details on using hashes here.

File details

Details for the file sting_py-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: sting_py-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 257.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for sting_py-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f0fd38f06abc9f1c781bef4329991a6ba1b93a9835fce635fea956699c872f1
MD5 f6df6d143c50b199748709892885ff4f
BLAKE2b-256 43447f08e3ef39cf86f8a412c54c3387752a461c37d3cd95636f4ff910005cb4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.2

2 files

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 files

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