Skip to main content

PyPoolPump

License: MIT

PyPoolPump is a python module providing classes for computing the duration needed for a swimming pool filtering pump. This module will provide methods to define the filtering daily schedule.

Each classes is an implementation of a different algorithm found when searching Internet to find best way to compute the filtering pump duration.

Classes description

Base class

FilteringDuration() class is the base class with no duration computation. It gather all the common code for each implementation. You will find a way to add a percentage modifier on the duration computed and a way to construct the daily filtering schedule.

You should not call directly this class except if you want to implement a new algorithm.

Dumb algorithm

DumbFilteringDuration() is child class with an implementation of the common known algorithm using only the water temperature as parameter:

filtering duration (in hour) = water temperature (in °C) / 2.

Reference: the poster delivered with my swimming pool

Basic algorithm

BasicFilteringDuration() is child class with an implementation of the previous algorithm with some optimizations:

  • No need to filter if water temperature below 10°C
  • Between 10°C and 14°C we can reduce the duration (water temperature in °C / 3)
  • Between 14°C and 30°C we use the standard rule (water temperature in °C / 2)
  • Above 30°C continuous filtering.

Reference: To be completed

Abacus based algorithm

AbacusFilteringDuration() is a child class with an implementation of a water temperature based abacus. I found this when searching potential existing module on Github.

Reference: this abacus is used in the Jeedom pool addon by @scadinot.

Advanced algorithm

PumpCaracteristicFilteringDuration() is a child class with an implementation of an algorithm based on the pool dimension, the pump characteristics and the water temperature.

Contribute

If you want to contribute to the development:

  • Start by cloning this repository.
  • Setup a virtual environment
  • Install the python package in edition mode: pip install -e .
  • Create a branch for your feature
  • Test your change using tox
  • Send a PR when ready.

License

This software is under the MIT License.

Metadata

Release files for pypool-pump 0.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 pypool-pump 0.0.1
File Size Uploaded Provenance Actions
pypool_pump-0.0.1.tar.gz 8.8 kB Without provenance Details for pypool_pump-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypool-pump 0.0.1
File Interpreter ABI Platform Actions
pypool_pump-0.0.1-py3-none-any.whl Python 3 none any Details for pypool_pump-0.0.1-py3-none-any.whl

Total release size: 18.4 kB

Release files / pypool_pump-0.0.1.tar.gz

Download URL pypool_pump-0.0.1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bd40ae3d364a73ab076259919758d9498b5bae389e45414b2711c0c9f235fff1
BLAKE2b-256 checksum
How to use checksums
72787d157f9af2bd4635bd99d0cf755973951f38e398d14cf69560c77dc8db54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1

Release files / pypool_pump-0.0.1-py3-none-any.whl

Download URL pypool_pump-0.0.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16c2f6c4f0262df3886907c13740793f9f7a7b1dcbcb4a7cf8b8fa1a3d864ff6
BLAKE2b-256 checksum
How to use checksums
6d0e7437636abfd4d9a0efd997d24173d2beb803b8dc9577a574610391c0fa0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1

Security for pypool-pump 0.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.

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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