semvec/pypi-packages huggingface dataset:
TellrawGenerator 0.0.3
Tellraw command generator for minecraft


This module is a tool for making tellraw commands easier to create.

Usage:

Even though its meant to be simple, there are still steps to creating your command.

To create a line, you have to make an instance of the "Line" class,
 
and all of the attributes are written in between the parentheses of the class.

There is a specific order of the attributes: Text, Color, Underline, Italic, Bold, Obfuscated, and Strikethrough.

Example: line1 = line("Hello World","orange",True,True,True,False,False)

After you are done creating your lines, put them in a list and in the parentheses of the "GenerateCommand",

The result will be returned.

Example:

line1 = line("Hello","red",True,True,True,False,False)

line2 = line(" World!","blue",True,True,True,False,False)

lines = [line1, line2]

command = GenerateCommand(lines)

print(command)

Notes:

In-game, every line will be combined into 1 line with no spaces, 

so dont forget to put in spaces before each line and Backslash + N for line breaks.

Also, replace the <targets> text in the result with your actual targets.

Update notes:

0.0.1 First upload

0.0.2 Fixed import not working, also fixed GenerateCommand function.

0.0.3 Pressed ctrl + s in __init__ lol
mamon-utils 0.1.0
Common Mamon11 tools and utilities
Requires Python: >=3.8,<4.0

# Mamon Utilities
A set of tools and utilities for Python Development


## Installation
```sh
pip install mamon-utils
```

## Usage
To use any of these modules, just import from `mamonutils`.

### Database
This module makes it easy to connect to our PostgreSQL databases. To use it, you have to add a `.env` file in the root of your project specifying the following environment variables:
```.env
DB_HOST=
DB_PORT=
DB_USER=
DB_PASSWORD=
```

#### Example Usage
```python
from mamonutils import Database, dotenv

# Load environment variables
dotenv()

# Connect to clients database
db = Database('clients')
cursor = db.cursor

cursor.execute('SELECT * from clients')
result = cursor.fetchall()
print(result)

# Disconnect
db.disconnect()
```

### get_dimensions
A utility that allows you to retrieve the dimensions (width and height) of an image from a given URL. The utility uses the requests module to fetch the image data and the PIL (Python Imaging Library) module to extract the image metadata. The utility is designed to be flexible, allowing users to handle exceptions and errors according to their specific needs.

#### Example Usage
The utility takes a URL string as input and returns a dictionary containing the image's width and height.
```python
from mamonutils import get_dimensions

try:
    image_url = "https://example.com/image.jpg"
    dimensions = get_dimensions(image_url)
    print("Image Dimensions:")
    print(f"Width: {dimensions['width']}")
    print(f"Height: {dimensions['height']}")
except ValueError as e:
    print(f"Error: {str(e)}")
```