semvec/pypi-packages huggingface dataset:
gene-rule-parser 0.1.5
Basic language to parse genetic rules to a structure
Requires Python: <4.0,>=3.11

# Gene Parser AST

A rule expression in genetics can be found like this relation of
AND+OR:

``` python
rule = '(9045_AT1 and (B0783 and B0088)) or (3705_AT1 or (91012_AT1 and 55304_AT1))'
```

This module enables a a parser that convert an string expression that
relates the genes in a object structure like this:

``` python
Or(
    left=And(left=Gene(name='9045_AT1'), right=And(left=Gene(name='B0783'), right=Gene(name='B0088'))),
    right=Or(
        left=Gene(name='3705_AT1'),
        right=And(left=Gene(name='91012_AT1'), right=Gene(name='55304_AT1'))
    )
)
```

To process this and obtain the representative value first is necessary
use the **parser** method and then call **tree_analysis**. This last
function reads recursively all the tree and obtain, given this rules,
the final value:

- or : sum([a,b])
- and : min([a,b])

And, for UNKNOWN value:

- Expression(UNKNOWN) :: mean([Expression(G_i)])

With this is possible to have the representative value for the gene
rule expression.

Take a look on the examples on the **tests** directory.


# How install this.

Call **poetry**

``` shell
poetry install
```

Run the tests:

Basic example:

``` shell
poetry run python tests/test_basic.py 
```

General Example:

``` shell
poetry run python tests/test_parser_general.py 
```

# Check then the parser.

Once installed you can check the for gene rule expressions using the
command **rule_parser**. 

``` shell
rule_parser "1321A and 123123B and (123123B or 32312C)"
```
axion-dmx-api 1.0.1
A Python API for controlling Axion Lighting DMX controllers
Requires Python: >=3.7

# Axion DMX API

Axion DMX API is a Python library to interact with the Axion Lighting DMX Controller. This package allows you to control various types of DMX lighting channels, including RGB, RGBW, and RGBWW.

## Installation

Install the package via pip:

```bash
pip install axion_dmx_api
```

## Usage

### Initialize the API

To use the API, create an instance of the `AxionDmxApi` class with the IP address of your DMX controller and the password.

```python
from axion_dmx_api import AxionDmxApi

api = AxionDmxApi(host="192.168.1.2", password="your_password")
```

### Authenticate

Authenticate with the controller:

```python
authenticated = await api.authenticate()
if authenticated:
    print("Successfully authenticated with the controller.")
```

### Set Channel Level

Set the level of a specific channel:

```python
await api.set_level(channel=1, level=255)
```

### Get Channel Level

Get the current level of a specific channel:

```python
level = await api.get_level(channel=1)
print(f"Channel 1 level: {level}")
```

### Set Color (RGB)

Set the RGB color of a specific channel:

```python
await api.set_color(channel=1, rgb=(255, 0, 0))  # Set to Red
```

### Set RGBW Color

Set the RGBW color of a specific channel:

```python
await api.set_rgbw(channel=1, rgbw=(255, 0, 0, 255))  # Set to Red with White
```

### Set RGBWW Color

Set the RGBWW color of a specific channel:

```python
await api.set_rgbww(channel=1, rgbww=(255, 0, 0, 255, 128))  # Set to Red with Warm White
```

## Testing

To run the tests for this package, use pytest.

## License

This project is licensed under the MIT License - see the LICENSE file for details.
Img-prcs-package 0.0.1
I'm a software development student
Requires Python: >=3.8

# Img_prcs_package

Description. 

| The package Img_prcs_packageÂ is used to:                                                                                                                                                                                                       |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1. Processing<br />Â  Â  - Histogram matching<br />Â  Â  - Structural simalarity<br /><br />2. Resize Image Utils:<br />Â  Â  - Read Image<br />Â  Â  - Save Image<br />Â  Â  - Plot Image<br />Â  Â  - Plot result<br />Â  Â  - Plot Histogram |

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package_name

```bash
pip install Img_prcs_package
```

## Usage

```python
from Img_prcs_package.processing import combination
combination.find_difference()
```

## Author

Dev_yuji

## License

[MIT](https://choosealicense.com/licenses/mit/)
pyjcore 1.0.1
A Python package that mimics Core Java collection classes
Requires Python: >=3.6

# pyjcore
pyjcore is a Python library designed to replicate key aspects of Java's collections framework and string handling.

## Project Overview
pyjcore is a Python library designed to replicate key aspects of Java's collections framework and string handling functionalities.
This project aims to provide Pythonic equivalents of Java's well-established data structures and string utilities, making it easier for developers familiar with Java to transition to Python.

### jcollections
The jcollections library mirrors Java's collection framework and allows java like methods.
It allows to operate on various data structures  like List, Map, Vector, Set, Queue etc.



### jstring
The jstring library is a Pythonic recreation of Java's String class, designed to support various string manipulations and utilities.
Key functionalities include:

String Initialization: Supports constructors for initializing strings from raw data, other string-like objects, and byte arrays.
String Operations:
Methods for substring extraction, character retrieval, and code point operations.
Utility methods like toLowerCase, toUpperCase, and trim.
Formatting and Conversion: Provides methods for formatting, comparing, and converting strings.
These features enhance string handling by offering common transformations and manipulations similar to Java's String class.

### Testing
To ensure correctness and reliability, the project includes:

API Usage Tests: Validate core functionalities and interactions of the collection classes, demonstrating expected behaviors through various operations.
Unit Tests: Specifically target the String class, covering a wide range of string operations to ensure conformance to Java's String class behavior.

### Conclusion
The jcollections and jstring libraries provide robust tools for Python developers who need Java-like collection and string handling capabilities. By mimicking Javaâ€™s well-known frameworks and utilities, these libraries offer a familiar interface for Java developers and extend Pythonâ€™s capabilities in handling complex data structures and string operations.

## Installation

You can install the package using pip command:

```bash
pip install pyjcore
```

## Unit Test
Goto the project root directory & run the below command
Run Below Command: (change the name of unit test file)
```
python -m unittest tests.test_stringbuilder
```
pyqrbtf 0.0.3
A project for generating a QR codes in SVG format
Requires Python: >=3.8

# PyQrbtf

pyqrbtf is a Python library for generating beautiful and customizable QR codes in SVG format. It is a Python port of the original [qrbtf JavaScript library](https://github.com/latentcat/qrbtf).

## Features

- Generate aesthetically pleasing QR codes
- Multiple style options for QR code rendering
- SVG output for high-quality, scalable QR codes
- Customizable colors, shapes, and patterns
- Easy-to-use Python API

## Installation

You can install pyqrbtf using pip:

```bash
pip install pyqrbtf
```

## Usage

Here's a quick example of how to use pyqrbtf:

```python
from qrcode import QRCode
from pyqrbtf import PositioningPointType, SP1Drawer

qr = QRCode(
    version=1,
    error_correction=1,
    box_size=10,
    border=0,
)

qr.add_data("test")
qr.make()

a = SP1Drawer(positioning_point_type=PositioningPointType.circle)
text = a.to_bytes(qr.get_matrix(), {})
with open("example.svg", "wb") as f:
    f.write(text)
```

## Documentation

Will be created after 100 stars in this repo

## Examples

You can find example outputs in the `examples/` directory:

| circles_circle | circles_circle_rounded | sp1_rounded |
| --- | --- | --- |
| ![circles_circle](/examples/circles_circle.svg) | ![circles_circle_rounded](/examples/dots_planet_circle.svg) | ![sp1_rounded](/examples/sp1_rounded.svg) |


## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgements

- Original [qrbtf JavaScript library](https://github.com/latentcat/qrbtf) by latentcat
- [Python QR Code](https://github.com/lincolnloop/python-qrcode) library

## Contact

If you have any questions or feedback, please open an issue here.