semvec/pypi-packages huggingface dataset:
hex-htmltoimg 1.2.0
A module to generate images from HTML content
Requires Python: >=3.6

# hex_htmltoimg

Convert HTML to images with ease and flexibility! 🖼️✨

## Overview

`hex_htmltoimg` is a powerful Python module that transforms HTML files into high-quality images with dynamic content replacement and customizable rendering.

## 🌟 Features

- **HTML to Image Conversion**: Seamlessly transform HTML content into crisp, professional images
- **Dynamic Content Placeholders**: Replace placeholders with personalized, real-time content
- **Flexible Image Sizing**: Customize output image dimensions effortlessly
- **Unique Filename Generation**: Automatically create distinct filenames for each generated image
- **Image Resizing**: Adjust image sizes post-generation with built-in tools

## 🚀 Installation

Install the module quickly using pip:

```bash
pip install hex_htmltoimg
```

## 💡 Usage Examples

### Basic Usage

```python
from hex_htmltoimg import generate_image_from_html

# Path to your HTML template
html_file_path = 'template.html'

# Dynamic content replacements
replacements = {
    '{{title}}': 'Hello, World!',
    '{{content}}': 'Dynamically generated image magic!'
}

# Generate image with custom dimensions
image_filename = generate_image_from_html(
    html_file_path, 
    replacements, 
    width=800, 
    height=600
)

print(f"Image saved: {image_filename}")
```

### HTML Template Example

```html
<!DOCTYPE html>
<html>
<body>
    <h1>{{header}}</h1>
    <p>{{content}}</p>
    <footer>{{footer}}</footer>
</body>
</html>
```

## 🔧 Parameters

| Parameter    | Description                                | Default |
|--------------|--------------------------------------------|---------| 
| `file_path`  | Path to the HTML file                      | Required |
| `replacements` | Dictionary of placeholder replacements    | {} |
| `width`      | Output image width                         | 650px |
| `height`     | Output image height                        | 1250px |

## ⚠️ Error Handling

The module handles various scenarios:
- Raises `FileNotFoundError` if HTML file is missing
- Validates width and height as positive integers
- Manages image generation exceptions

## 📄 License

MIT License - Free for personal and commercial use.

## 🤝 Contributing

Contributions are welcome! 
- Fork the repository
- Submit issues
- Create pull requests

## 📞 Support

For more information, check the [project repository](https://github.com/azharbhat-dev/hex_htmltoimg).

*Generated with ❤️ by azharbhat-dev*
applique 0.2.3
Chemical drawing with Python
Requires Python: >=3.8

# applique


[![Downloads](https://static.pepy.tech/personalized-badge/applique?period=total&units=international_system&left_color=orange&right_color=blue&left_text=Downloads)](https://pepy.tech/project/applique)
[![License: GPL v3](https://img.shields.io/badge/License-GPL_v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
![Python Versions](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C-blue)
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
[![PyPI - Version](https://img.shields.io/pypi/v/applique.svg)](https://pypi.org/project/applique)

`applique` is a simple program that can write .xyz file from .mol files. It really is just a missing puzzle piece in the quantum chemistry world, as some molecular editors went corrupt. Now one can use common Quantum Chemistry software again. It mimics Avogadros behaviour.

Nothing special.

Okay by now it is an understatement. It is infact a molecular model suitable for generating simulations. It can also convert fileformats.

## Installation

Simple as always 

```bash 
pip install applique
```

## Usage 

### Cli

In your venv 
```bash 
applique --i in_file.mol --o out_file.xyz
```
Easy peasy

### Programs 
Within programs for example you load a molfile like this 


```bash
from applique.molecule import Molecule as Mol

mol_file_benzene = "tests/molecules/benzene.mol"
benzene = Mol().from_mol(mol_file_benzene)
```
Then write the `.xyz` like this 

```bash
from applique.writer import write_xyz
from applique.molecule import Molecule as Mol

mol_file_benzene = "tests/molecules/benzene.mol"
benzene = Mol().from_mol(mol_file_benzene)
file_name_benzene = "./tests/molecules/benzene.xyz"
coordinates = benzene.struct3D() #you can omit if you don't want to preoptimize the structure.
write_xyz(self.benzene, file_name_benzene)
```

# Errors

This is wanted (don't want to impose bonds at this stage)
```bash
E       RuntimeError: Pre-condition Violation
E               getNumImplicitHs() called without preceding call to calcImplicitValence()
E               Violation occurred on line 287 in file Code/GraphMol/Atom.cpp
E               Failed Expression: d_implicitValence > -1
E               RDKIT: 2024.03.5
E               BOOST: 1_85
```
dasoundlib 0.6
A package to generate and play sine wave sounds
Requires Python: >=3.6


░██████╗░█████╗░██╗░░░██╗███╗░░██╗██████╗░██╗░░░░░██╗██████╗░
██╔════╝██╔══██╗██║░░░██║████╗░██║██╔══██╗██║░░░░░██║██╔══██╗
╚█████╗░██║░░██║██║░░░██║██╔██╗██║██║░░██║██║░░░░░██║██████╦╝
░╚═══██╗██║░░██║██║░░░██║██║╚████║██║░░██║██║░░░░░██║██╔══██╗
██████╔╝╚█████╔╝╚██████╔╝██║░╚███║██████╔╝███████╗██║██████╦╝
╚═════╝░░╚════╝░░╚═════╝░╚═╝░░╚══╝╚═════╝░╚══════╝╚═╝╚═════╝░

The Soundlib module is a versatile Python extension designed to generate and play sine wave sounds. Soundlib seamlessly integrates with Python to offer flexible and real-time audio playback.

# How to use
```python
from soundlib import *
play_sound(<frequency>, <milliseconds>)
```