semvec/pypi-packages huggingface dataset:
jxes 0.1
Python implementation of JXES
Requires Python: >=3.10

# Python-JXES: Python Implementation of JSON Serialization for XES Standard
This package implements [JXES](https://arxiv.org/abs/2009.06363) [1] in Python. JXES is a JSON-based serialization format for the [XES](https://www.tf-pm.org/resources/xes-standard) standard [2].

## Installation
```bash
pip install jxes
```

## Usage
The interface is compatible with [PM4Py]()
```python
from jxes import read_jxes, write_jxes
# read log
log = read_jxes('filename.jxes')
# write log
write_jxes(log, 'filename.jxes')
```

## Demo
A short demo video is available at [https://youtu.be/8adiYqeczAs](https://youtu.be/8adiYqeczAs).

## License
This package is distributed under Apache 2.0 license.

[1] M. B. S. Narayana, H. Khalifa, W. M. P. van der Aalst, JXES: JSON support for the XES event log standard, CoRR abs/2009.06363 (2020). URL: https://arxiv.org/abs/2009.06363. arXiv:2009.06363.
[2] "IEEE Standard for eXtensible Event Stream (XES) for Achieving Interoperability in Event Logs and Event Streams," in IEEE Std 1849-2023 (Revision of IEEE Std 1849-2016) , vol., no., pp.1-55, 8 Sept. 2023, doi: 10.1109/IEEESTD.2023.10267858. keywords: {IEEE Standards;Event detection;System analysis and design;Behavioral sciences;XML;event log;event stream;extensions;IEEE 1849™;system behavior;XML}.
ETHregions2Woredas 0.1.1
A brief description of your package
Requires Python: >=3.6

# ETHRegions2Woredas Package

A Python package that provides a complete list of regions, zones, and woredas.

## Installation

You can install the package using pip:

```bash
pip install ETHRegions2Woredas

```

## USAGE

Here's how to use the package:

```python
from ETHRegions2Woredas import (
    get_all_regions,
    get_all_zones,
    get_zones_by_region,
    get_woredas_by_zone,
    get_woredas_by_region,
    get_woredas_by_region_and_zone,
    get_region_by_woreda,
    get_region_by_zone,
    get_zone_by_woreda,
    get_all_woredas,
)

# Get all regions
regions = get_all_regions()
print("All Regions:", regions)

# Get all zones
zones = get_all_zones()
print("All Zones:", zones)

# Get zones by specific region
zones_in_region = get_zones_by_region('Amhara')
print("Zones in Amhara:", list(zones_in_region))

# Get woredas by specific zone
woredas_in_zone = get_woredas_by_zone('South Wollo Zone')
print("Woredas in South Wollo Zone:", woredas_in_zone)

# Get woredas by specific region
woredas_in_region = get_woredas_by_region('Amhara')
print("Woredas in Amhara:", woredas_in_region)

# Get woredas by specific region and zone
woredas_in_region_zone = get_woredas_by_region_and_zone('Amhara', 'South Wollo Zone')
print("Woredas in Amhara and South Wollo Zone:", woredas_in_region_zone)

# Get region by specific woreda
region_of_woreda = get_region_by_woreda('Amhara Sayint')
print("Region of Amhara Sayint:", region_of_woreda)

# Get region by specific zone
region_of_zone = get_region_by_zone('South Wollo Zone')
print("Region of South Wollo Zone:", region_of_zone)

# Get zone by specific woreda
zone_of_woreda = get_zone_by_woreda('Amhara Sayint')
print("Zone of Amhara Sayint:", zone_of_woreda)

# Get all woredas
all_woredas = get_all_woredas()
print("All Woredas:", all_woredas)
```
parse-ebnf 2.0.2
A parse tree generator for extended Backus-Naur form.
Requires Python: >=3.7
Keywords: EBNF, Extended Backus-Naur Form, Parse tree, Parser

# Parse EBNF

[![PyPI - Version](https://img.shields.io/pypi/v/parse-ebnf.svg)](https://pypi.org/project/parse-ebnf)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/parse-ebnf.svg)](https://pypi.org/project/parse-ebnf)

-----

**Table of Contents**

- [Introduction](#introduction)
- [Installation](#installation)
- [Quick start](#quickstart)
- [Documentation](#documentation)
- [License](#license)

## Introduction

A simple and hacky parser for EBNF as defined by ISO. Give it an EBNF string and
it'll generate a **parse tree**. Note that this package does not parse the
described grammar.

## Installation

```console
pip install parse-ebnf
```
## Quick start

```python
from parse_ebnf.parsing import ParsingError, parse_file

try:
    #Your EBNF file goes here.
    pt = parse_file(ebnf_path)
    partial = False
except ParsingError as e:
    #If an exception occurs, a partial tree is generated. See the docs for
    #details.
    pt = e.parser.pt
    partial = True

#Prints the text that the tree was parsed from.
print(str(pt))
#Prints a debug view of the tree.
print(repr(pt))

print(f'Parsing the file created a tree with {pt.count} nodes.')
print(f'The tree has a height of {pt.height}.')
print(f'Each node in the tree has at MOST {pt.maxDegree} children.')

def DepthFirst(node, partial, func):
    #Partial nodes are in a mostly undefined state.
    if not partial: func(node)
    for child in node.children:
        #If a node is partial, then its last child is partial. All other
        #children are not partial.
        if partial and child is node.children[-1]:
            DepthFirst(child, True, func)
        else:
            DepthFirst(child, False, func)

#This will visit each node in the parse tree and print the line where its
#text begins.
DepthFirst(pt.root, partial, lambda node: print(node.startLine))

from parse_ebnf.nodes import Comment

#Finds each comment in the file and prints its text content.
for child in pt.root.children:
    if isinstance(child, Comment):
        #A tree being partial means that its root is partial.
        if partial and child is pt.root.children[-1]: continue
        print(str(child))
```

## Documentation

Check the [github page](https://chaosinventor.github.io/parse-ebnf/) that
holds the documentation.

## License

`parse-ebnf` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.