Skip to main content

PV_self_consumption_client

Authors: Sébastien Gardoll, IPSL, CNRS / Sorbonne Université Olivier Boucher, IPSL, CNRS / Sorbonne Université

(c) 2024

Interface to call API PV_self_consumption_client for optimising solar PV self-consumption under constraints. Note that the license only applies to this interface and not to the API itself.

Installation

Option 1: Conda

  1. Install miniconda;
  2. Create a new conda environment;
  3. Install the project dependencies.

Skip 1. if you already have a miniconda/anaconda distribution installed (which conda doesn't return an error).

Install miniconda

While installing, Miniconda asks you to initialize itself. If you choose to do so, it will add some instructions to your ~/.bashrc (shell configuration). Carefully choose the path of the Miniconda installation directory, as conda environment take some space and inodes. The following example is meant for Linux x86_64.

curl -sSL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh

Conda environment creation

Let's create a conda environment called pvsc:

conda create -y -n pvsc 'python=3.12.*'

Install client

First activate the environment (as usual), then install the client with pip:

conda activate pvsc
pip install -U pv_self_consumption_api_client

Run client

In any directory:

pvsc -h

Option 2: PDM

PDM associates a Python virtual environmnent (venv) with a project described by a pyproject file.

Dependencies installation

Setup the project environment with PDM:

git clone https://github.com/OB-IPSL/PV_self_consumption_client.git
cd PV_self_consumption_client
pdm install

Run client

While in PV_self_consumption_client directory:

pdm pvsc -h

Getting started

Note: Add pdm command before pvsc while in the source directory if you installed the client with pdm (option 2).

Generate example input files

pvsc example -p > params.yml
pvsc example -d > demand.csv

The example input files can be modified for your own usages.

Run optimization

Compute optimization then output in and also generate plots (-m option):

pvsc optimize -m params.yml demand.csv

How to contribute

Install linters

You must follow the pdm install instructions. Then:

pdm install -dG dev
pdm run pre-commit install

Submit pull request

Contribution is possible thank to the PR submission.

Metadata

Release files for PV_self-consumption_api_client 0.1.5

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

Source distribution (sdist)

Source distribution for PV_self-consumption_api_client 0.1.5
File Size Uploaded
pv_self_consumption_api_client-0.1.5.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PV_self-consumption_api_client 0.1.5
File Interpreter ABI Platform
pv_self_consumption_api_client-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / pv_self_consumption_api_client-0.1.5.tar.gz

Download URL pv_self_consumption_api_client-0.1.5.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eb83afa2708a783900c33557afb835463d49cde40e0ae7c6e276372a05dfe456
BLAKE2b-256 checksum
How to use checksums
bd9ffcc7d1c039f157681b188c21924ae4aeb29079f4a7ed26fb890e0515d982
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.19.2 CPython/3.13.0 Darwin/23.6.0

Release files / pv_self_consumption_api_client-0.1.5-py3-none-any.whl

Download URL pv_self_consumption_api_client-0.1.5-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83946384bcd21bcb99864f96232d02c56b5525b55e2fce345922df19a2943c4c
BLAKE2b-256 checksum
How to use checksums
29ae76ff6a4a1945b89ad24daf5efe56c99ed0be4cd163eb667189a290dfd7e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.19.2 CPython/3.13.0 Darwin/23.6.0

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release 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