semvec/pypi-packages huggingface dataset:
pureconnection 4.2.0
Lightweight realtime database
Requires Python: >=3.7
Keywords: connection, database, python

# WELCOME TO EARTH

`pureconnection` is a OPENSOURCE lightweight realtime database based on client-server!

## Installation

You can install `pureconnection` using `pip`:


```bash
pip install pureconnection
```
Please see official PyPi website to get newer version and feature. ([Click Here](https://pypi.org/project/pureconnection))
## Example
### 1. MemoryStore 
Use this for manage data realtime on your memory
```python
from pureconnection._database import MemoryStore

# Get instance
store = MemoryStore.get_instance()

# Set key-value
store.set('ticket_no', 'SPMC')

print(store.get('ticket_no'))  # return 'SPMMC'
```
### 2. RemoteHost 
If you need data exchange with TCP protocol, you can use this method.
```python
from pureconnection._connection import RemoteHost

def on_msg(msg):
    print("📩 Server:", msg)

RemoteHost.configure("127.0.0.1", 9999)
RemoteHost.receiver_handler(on_msg)
RemoteHost.begin_connection()

# Loop utama
import time
while True:
    RemoteHost.send("PING")
    time.sleep(5)

    # Server Response
    # Server : PONG
```
ezwmails 1.0.1
Ready to go implementation for sending emails with python, a simple wrapper for stmp

# Ezwmails, easy solution with stmp and tls
 Ready to go implementation for sending emails with python, a simple wrapper for stmp

## Install 
```python3
pip install ezwmails
```
## Examples

```python3
from ezwmails import *
import os
from dotenv import load_dotenv

user="your_mail_address"
password="ypur_mail_password"
create_env_file(user,password)
load_dotenv()

subject = " Nice subject"
body = "a great body this can have html"
server = "mail service, gmail, outlook, etc"
sender_email = os.getenv("USER")
receiver_email = "receiver_email"
password = os.getenv("PASSWORD")

send_email(subject, body, receiver_email, server, sender_email, password)
```
pic2stl 10.0.12
img2stl is a Python package that converts an image to a 3D STL models.
Requires Python: >=3.9

# pic2stl Image Converter

## Overview
`pic2stl` is a Python package that converts images to 3D STL models. It reads an image, translates it into a 3D mesh, and exports the mesh in STL format. This package is ideal for creating 3D printable models from logos, silhouettes, and other high-contrast images.

## Features
- Convert images to 3D STL meshes
- Set extrusion height for 3D models
- Optionally add a base plane for enhanced model adhesion
- Compatible with any mainstream image format

## Installation
To use this package, ensure that you have the required dependencies installed:
```bash
pip install numpy Pillow numpy-stl scipy
```

## Usage
### Function
```python
def image_to_stl(image_path, output_path, extrusion_height, add_base=False, base_thickness=0)
```
#### Parameters
- **`image_path`**: Path to the input image.
- **`output_path`**: Path to save the generated STL file.
- **`extrusion_height`**: Height of the 3D model extrusion.
- **`add_base`** (Optional, default `False`): Adds a base plane if set to `True`.
- **`base_thickness`** (Optional, default `1`): Thickness of the base plane.

### Example
```python
# Convert an image to STL
image_to_stl('path/to/input_image.png', 'output.stl', extrusion_height=3, add_base=True, base_thickness=2)
```

### How It Works
1. **Load Image**: The function reads the input image and converts it to grayscale if needed.
2. **Binary Conversion**: Pixels above a specific threshold are considered "on," and those below are "off."
3. **Mesh Creation**: A 3D mesh is generated based on the "on" pixels, extruding vertically.
4. **Optional Base**: Adds an optional base to the bottom of the model for stability.
5. **Export to STL**: The mesh is then exported to STL format.

## License
This package is distributed under the MIT License.

## Contribution
Contributions are welcome. Please submit issues or pull requests to help improve this package!