Description
A Python package that provides structure for networks of interconnected nodes using the DOT language for representation.
Installation
The source code for pynetworks is hosted on GitHub. You can install pynetworks with pip:
pip install pynetworks
Documentation
Read the latest documentation for pynetworks here.
Example Usage
Node
>>> a = Node('A')
>>> b = Node('B')
>>> a.connect(b, 3)
Printing a gives:
graph {
"A" -- "B" [label=3]
}
shortest_path()
>>> a = Node('A')
>>> b = Node('B')
>>> c = Node('C')
>>> a.connect(b, 3)
>>> b.connect(c, 5)
>>> path = shortest_path(a, c)
>>> path.weight
8
Printing path gives:
graph {
"B" -- "C" [label=5]
"A" -- "B" [label=3]
}
Network
>>> a = Node('A')
>>> b = Node('B')
>>> c = Node('C')
>>> a.connect(b, 3)
>>> net = Network([a, b, c])
Printing net gives:
graph {
"C"
"A" -- "B" [label=3]
}
License
GNU.
Metadata
Release files for pynetworks 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pynetworks-0.6.1.tar.gz | 10.0 kB | Without provenance | Details for pynetworks-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pynetworks-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for pynetworks-0.6.1-py3-none-any.whl |
Total release size: 30.0 kB
Release files / pynetworks-0.6.1.tar.gz
| Download URL | pynetworks-0.6.1.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c072d16f4ec8f7032cf14d8d03ff1841d802fb3eff42d5e886475529dca2bd62
|
|
BLAKE2b-256 checksum How to use checksums |
c8eae36bfcfecdf09c82b8dcb37f15bf1bb830346e02d3fe525359b9f97bd7f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Release files / pynetworks-0.6.1-py3-none-any.whl
| Download URL | pynetworks-0.6.1-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4342b843fd135b09cf974ab76a2e5c03c7020afd6a5785c745f06249edc2a072
|
|
BLAKE2b-256 checksum How to use checksums |
30bf9b16aea697c9a654cb47817067de6ba0169d2eeb54e958e9b1e1233a349e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Security for pynetworks 0.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.