Pajek Tools
Tools for converting network data to pajek files.
Pajek is a file format for networks, typically stored in files with a .net extension. It is used as input for software such as Infomap.
Installation
Install from PyPI:
pip install pajek-tools
Usage
Use the PajekWriter object to convert a network from an edgelist in pandas DataFrame form, to a Pajek .net file:
from pajek_tools import PajekWriter
writer = PajekWriter(dataframe)
writer.write("output.net")
Example
from pajek_tools import PajekWriter
import pandas as pd
df = pd.DataFrame([["a", "b"], ["a", "c"], ["c", "a"], ["c", "d"]], columns=["source", "target"])
writer = PajekWriter(df,
directed=True,
citing_colname="source",
cited_colname="target")
writer.write("output.net")
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2020-02-12)
First release on PyPI.
Metadata
Release files for pajek-tools 0.1.4
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 |
|---|---|---|---|---|
| pajek_tools-0.1.4.tar.gz | 14.0 kB | Without provenance | Details for pajek_tools-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pajek_tools-0.1.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pajek_tools-0.1.4-py2.py3-none-any.whl |
Total release size: 23.1 kB
Release files / pajek_tools-0.1.4.tar.gz
| Download URL | pajek_tools-0.1.4.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf646a865159ccdd5fa8eee557740dd058a186406b2c7a7a5e009f1f4ba510d7
|
|
BLAKE2b-256 checksum How to use checksums |
8e9ff49740a7f97e22cd4b1f1eab969538a8bc514bc6683d06f239b52c865953
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.1
|
Release files / pajek_tools-0.1.4-py2.py3-none-any.whl
| Download URL | pajek_tools-0.1.4-py2.py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4b8466df050db324c93c0cf0932c5e054ba6182f9d38f0d86774ffa7586a8bb3
|
|
BLAKE2b-256 checksum How to use checksums |
e364218263441f134e7bbf95f0eccb88b55fdbe05182d43d92d2c18b225ca977
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.1
|
Security for pajek-tools 0.1.4
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.