semvec/pypi-packages huggingface dataset:
battery-notify 1.4
Battery notification applet for informing about battery status.
Requires Python: >=3.9
Keywords: dbus,notify,battery,desktop,status

## About

A battery monitor and notification app with sound for Linux systems.

## Usage

```bash
$ battery-notify start --daemon
battery-daemon starting...
started.

$ battery-notify stop --daemon
battery-daemon stopping...
stopped.

$ battery-notify status --daemon
battery-daemon is not running.

$ battery-notify info
Battery level is: 97.67%
Battery usage time left: 2:03:17
Battery status: discharging
Charger plugged: off
```


## Install

```bash
$ pip install battery-notify
```

## Install the data

Download the source code, unzip it, go into the source directory and run:

```bash
$ tar xvf battery-notify-1.4.tar.gz
$ cd battery-notify-1.4
$ python3 data.py install
```

## Uninstall

```bash
$ pip uninstall battery-notify

$ python3 data.py uninstall 
```

## Config file

```bash
/etc/battery-notify/config.toml
```

## XDG desktop file

```bash
/etc/xdg/autostart/battery-daemon.desktop.sample
```

## Pidfile

```bash
$HOME/.run/battery-notify.pid
$HOME/.run/music_player.pid
```
pandas-aiohttp 0.1.0
Adds `Series.aiohttp.get_text()` and `Series.aiohttp.get_json()` to pandas Series objects.
Requires Python: >=3.10
Keywords: aiohttp,pandas,urls

# pandas aiohttp plugin <!-- omit in toc -->

Adds the functions `Series.aiohttp.get_text()` and `Series.aiohttp.get_json()`
to pandas Series objects.

- [1. Usage Notes](#1-usage-notes)
- [2. Examples](#2-examples)
  - [2.1. `Series.aiohttp.get_text()`](#21-seriesaiohttpget_text)
  - [2.2. `Series.aiohttp.get_json()`](#22-seriesaiohttpget_json)
  - [2.3. Manual Async Runtime](#23-manual-async-runtime)


## 1. Usage Notes

Both `get_text()` and `get_json()` support the parameters `limit:int=100` and
`ssl:bool=True` which limit concurrent connections and enable or disable SSL
verification, respectively. More features may be supported in the future.

## 2. Examples

>The following examples assume that you are running in a Jupyter notebook.
>
> If you are running in a regular python environment, you will need to use the
>`asyncio.run()` function to run the code. See the last example.

### 2.1. `Series.aiohttp.get_text()`

```python
import pandas as pd
import pandas_aiohttp
# The next line is only needed if you want to prevent your IDE from highlighting as "unused import"
assert pandas_aiohttp

post_urls = pd.Series([
    "https://jsonplaceholder.typicode.com/posts/1",
    "https://jsonplaceholder.typicode.com/posts/2",
])

data = await post_urls.aiohttp.get_text()
```

```text
0    {\n  "userId": 1,\n  "id": 1,\n  "title": "sun...
1    {\n  "userId": 1,\n  "id": 2,\n  "title": "qui...
dtype: object
```

### 2.2. `Series.aiohttp.get_json()`

A more common usage pattern;

```python
import pandas as pd
import pandas_aiohttp

# create an example data frame:
frame = pd.DataFrame(
    columns=["A", "B"],
    data =[
        ["XY",23],
        ["YZ", 34],
        ["ZX", 45]
    ]
)

# Build a series of urls from the dataframe columns,
# and assign to a new column named "data":
frame["data"] = await (
    "https://httpbin.org/get"
    +"?A="+frame["A"]
    +"&B="+frame["B"].astype(str)
).aiohttp.get_json()

result
```

```text
0    {'args': {'A': 'XY', 'B': '23'}, 'headers': {'...
1    {'args': {'A': 'YZ', 'B': '34'}, 'headers': {'...
2    {'args': {'A': 'ZX', 'B': '45'}, 'headers': {'...
dtype: object
```

### 2.3. Manual Async Runtime

If you are running in a regular python environment, you will need to use the
`asyncio.run()` function to run the code.

```python
import pandas as pd
import pandas_aiohttp
import asyncio

post_urls = pd.Series([
    "https://jsonplaceholder.typicode.com/posts/1",
    "https://jsonplaceholder.typicode.com/posts/2",
])

async def main():
    data = await post_urls.aiohttp.get_text()
    print(data)

asyncio.run(main())
```
flex-lumped 1.0.1
Dev version for a FLEX-lumped hydrological model using BMI for eWaterCycle.

# FLEX-L BMI

[![PyPI](https://img.shields.io/pypi/v/ewatercycle-FLEX-lumped)](https://pypi.org/project/ewatercyclce-FLEX-lumped/)

Basic Model Interface (BMI) FLEX-lumped model intended for use with [eWaterCycle](https://github.com/eWaterCycle). See said repo for installation instructions. 

FLEX-L is a lumped conceptual hydrological model. Similar to that shown in this [paper](https://doi.org/10.5194/hess-18-1895-2014).

Based on model is from the course ENVM1502 - river basin Hydrology (Markus Hrachowitz).

[![model_layout](https://raw.githubusercontent.com/Daafip/Flex-lumped-bmi/main/images/model_layout.png)](https://github.com/Daafip/Flex-lumped-bmi/blob/main/images/model_layout.png)

This current implementation is _without_ a snow reservoir. 

Actual eWatercycle model wrapper can be found on [GitHub](https://github.com/Daafip/ewatercycle-flexlumped)

Feel free to fork/duplicate this repo and publish your own (better) version.


## separate use
Can also be used as a standalone package _in theory_ - not advised:

```console
pip install FLEX-lumped
```

Then HBV becomes available as one of the eWaterCycle models

```python
from FLEXL import FLEXL

model = FLEXL()

```

Be aware of the non-intuitive [BMI](https://github.com/eWaterCycle/grpc4bmi) implementation as this package is designed to run in a [docker](https://github.com/Daafip/Flex-lumped-bmi/pkgs/container/Flex-lumped-bmi-grpc4bmi) container. 


## Changelog

### Pre v1.0.0 
- working basic version after various [testing versions](https://test.pypi.org/project/HBV/)
- various bug fixes etc. (last time using live as a dev branch -> bad practice)
- added support for updating memory vector on the fly for Data assimilation.
- bug fix in `T_lag` value: can now only be set an integer larger than 1: otherwise makes no physical sense
- bug fix where wrong types were given, warning messages cleaned up and code attempted to be made more readable
- pretty big issue with setting values fixed - won't affect most use but will cause issues for Data Assimilation
- use opportunity to name all HBV packages/naming/images to 1.2.0 

### v1.0.0
- release publicly

#### V1.0.1
- fix old descriptions of function and `get_component_name`