semvec/pypi-packages huggingface dataset:
latex-document-reader 1.0.1
A Python library for reading LaTeX documents and processing BibTeX files
Requires Python: >=3.6
Keywords: latex document reader bibtex

# LaTeX Document Reader

[![PyPI version](https://badge.fury.io/py/LaTeX-Document-Reader.svg)](https://badge.fury.io/py/LaTeX-Document-Reader)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

A Python library for reading LaTeX documents and processing BibTeX files.

## Installation

You can install the library using pip:

```shell
pip install latex-document-reader
```

## Usage
Reading LaTeX Documents
To read a LaTeX document, create an instance of the LaTeXDocumentReader class, passing the file path of the document as a parameter. Then, use the read_document method to retrieve the content of the document.

```python
from latex_document_reader import LaTeXDocumentReader

# Create an instance of LaTeXDocumentReader
document_reader = LaTeXDocumentReader('path/to/your/document.tex')

# Read the LaTeX document
content = document_reader.read_document()

# Print the content
print(content)
```

## Reading BibTeX Files
To process a BibTeX file, use the read_bibtex method of the LaTeXDocumentReader class, passing the file path of the BibTeX file as a parameter.

```python
from latex_document_reader import LaTeXDocumentReader

# Create an instance of LaTeXDocumentReader
document_reader = LaTeXDocumentReader('path/to/your/document.tex')

# Read a BibTeX file
bibtex_content = document_reader.read_bibtex('path/to/your/references.bib')

# Print the BibTeX content
print(bibtex_content)
```

## Making the File Human-Readable
The library also provides a make_readable method that can be used to process the content of a LaTeX document or any other text and make it human-readable. You can customize the method according to your specific requirements.

```python
from latex_document_reader import LaTeXDocumentReader

# Create an instance of LaTeXDocumentReader
document_reader = LaTeXDocumentReader('path/to/your/document.tex')

# Read the LaTeX document
content = document_reader.read_document()

# Make the content human-readable
readable_content = document_reader.make_readable(content)

# Print the human-readable content
print(readable_content)
```

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
image-converters 0.1.1
ImageConverter is a Python Package that provides methods to convert images between different formats, such as bytes and base64 encoding. It uses the OpenCV library for image processing.

# ImageConverter

ImageConverter is a Python Packages that provides methods to convert images between different formats, such as bytes and base64 encoding. It uses the OpenCV library for image processing.

## Installation

To use the ImageConverter class, you need to have OpenCV installed. You can install it using pip:

```shell
pip install opencv-python
```

# Usage
First, import the necessary modules:

Then, import and create an instance of the ImageConverter class:


```
converter = ImageConverter()
```

# Loading an Image
To load an image from a file, use the load_image method:

```
converter.load_image('path/to/image.jpg')
```

# Converting Image to Bytes
To convert the loaded image to bytes, use the image_to_bytes method:

```
image_bytes = converter.image_to_bytes()
```

# Converting Bytes to Image
To convert bytes back to an image, use the bytes_to_image method:

```
image = converter.bytes_to_image(image_bytes)
```

# Encoding Image to Base64
To encode the image as a base64 string, use the encode_image_to_base64 method:

```
encoded_image = converter.encode_image_to_base64()
```

# Decoding Base64 to Image
To decode a base64-encoded image back to an image, use the decode_base64_to_image method:

```
decoded_image = converter.decode_base64_to_image(encoded_image)
```

# Saving Decoded Image
To save the decoded image to a file, use the save_decoded_image method:

```
converter.save_decoded_image('path/to/output.jpg')
```

# Examples
Here's an example that demonstrates how to use the ImageConverter class:


```

from image_converter import ImageConverter

# Create an instance of the ImageConverter class
converter = ImageConverter()

# Load an image
converter.load_image('path/to/image.jpg')

# Convert the image to bytes
image_bytes = converter.image_to_bytes()

# Convert bytes back to an image
image = converter.bytes_to_image(image_bytes)

# Encode the image as a base64 string
encoded_image = converter.encode_image_to_base64()

# Decode the base64 image back to an image
decoded_image = converter.decode_base64_to_image(encoded_image)

# Save the decoded image
converter.save_decoded_image('path/to/output.jpg')


```

# Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please create an issue or submit a pull request.


# License
This project is open source and licensed under the MIT License.

# Contact

For any questions or inquiries, please contact:

- Muhammad Tanveer Sultan
- Email: engr.tanveersultan53@gmail.com