PyVirgo
This is a Python implementation of Virgo, the graph declarative language.
You can find details of Virgo with the Go implementation at https://github.com/r2d4/virgo
Virgo is designed so that we can express graphs in a config file. These could be dependency graphs, for example of a build process, or any other graph structure.
To invoke PyVirgo:
import virgo g = virgo.loads("a -> b, c <- d") g # doctest: +ELLIPSIS <virgo.graph.Graph object at ...> sorted(list(g.direct_successors_of("a"))) ['b', 'c']
It's more likely that we will want to load a graph from a file:
g2 = virgo.load("test/files/make.vgo") g2 # doctest: +ELLIPSIS <virgo.graph.Graph object at ...> g2.direct_successors_of("src files") {'test'}
We can access the 'node data' for each node, by identifier.
g2.nodes["src files"] 'go build ./...'
Metadata
Release files for pyvirgo 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyvirgo-0.2.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyvirgo-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / pyvirgo-0.2.0.tar.gz
| Download URL | pyvirgo-0.2.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
508afc0a964331ab877d8fcce88fe81348a3137f8e8fbc4bc27c96c9faa9ab48
|
|
BLAKE2b-256 checksum How to use checksums |
bebdc02f3cb2a90fa49610bbec40a9ca9dfc8e44a9ff6f42b48529e86bc45ccc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.3 Linux/5.4.72-v7+
|
Release files / pyvirgo-0.2.0-py3-none-any.whl
| Download URL | pyvirgo-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0c2dada2b37622362374b581749e2eeedb9d8116848fa45a5040faa2b2e2215
|
|
BLAKE2b-256 checksum How to use checksums |
a49c9fc36eb0ca4f70f1a1f5b7dc1cfa35c7dc3a8eac71ae294478b14c197829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.3 Linux/5.4.72-v7+
|