semvec/pypi-packages huggingface dataset:
plot-and-log-memory-usage 0.0.1
Scripts for logging CPU and GPU memory usage and subsequently plotting for analysis and debugging
Keywords: python,memory,usage,plot,logging

# plot_and_log_memory_usage

Scripts for logging CPU and GPU memory usage and subsequently plotting for analysis and debugging

# Installing

Install:

```
pip install plot_and_log_memory_usage
```

# Usage

## Log Memory Usage

Logs memory usage to a file at a given frequency and filepath

```
log_memory_usage --help

usage: log_memory_usage [-h] [--log-period-sec FLOAT] [--log-folderpath PATH] [--print-updates | --no-print-updates]

╭─ arguments ───────────────────────────────────────────────────────────╮
│ -h, --help              show this help message and exit               │
│ --log-period-sec FLOAT  (default: 5.0)                                │
│ --log-folderpath PATH   (default: /home/tylerlum/logged_memory_usage) │
│ --print-updates, --no-print-updates                                   │
│                         (default: True)                               │
╰───────────────────────────────────────────────────────────────────────╯
```

Example:
```
log_memory_usage

Logging to /home/tylerlum/logged_memory_usage/2024-01-13_02-24-22-299722.csv
2024-01-13_02-24-22-324923,7241.94140625,31747.50390625,784.0,4096.0
2024-01-13_02-24-27-381178,7046.80078125,31747.50390625,765.0,4096.0
2024-01-13_02-24-32-504417,7045.4765625,31747.50390625,765.0,4096.0
...
```

## Plot Logged Memory Usage

Creates a plot of the memory usage from the log file for a given timerange

```
plot_logged_memory_usage --help

usage: plot_logged_memory_usage [-h] [OPTIONS]

╭─ options ─────────────────────────────────────────────────────────────╮
│ -h, --help              show this help message and exit               │
│ --end-datetime-str STR  (default: 2024-01-13_02-49-51-581943)         │
│ --start-datetime-str {None}|STR                                       │
│                         (default: None)                               │
│ --lookback-seconds {None}|FLOAT                                       │
│                         (default: None)                               │
│ --log-folderpath PATH   (default: /home/tylerlum/logged_memory_usage) │
│ --save-filepath {None}|PATH                                           │
│                         (default: None)                               │
╰───────────────────────────────────────────────────────────────────────╯
```

You must specify either a start datetime (in the above format) OR lookback seconds (seconds before end datetime)

Example:

```
plot_logged_memory_usage --lookback-seconds 60
```

![plot_logged_memory_usage](https://github.com/tylerlum/plot_and_log_memory_usage/assets/26510814/e451e88e-493e-4009-aeca-706f0a0fa7fd)

```
plot_logged_memory_usage --start-datetime-str "2024-01-13_02-21-50-512677" --save-filepath "output.png"

Saving plot to output.png
```
IP-Subnet-Trie 1.0
An efficient data structure for handling a large number of IP addresses/subnets in a hierarchy.

# IP-Subnet-Trie
An efficient data structure for handling a large number of IP addresses/subnets in a hierarchy. 

### Run tests
```
pytest -s tests
```

### Generate Python protobuf classes from proto file.
```
cd ip_subnet_trie
protoc --python_out=. binary_trie.proto
```

### Example code
You can see example code in tests/ directory.

### Contribution
This project has the significant contribution of GitHub Copilot. It is my first project using an AI-assistance tool. Moreover, this is also the first project where I have uploaded a library to Pypi. I hope it will be useful to many people.
TKImageButton 0.0.1
A Python library for creating image buttons in Tkinter
Requires Python: >=3.8

# TKImageButton
A Python library for creating image buttons in Tkinter.

**Example Usage:**

`from TKImageButton import ImageButton`

`root = tk.Tk()` 

`# Define use_temp`

`button = ImageButton(root, source="src/templates.png", command=use_temp)`

`button.pack()`

`root.mainloop()`
yoga-pose-checker 0.0.1
A package for counting BLOB objects
Requires Python: >=3.7

# What is Yoga-Pose-Checker

Yoga Pose Checker is a python program that determines if the correct yoga pose is being performed.
If the yoga pose is correct, a sound is emitted, and if the pose is incorrect, the sound stops.

The program uses Mediapipe's Pose Landmarker, which recognizes the joints of the person in the image and outputs 33 landmarks.
In this case, the image of the person in the tree pose was loaded as the correct yoga pose and the coordinates of the 33 landmarks were output.
Next, the Euclidean distance between the landmark of the person in the camera and the landmark in the loaded image is calculated, and if the Euclidean distance is less than 1, the system sounds a sound as if the pose is close to the model.

<img src='mediapipe.jpeg' height=350 width=750 >

# How to install Yoga-Pose-Checker
`$ pip install opencv-python`

`$ pip install mediapipe`

`$ pip install numpy`

`$ pip install playsound`

# How to play Yoga-Pose-Checker
Stand in a position where the camera captures your entire body from head to toe and perform yoga poses.
huex 0.1.3
A powerful and lightweight CLI based tool for the Conbee II
Requires Python: >=3.6
Keywords: cli conbee2 zigbee huelights hue

# Huex - Control your Conbee II via CLI (Alpha Version!)

### What is Huex?

Huex is a command line based tool to control the devices you have configured in your Conbee II.

This tool utilizes the [Conbee II REST API](https://dresden-elektronik.github.io/deconz-rest-doc/).

### Setup

#### Installation

Install Huex using the following command:

```
pip install huex
```

#### API Setup

When you execute a Huex command for the first time, it will fetch your Conbee II data from the [discover page](https://phoscon.de/discover).

Example:

```
huex show
```

After this is done, Huex will prompt you to click ENTER once you've allowed authentication on your Conbee II dashboard.

Click enter once you do so and Huex should automatically create your API key and save it.

Once this is done, you can use Huex.

### Features

Huex is in alpha version, there will be many more features to come.

Here are the current features:

- Show state of all lights:

```
huex show
```

- Turn lights on/off

```
huex control [device_id] [action]
```
rfslib 3.1.9
Remote file system libraries for data manipulation between remote /and local host/ (cp, mv, ls, rm,..)

# rfslib
Remote file system libraries for data manipulation between remote /and local host/ (cp, mv, ls, rm,..).
Libraries provides Python3 universal interface for multiple protocols like SFTP, FTP, FTPS, SMB, FS (local filesystem) and enables you to solve encoding problems during file transfer.

*Warning: This package is still under heavy development and the API may change.*

## Installation
TODO

## Documentation
Documentation can be found at repository [rfslib-docs](https://gitlab.com/rfs4/rfslib-docs)