semvec/pypi-packages huggingface dataset:
liesl 0.3.5.0
Toolbox to receive and process LSL streams and handle XDF files.
License: MIT

# LieSL

[![status](https://github.com/pyreiz/pyliesl/workflows/pytest/badge.svg)](https://github.com/pyreiz/pyliesl/actions) [![Documentation Status](https://readthedocs.org/projects/pyliesl/badge/?version=latest)](https://pyliesl.readthedocs.io/en/latest/?badge=latest) [![Coverage Status](https://coveralls.io/repos/github/pyreiz/pyliesl/badge.svg?branch=master)](https://coveralls.io/github/pyreiz/pyliesl?branch=master)

LieSL is a set of tools to manage [LSL streams](https://labstreaminglayer.readthedocs.io/) and [xdf files](https://github.com/sccn/xdf/wiki/Specifications).

# Documentation

Find the full documentation at https://pyliesl.readthedocs.io/en/latest/?badge=latest
pascal-voc-analyser 1.0.1
Pascal VOC XML annotation format analysis library
License: MIT

# Pascal VOC Analyser

Analyse your Pascal VOC XML annotation files with the help fo this package.



## Supported Features

- Get the count of annotations/objects/bounding boxes in the Pascal VOC XML file.

- Get the details of all the available classes in the XML annotation file.

- Get the coordinates of bounding boxes.

- Update the bounding boxes coordinates.

- Remove annotation classes from the VOC XML file.

- Save the modified annotation file.



## Usage

### Get Bounding Boxes Count

```python
xml_file_path = pathlib.Path("image1.xml")
xml_handler = XmlHandler(xml_file_path)
xml_handler.get_bounding_boxes_count()

# Output
# 27
```



### Annotated Classes

Returns a dictionary containing annotated label name with it's count.

```python
xml_file_path = pathlib.Path("image1.xml")
xml_handler = XmlHandler(xml_file_path)
xml_handler.get_annotation_classes_details()

# Output
# { "person": 10, "car": 12 }
```



### Bounding Box Coordinates

Get a 2D list of all the bounding box coordinates.

Each bounding box is represented as: `[xmin, ymin, xmax, ymax, label]`.

```python
xml_file_path = pathlib.Path("image1.xml")
xml_handler = XmlHandler(xml_file_path)
xml_handler.get_all_bbox_coordinates_list()

# Output
# [
#    [1650, 418, 1668, 455, "person"],
#    ...
# ]
```



### Update Bunding Box Coordinates

To update the bouding box coordinates, pass a 2D list containing coordinates for new bounding boxes.

Each bounding box coordinate should look like: `[xmin, ymin, xmax, ymax, label]`.

```python
xml_file_path = pathlib.Path("image1.xml")
xml_handler = XmlHandler(xml_file_path)
new_coordinates = [[647, 389, 664, 425, 'person_standing']]
xml_handler.update_all_bounding_box_coordinates(new_coordinates)
```



### Remove Annotation Classes

Sometime you may want to keep some classes and remove all others. Let's see how you can do this.

```python
xml_file_path = pathlib.Path("image1.xml")
xml_handler = XmlHandler(xml_file_path)
remove_class_list = ["car", "bike"]
xml_handler.remove_class(remove_class_list)
```



### Save XML File

```python
xml_file_path = pathlib.Path("image1.xml")
xml_handler = XmlHandler(xml_file_path)

# Removing unnecesary classes
remove_class_list = ["car", "bike"]
xml_handler.remove_class(remove_class_list)

# Perform other operations if required
# ...

# Saving new file
output_file_path = "./output/image1_filtered_classes.xml"
xml_handler.save_xml_file(output_file_path)
```
justrpa 0.1.3
Just RPA Common Library
License: MIT

# JUSTRPA LIBRARY

## Installation
```
pip install justrpa
```

### Get started
How to use this library

#### Define your Browser class 

You can inherit from TaskBrowser to create your own browser object for browser tasks.

```Python
from justrpa.browser import TaskBrowser

class TestBrowser(TaskBrowser):
    def before_task_run(self, task_context:dict):
        print("real before task implementation.")
        return task_context
    
    def do_test_task(self, task_params:dict):
        print("Do real task")
        print(task_params)
        return task_params
```
#### Run Task Executer

```Python
from justrpa.task import TaskExecuter 

env = {"account":"TestAccount", "taskname":"test_task", "new_browser":1, "headless":1}
task_params = {"United States": [{"test":"test"}]}
t = TaskExecuter("test_task", "tests.executer_test.TestBrowser", "do_test_task", env, task_params)
task_context = t.run()
```

#### Run Task Handler

```Python
import argparse
from justrpa.task import TaskHandler

def run_task(taskname:str):
    handler = TaskHandler()
    handler.run(taskname)

def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("task",default="", nargs="?", help="task name to run")
    args = ap.parse_args()
    task_name = args.task
    run_task(task_name)
```

#### Robot Example 

[justrpa example repository](https://github.com/jingyan/justrpa-example)