semvec/pypi-packages huggingface dataset:
energybot 1.1
You personal assistant
License: MIT

Energy bot to work with differents energy providers
- poe
- energy_ua (old-version)


## Energy providers configuration

**You can add own energy provider**

- create energy provider worker in providers folder for example **poe.py**
- this provider must contains two function:
  - **get_queue_info()** - for get current info about queue
  - **print_queue_info()** for output info about queue to console (for debugging) 
- provider must use load_data() and save_data() function for bot working correctly with other modules
- you can use html parce to get info about queue and output this data to dict format like:
```
specific_datetime = {
  'text': 'OFF/ON',
  'id':n,
  'value': False/True
}
```
## Bot configuration

Create .env file
```
BOT_TOKEN=token
ADMIN_CHAT_ID=adminid
TIMEOUT=15
TURN_ON_NOTIFY=True
PROVIDER=
PROVIDER_URL=
```

Run **bot** as service for pooling

Loggin as root to the VM:
  `systemctl edit --force --full energybot.service`

create this unit:
```
[Unit]
Description=E-Energy Bot Service
Wants=network.target
After=network.target

[Service]
WorkingDirectory=/opt/e-energy
ExecStartPre=/bin/sleep 1
ExecStart=/opt/e-energy/venv/bin/energybot
Restart=always

[Install]
WantedBy=multi-user.target

```
Eneable service:
`systemctl enable energybot.service`
Check status:
`systemctl status energybot.service`
Start if needed:

```
systemctl start energybot.service
```

Run worker to process notification and sync to sync information about energy schedule. Schedule it using cron: `crontab -e`
```
*/30 * * * * cd /opt/e-energy/ && venv/bin/energybot --run sync # e-energy sync service
*/15 * * * * cd /opt/e-energy/ && venv/bin/energybot --run worker # e-energy worker service
```
make_distribution 0.2.0
Top-level package for MakeDistribution.com Python client.
License: MIT
Requires Python: <4,>=3.9


[homepage]: https://makedistribution.com
[docs]: https://makedistribution.com/s/api/v0/docs/

Python client for the [MakeDistribution][homepage] API ([docs][docs]).

Offers a thin wrapper around the API (`JSONClient`) as well as the `Distribution` class which lets you interact with MakeDistribution.com distributions as if they were ordinary SciPy distribution objects. 

At the moment, `Distribution` supports commonly used functionality which should be sufficient for the great majority of use cases. Eventually, the goal is to provide a full drop-in replacement for SciPy's distributions (specifically, ``rv_continuous_frozen``).

# Installation
```bash
pip install make_distribution  # or `poetry add make_distribution`
```

# Usage
```python
import os

import make_distribution.client

TOKEN = os.environ["MAKEDISTRIBUTION_API_TOKEN"]

json_client = make_distribution.client.JSONClient(token=TOKEN)

client = make_distribution.client.SciPyClient(json_client)

data = {
    # See API docs for available families
    "family": {"requested": "cinterp5_01"},
    "arguments": {
        "quantiles": [
            {
                "p": 0.1,
                "x": 0,
            },
            {
                "p": 0.5,
                "x": 1,
            },
            {
                "p": 0.9,
                "x": 4,
            },
        ]
    },
}

# `dist` is an instance of class `Distribution`
dist = client.post("1d/dists/", json=data)

# Print basic information about the distribution
print(dist)

# `dist` lets you query other endpoints with a SciPy-like interface
size = 5
print(f"rvs(size={size}) = {dist.rvs(size)}")  # Draw random samples

x = [1, 2, 3]
print(f"cdf({x}) = {dist.cdf(x)}") # Cumulative distribution function
print(f"pdf({x}) = {dist.pdf(x)}") # Probability density function

p = [0.1, 0.2, 0.3]
print(f"ppf({p}) = {dist.ppf(p)}") # Quantile function (inverse CDF)
```