semvec/pypi-packages huggingface dataset:
meterplot 0.3.0
Display water/electricity consumption data
License: MIT
Requires Python: >=3.6

# meterplot

[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/meterplot/ci?style=flat-square)](https://github.com/nschloe/meterplot/actions?query=workflow%3Aci)
[![codecov](https://img.shields.io/codecov/c/github/nschloe/meterplot.svg?style=flat-square)](https://codecov.io/gh/nschloe/meterplot)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
[![PyPi Version](https://img.shields.io/pypi/v/meterplot.svg?style=flat-square)](https://pypi.org/project/meterplot)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/meterplot.svg?style=flat-square)](https://pypi.org/pypi/meterplot/)
[![GitHub stars](https://img.shields.io/github/stars/nschloe/meterplot.svg?style=flat-square&logo=github&label=Stars&logoColor=white)](https://github.com/nschloe/meterplot)
[![PyPi downloads](https://img.shields.io/pypi/dm/meterplot.svg?style=flat-square)](https://pypistats.org/packages/meterplot)

This little script takes a number of energy measurements (e.g., from your electricity
meter or old power bills) and displays the consumption over time.  Works for electricity
and water readings.

For example, with the data file
```yaml
# electricity data
---
unit: kWh
data:
  - date: 2016-01-01T00:00:00+00:00
    value: 1000
  - date: 2016-02-01T00:00:00+00:00
    value: 1200
  - date: 2016-04-01T00:00:00+00:00
    value: 2000
  - date: 2016-07-01T00:00:00+00:00
    value: 3500
  - date: 2016-10-01T00:00:00+00:00
    value: 4000
```
you'll get
```
meterplot electricity.yml
```

![](https://nschloe.github.io/meterplot/electricity.png)

Input of water data is equally easy (here for warm and cold water, with a meter change)
```yaml
# Water data
---
unit: m^3

- data:
    - date: 2013-01-01T00:00:00+00:00
      value: [0.0, 0.0]
    - date: 2013-07-01T00:00:00+00:00
      value: [16.6, 4.0]
    - date: 2014-01-01T00:00:00+00:00
      value: [30.0, 23.0]
    - date: 2014-01-01T00:00:00+00:00
      value: [0.0, 35.1]
    - date: 2014-07-01T00:00:00+00:00
      value: 15.2
    - date: 2015-01-01T00:00:00+00:00
      value: 25.1
```
```
meterplot water.yml
```

![](https://nschloe.github.io/meterplot/water.png)

### Installation

meterplot is [available from the Python Package Index](https://pypi.org/project/meterplot/), so with
```
pip install -U meterplot
```
you can install/upgrade.

### Distribution

To create a new release

1. bump the `__version__` number,

2. publish to PyPi and GitHub:
    ```
    $ make publish
    ```


### License

meterplot is published under the [MIT license](https://en.wikipedia.org/wiki/MIT_License).
logtable 0.1.14
Monitor and Compare Logs on Terminal.
License: MIT

<h1 align="center">
  logtable
</h1>

<h3 align="center">
  Monitor and Compare Logs on Terminal.
</h3>

<div align="center">
  <a href="https://pypi.python.org/pypi/logtable"><img src="https://img.shields.io/pypi/v/logtable.svg"></a>
  <a href="https://pypi.org/project/logtable"><img src="https://img.shields.io/pypi/pyversions/logtable.svg"></a>
  <a href="https://github.com/wkentaro/logtable/actions"><img src="https://github.com/wkentaro/logtable/workflows/ci/badge.svg"></a>

  <br/>

  <img src="https://github.com/wkentaro/logtable/blob/master/.readme/terminal.png?raw=true" width="80%" />
</div>


## Installation

```bash
pip install logtable
```


## Usage

```bash
% cd examples
% logtable
 * Config file: .logtable
 * Log directory: logs
╒════╤════════════════════════╤═════════╤═════════════╤════════════╤══════════╤═══════════╤════════════╤═══════╤══════════════╤═══════════════╕
│    │          log_          │  epoch  │  iteration  │  elapsed_  │  class_  │  githash  │  hostname  │  lr   │    main/     │  validation/  │
│    │          dir           │         │             │    time    │   ids    │           │            │       │  loss (min)  │     main/     │
│    │                        │         │             │            │          │           │            │       │              │  loss (min)   │
╞════╪════════════════════════╪═════════╪═════════════╪════════════╪══════════╪═══════════╪════════════╪═══════╪══════════════╪═══════════════╡
│ 0  │ 20190310_093252.724597 │    1    │    1740     │  1:47:02   │   [1]    │  b48ce48  │ computer1  │ 0.001 │   0.00879    │     0.18      │
│    │                        │         │             │            │          │           │            │       │  (1, 1580)   │   (0, 880)    │
├────┼────────────────────────┼─────────┼─────────────┼────────────┼──────────┼───────────┼────────────┼───────┼──────────────┼───────────────┤
│ 1  │ 20190310_093829.691289 │    1    │    1720     │  1:45:37   │   [1]    │  f766b97  │ computer2  │ 0.001 │    0.0123    │     0.187     │
│    │                        │         │             │            │          │           │            │       │  (1, 1620)   │   (0, 440)    │
╘════╧════════════════════════╧═════════╧═════════════╧════════════╧══════════╧═══════════╧════════════╧═══════╧══════════════╧═══════════════╛
```

```yaml
# examples/.logtable

exclude:
  - out
  - updated_at
  - timestamp
  - loglevel
  - gpu
  - seed
  - 'lr .*'
  - '.*main/loss.*\(max\)'
  - '.*loss_.*'
params_basename: args.json
log_basename: log.json

# below configs are the same as the default
log_dir: logs
include: []
significant_figures: 3
index: null
multi_column: False
key_epoch: epoch
key_iteration: iteration
key_elapsed_time: elapsed_time
```