Skip to main content


RePeriods : a tool to find Representatives Periods

What is it?

RePeriods is a Python package that provides multiple methods to process time series in order to find Representative Periods.
Representative Periods (RPs) are a concept often used in the context of energy systems and optimization. They are particularly useful in situations where you want to model and analyze the behavior of a system over time, but it's computationally or practically infeasible to consider every individual time step. RPs are used to capture the essential characteristics of a time series in a more manageable way. Here are some specific applications where RPs can be useful:

  1. Energy System Modeling: RPs can be used in the modeling of energy systems, such as power grids or renewable energy generation, to represent the variability and uncertainty of energy sources over time. They provide a way to simplify complex time series data while preserving key features.

  2. Energy Management: In energy management systems, RPs can help make decisions about how to allocate energy resources optimally. By using RPs, you can make informed decisions about when to generate, store, or use energy based on representative patterns.

  3. Optimization: RPs are commonly used in optimization problems, where they can significantly reduce computational complexity. Instead of considering every time step, you can optimize over a set of RPs, which captures the essential behavior of the system.

  4. Long-Term Planning: When planning for the long term, RPs can help in scenarios like capacity expansion of power plants, designing energy storage systems, or making investment decisions in renewable energy projects. They allow you to consider long-term trends without needing high-resolution data.

  5. Risk Assessment: RPs can be used in risk assessment and scenario analysis. By considering a range of representative scenarios, you can evaluate the potential impacts of various uncertainties on your system.

  6. Control Strategies: In control systems, RPs can inform control strategies by providing a simplified representation of system dynamics. This can be especially useful in real-time control applications.

  7. Forecasting: RPs can be used as a basis for forecasting future energy generation or consumption. Forecasting based on representative patterns is often more computationally efficient than forecasting every time step.

  8. Research and Analysis: Researchers and analysts may use RPs to study the behavior of energy systems, identify trends, and gain insights into system performance without the computational burden of analyzing every data point.

In summary, RPs are a valuable tool in various aspects of energy system analysis, optimization, and decision-making. They allow you to strike a balance between capturing important temporal dynamics and managing computational complexity. The choice of RPs and how they are defined can have a significant impact on the accuracy and efficiency of models and systems in the field of energy management and beyond.

Table of Contents

Install

Can be installed with Pypi :

pip install reperiods

or if needed :

pip install reperiods[kmedoids]

Dependencies

reperiods requires,

  • Python >= 3.10
  • pandas>=2.0.3, for time series management
  • plotly>=5.15.0, for embedded visualisation
  • PuLP>=2.7.0, for optimization process

If you want to use k-medoids method, you need:

  • scikit-learn-extra>=0.3.0, for k-medoids process

That requires python<3.12 and numpy<2.0.

Documentation

See https://robinsonbeaucour.github.io/RePeriods/ .

Metadata

Release files for reperiods 2.0.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 reperiods 2.0.1
File Size Uploaded Provenance
reperiods-2.0.1.tar.gz 13.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for reperiods 2.0.1
File Interpreter ABI Platform
reperiods-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.7 kB

Release files / reperiods-2.0.1.tar.gz

Download URL reperiods-2.0.1.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f3fe8818f8c0d1a2aec3c29d833d147d40df8647799658bdb7e55758050e38a0
BLAKE2b-256 checksum
How to use checksums
496e364fa304f47f4887c1593d7afcf33f9462fdbcc22559f5c4722062d4df81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2025.

Transparency log

Release files / reperiods-2.0.1-py3-none-any.whl

Download URL reperiods-2.0.1-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf230196649db6e4b85019b9acf3b78c7edbb767d661dd2461e0d7405b981c5a
BLAKE2b-256 checksum
How to use checksums
865626c63fe3230d6c6f6673638803a6b759f682d0bfb767b717a74a1346428b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2025.

Transparency log

Security for reperiods 2.0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for reperiods-2.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2025.

Transparency log

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.

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