semvec/pypi-packages huggingface dataset:
myprac 1.0.0
A Python library containing 5 AI & DS practical programs.
Requires Python: >=3.8

# myprac

**myprac** is a Python library containing 5 AI & DS practical programs.  
Each practical can be viewed using the `show_code()` function.

## 📘 Usage
```python
import myprac

# List all available practicals
myprac.list_practicals()

# View a specific practical’s code
myprac.show_code("prac3")
digitz 0.8.0
Python phone numbers made easy.
Requires Python: >=3.10
Keywords: number, numbers, phone, phone number, phone numbers, phonenumber, phonenumbers

# digitz

[![PyPI - Version](https://img.shields.io/pypi/v/digitz.svg)](https://pypi.org/project/digitz)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/digitz.svg)](https://pypi.org/project/digitz)
[![codecov](https://codecov.io/github/rykroon/digitz/graph/badge.svg?token=XMEHBWSYHD)](https://codecov.io/github/rykroon/digitz)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/digitz.svg)](https://pypi.org/project/digitz)

-----

## What is it?

digitz is a phone number parsing, validating, and formatting library built on top of [python-phonenumbers](https://github.com/daviddrysdale/python-phonenumbers). The goal of digitz is to bring a modern Python developer experience to working with phone numbers.

## Table of Contents

- [Getting Started](#getting-started)
- [Documentation](#documentation)
- [Running the tests](#running-the-tests)
- [License](#license)
- [Example Usage](#example-usage)

## Getting Started

### Installing

Install digitz using pip.
```console
pip install digitz
```

## Documentation

The official documentation can be found [here](https://digitz.rykroon.com)

## Running the tests

It is recommended to run the tests using hatch.
```console
hatch test
```

## License

`digitz` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.


## Example Usage

```python
>>> from digitz import PhoneNumber

>>> num = PhoneNumber.parse("+1 (201) 555-0123")

>>> num.region_code
'US'

>>> num.is_possible
True

>>> num.national_destination_code
'201'

>>> num.to_e164()
'+12015550123'

>>> num.to_national()
'(201) 555-0123'

>>> num.to_international()
'+1 201-555-0123'
```
AugX 0.2.0
Simple image augmentation utility
Requires Python: >=3.7

# AugX

AugX is a lightweight image augmentation utility for computer vision projects.  
It provides a simple interface to generate multiple augmented image variants, as well as a dedicated sharpening function with adjustable intensity.

---

## Features

- Horizontal flipping
- Gaussian blur
- Median blur
- Sharpening (standard + adjustable strength)
- High-pass enhancement
- Dilation & erosion
- Returns augmentations as a list for easy saving or training

---

## Installation

```bash
pip install augx
```

---

## Usage

### Importing
```python
import cv2
from augx import augment_image, display_images
```

### Generate Multiple Augmentations
Load Image:
```python

img = cv2.imread("sample.jpg")
```

To generate Augmented images:
```python
augmented_images = augment_image(img)
for name, img in augmented_images:
    cv2.imwrite(f"{name}.jpg", img)
```

To Display the images:
```python
augmented_images = augment_image(img)
display_images(augmented_images)
```

---

## Function Overview

### `augment_image(img)`
Returns a list of augmented images, including:
- Original image
- Horizontally flipped
- Sharpened
- Gaussian blur applied
- Median blur applied
- High-pass filtered version
- Dilated image
- Eroded image

### `display_images(named_images)`
Displays each augmented image one-by-one in a separate window, along with the name of the applied transformation.

---

## License

Licensed under the **MIT License**.  
See the full text in [`LICENSE.txt`](LICENSE.txt).

## Author

**Xopse**  
🌐 [GitHub](https://github.com/Xopse)
simplemonitor 1.15.0
A simple network and host monitor
Requires Python: >=3.10

[![PyPI version fury.io](https://badge.fury.io/py/simplemonitor.svg)](https://pypi.python.org/pypi/simplemonitor/) [![Downloads](https://pepy.tech/badge/simplemonitor)](https://pepy.tech/project/simplemonitor)

![Tests (Windows)](https://github.com/jamesoff/simplemonitor/workflows/Tests%20(Windows)/badge.svg) ![Tests (Linux)](https://github.com/jamesoff/simplemonitor/workflows/Tests%20(Linux)/badge.svg) ![Linting](https://github.com/jamesoff/simplemonitor/workflows/Linting/badge.svg)

[![codecov](https://codecov.io/gh/jamesoff/simplemonitor/branch/master/graph/badge.svg)](https://codecov.io/gh/jamesoff/simplemonitor) [![Code style: ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v0.json)](https://github.com/astral-sh/ruff)

SimpleMonitor is a Python script which monitors hosts and network connectivity. It is designed to be quick and easy to set up and lacks complex features that can make things like Nagios, OpenNMS and Zenoss overkill for a small business or home network. Remote monitor instances can send their results back to a central location.

Requires Python >= 3.8.

Documentation is here:
https://simplemonitor.readthedocs.io/en/latest/
rectInspect 0.0.4
rectInspect is a Python library for automated image defect detection. It allows users to detect, highlight, and manually inspect defects in images based on customizable width and height rules. You can also interactively draw rectangles on images to measure dimensions and areas. The library supports skipping certain rectangle sizes and is designed for fast, easy, and flexible inspection of defects in various types of images.
Requires Python: >=3.0

# rectInspect
A Python library for detecting and highlighting defects in images using customizable width and height rules.
<br>
This is the source code of version 0.0.1, created as a starter project for building a Python package.

## Quickstart
The library provides easy-to-use tools for detecting image defects and manually inspecting them using rectangles.

### Initialize Detector
You can initialize the defect detector with threshold, minimum area, width/height arrays, and optional rectangles to remove.

```python
import rectInspect

# Initialize detector
detector = rectInspect.highlight_defects(
    threshold_ratio=0.2,
    kernal_size = 20,
    min_area=100,
    width_arr=[1,5,2],
    height_arr=[8,48,66],
    remove_rec=[(64,35),(124,5)]  # [(Width, height)] to skip
)

```

### Process Image
Process an image to detect defects and get the filtered result.

```python
# Process the image
filtered = detector.process_image("2.jpeg")

```

### Detect Defects
Detect defects based on initialized parameters. Returns the number of detected items.

```python
# Detect defects
detected_items = detector.detect_defects(filtered, detector.merged_contours,offset_x,offset_y)

# Print results
detector.print_results(detected_items)


```

### Save Highlighted Image
Save the image with defects highlighted in red rectangles.

```python
# Save the highlighted defects
detector.save_highlited_defect_image(filtered, detected_items)

```

### Draw Rectangles Manually
You can also interactively draw rectangles on an image and see their width, height, and area.
```python
# Draw rectangles interactively
detector.draw_rectangle_with_mouse("final.jpg")


```

### Features
- Detect defects using contour analysis.
- Specify multiple width and height ratios using arrays.
- Optionally remove rectangles that match certain width/height dimensions.
- Interactive rectangle drawing with real-time width, height, and area display.
- Save final images with highlighted defects.

### Installation

```bash
pip install rectInspect
```
# rectInspect
cloudflare-ddns-updater 1.0.5
A Python tool to update Cloudflare DNS automatically using DDNS.
Requires Python: >=3.10

This script updates a dns record in your Cloudflare account to match 
your current public IP address.\
First it checks your IP address, and if it is different from the IP address in your 
Cloudflare dns record, it updates the dns record in Cloudflare.\
It will run automatically at preset intervals.

### Prerequisites
To run this script you need a Cloudflare User API Token \
with the following Permissions:\
Zone - Zone - Read\
Zone - DNS - Edit\
and the following Zone Resources:\
Include - Specific zone - yourdomain.xxx

These permissions are necessary to check the names and IDs of your dns records (Zone Read)\
and to change the IP address of a particular record (DNS Edit).

During setup, the script checks if crontab is installed and accessible.\
If not, it will exit. In this case you should setup crontab or run the script as root.\
In Debian 12 all users have crontab available\
In Alpine linux the user needs to run crontab -e, and write a comment line to enable crontab.

### How to obtain a Cloudflare API Token
Login to Cloudflare\
Click on My Profile (top right)\
Click on API Tokens\
Click on the 'Create Token' button\
Click on the 'Use template' button of Edit zone DNS\
Modify Permissions so that you have the following settings:\
Zone - Zone - Read  \
Zone - DNS - Edit    \
and the following Zone Resources:\
Include - Specific zone - yourdomain.xxx\
Click on the 'Continue to summary' button\
Click on the 'Create Token' button.\
Save the Token


### Security

The Cloudflare token input is not visible on most terminals (similar to Linux password) and is 
saved in a json file readable only by the user (and root).


### Installation
To install on recent Linux systems use pipx.\
On older systems you can use pip.
  
On Debian or Ubuntu  
- `apt install pipx`

On Alpine Linux  
- `apk add pipx`  

Once installed:  
- `pipx ensurepath`  
- Logout and login again (or reboot)  
- `pipx install cloudflare-ddns-updater`  
  
### Setup
To setup the program  
- `cloudflare-ddns-updater --setup`  
  
To change IP check interval  
- `cloudflare-ddns-updater --cron`  
  
To stop automatic ip update  
- `cloudflare-ddns-updater --stop`  
  
To resume automatic IP update  
- `cloudflare-ddns-updater --start`  

To change log level
- `cloudflare-ddns-updater --logs`  

To remove all files created by the script  
- `cloudflare-ddns-updater --cleanup`  

To check the logs
- follow the log file path shown after installation
  
To uninstall
- `cloudflare-ddns-updater --cleanup`
- `pipx uninstall cloudflare-ddns-updater`




Changes:\
1.0.5 - Added date-time to Cloudflare record comment\
        Added log file path when --log option is used\
1.0.4 - Fixed bug that would try to change the TXT or MX record\ 
        if trying to change the root domain (mydomain.xxx)\
1.0.3 - Removed dns proxy from cloudflare and forced ttl to 120 seconds\
1.0.2 - Added github repository\
1.0.1 - Added log entries for cron changes\
1.0.0 - First official release