semvec/pypi-packages huggingface dataset:
dotpruner 0.1.3
Pruning redundant nodes from DOT graphs
License: MIT
Requires Python: >=3.6

# DotPruner ![DotPruner Python package Status](https://github.com/ansonmiu0214/DotPruner/workflows/tests/badge.svg) [![PyPI version](https://badge.fury.io/py/dotpruner.svg)](https://badge.fury.io/py/dotpruner)
Pruning redundant nodes from DOT graphs

Before:

![DOT graph before pruning](assets/before.png)

After: 

![DOT graph after pruning](assets/after.png)

## Installation

To install DotPruner with pip, run: `pip install dotpruner`

To install DotPruner from source, first clone the repository and then run: `python setup.py install`

## Usage

### CLI

Prune graph "in-place":
```bash
python -m dotpruner path/to/original/graph.dot
```

Use `--dest` or `-d` to specify destination for new graph:
```bash
python -m dotpruner path/to/original/graph.dot --dest path/to/new/graph.dot
```

Use `--overwrite` or `-o` to overwrite existing file in destination:
```bash
python -m dotpruner path/to/original/graph.dot -d path/to/new/graph.dot --overwrite
```

### API
```python
import dotpruner

# string representation of DOT graph
original_graph_str = ...

# pruned graph represented using pydot
pruned_graph = dotpruner.process_from_string(original_graph_str)
```

Optionally pass in a `node_picker` function
to change which node is preserved in the pruning stage --
by default, the lexicographically smaller node is preserved.

```python
# keep the lexicographically larger node
dotpruner.process_from_string(original_graph_str, node_picker=max)
```

## Tests
```bash
python -m unittest discover dotpruner.tests --verbose
```
django-cli-guicho73 0.0.1
This is a small project created with the initial purpose of facilitating, through a single command, the creation of views(views), templates(templates), models(models) and serializers(serializers) for the django web framework.
License: MIT
Requires Python: >=3.6

# DJANGO CLI

## Description

This is a small project created with the initial purpose of facilitating, through a single command, the creation of views (views), templates (templates), models (models) and serializers (serializers) for the django web framework.
You can use
[Django-Cli](https://github.com/wdavid73/django-cli)

## Requirements

1. python 3.8+
2. librari click

## Commands local

1. python main.py make-view
2. python main.py make-template
3. python main.py make-model
4. python main.py make-serializer
5. python main.py make-endpoint (working progress)

## Commands

1. django-cli make-view
2. django-cli make-template
3. django-cli make-model
4. django-cli make-serializer
5. django-cli make-endpoint (working progress)

### Note

The myapp folder is just an example to see how the commands work using this folder as a base project created by django but without all the files that correspond to it, only with a small structure of its folders