semvec/pypi-packages huggingface dataset:
xpe-library 0.0.3
A library to communicate with XPE line
Requires Python: >=3.6

# XPE 3000 library communication
Library to communicate with XPE line

## Commands
1. GET and POST method to Relay
2. GET and POST method to Input
3. GET and POST method to User card
4. Reboot system
5. GET and POST method to Dial Plan

## Server to receive events
Call run server function to start the serve to receive all events from the device

## Install
Run the command
```bash
 pip install  xpe_library-x.x.x-py3-none-any.whl
```
where x.x.x is the version of the library
structure-mapper-mentalblood 1.2
Virtual Python services managing tool
Requires Python: >=3.7

# Structure Mapper

Tool for mapping one structures to another



## Installation

```bash
pip install structure-mapper-mentalblood
```



## Usage

```python
from structure_mapper import *

mapStructure(
    'some_init_file.xml', # some initial structure or path to it
    'some_transit_file.json', # some transitional structure or path to it
    renderTemplate # some function to generate result from processed transit file
)
```



## Mapping procedure

1. Load initial structure
2. Load transitional structure
3. Search for paths in transitional structure and replace them by corresponding text from initial file
4. Call result generation function with resulted transitional structure



## Supported initial structures

* **XML** by path to file with `.xml` extension



## Supported transitional structures

* **JSON** by path to file with `.json` extension or by python `dict`



## Path syntax

* `:` in the beginning indicates that string is a path
* `:` followed by nodes names, divided by `/`



## Path processing procedure

1. Treat root node as current node
2. Take next node name from path
3. If no next node name, return result
4. Try to find node with such name in current node (recursive)
5. If no such node, return None
6. Otherwise treat found node text as result and go to step 2