semvec/pypi-packages huggingface dataset:
expipe-plugin-cinpla 0.1.5
Expipe plugins for the CINPLA lab.
Requires Python: >=3.9


# Expipe plugin CINPLA

Expipe plugin for CINPLA laboratory


## Installation

You can install the package with pip:

```bash
>>> pip install expipe-plugin-cinpla
```

or from sources:

```bash
git clone
cd expipe-plugin-cinpla
pip install -e .
```

## Usage

The starting point is a valid `expipe` project. Refer to the [expipe docs]() to read more on how
to create one.

The recommended usage is via Jupyter Notebook / Lab, using the interactive widgets to Register, Process,
Curate, and View your actions.

To launch the interactive browser, you can run:
```python
from expipe_plugin_cinpla import display_browser

project_path = "path-to-my-project"

display_browser(project_path)

```

![alt text](docs/images/browser.png)



## Updating old projects

The current version uses Neurodata Without Borders as backend instead of Exdir. If you have an existing
project created with the old version, you can convert it to a new project as follows:

```python
from expipe_plugin_cinpla import convert_old_project

old_project_path = "path-to-old-project"
new_project_path = "path-to-new-project"

probe_path = "path-to-probe-path.json" # see probes/ folder

convert_old_project(old_project_path, new_project_path, probe_path)
```

To check out other options, use `convert_old_project?`
ascii2graph 0.3.3
Converts ASCII text to a graph (represented as a dictionary of connections and

[![image](https://github.com/bast/ascii2graph/workflows/Test/badge.svg)](https://github.com/bast/ascii2graph/actions)
[![image](https://img.shields.io/badge/license-%20MPL--v2.0-blue.svg)](LICENSE)
[![PyPI badge](https://badge.fury.io/py/ascii2graph.svg)](https://badge.fury.io/py/ascii2graph)


# ascii2graph

Converts ASCII text to a graph (represented as a dictionary of connections and
angles). It can represent directed and undirected graphs.


## Installation

```bash
$ pip install ascii2graph
```


## Example

```python
from ascii2graph import graph

text = r'''
a->boo
^   |   x
|   v  /
c<--d-e
    | |
    f-g'''

result = graph(text)
print(result)
```

This produces the following graph (dictionary):
```python
result = {(1, 4, 'a'): [(1, 7, 'boo', 90)],
          (4, 4, 'c'): [(1, 4, 'a', 0)],
          (4, 8, 'd'): [(4, 4, 'c', 270), (4, 10, 'e', 90), (6, 8, 'f', 180)],
          (4, 10, 'e'): [(2, 12, 'x', 45), (4, 8, 'd', 270), (6, 10, 'g', 180)],
          (2, 12, 'x'): [(4, 10, 'e', 225)],
          (6, 8, 'f'): [(6, 10, 'g', 90), (4, 8, 'd', 0)],
          (6, 10, 'g'): [(6, 8, 'f', 270), (4, 10, 'e', 0)],
          (1, 7, 'boo'): [(4, 8, 'd', 180)]}
```

Nodes can be anything that is not one of these characters:
```
- | / \ v ^ < >
```

There is one exception (sorry!): If "/" is part of `[sometext/foo]`, then it is not interpreted
as an edge. The reason is that I needed this to visualize Git branches and Git history where I needed
`[origin/somebranch]`.


## Use case

I use it in https://github.com/bast/gitink to create SVG graphics for teaching
Git DAGs from plain text files because it is so easy to change a text file and
simply generate a new SVG image. This module helps me to obtain a graph
representation that I can use somewhere else to generate graphics.