Build collaboration networks from publication records.
Project description
CollabNet
This Python package allows to generate co-authorship and co-country networks. The source data (currently from OpenAlex) can be works for the same journal, institution or topic. The data is transformed into a suitable format to facilitate the network creation. Networks are generated and saved as GRAPHML files.
In addition the app allows to calculate the Adjusted International Collaboration Index, as defined in Lalli 2025.
Gephi Lite plot of Co-authorship network for 1980 with interval 3 with 738 nodes and 2402 edges. Layout in ForceAtlas2 design, colors related to Louvain modularity class. Node size by degree. The selected node with label has degree 16.
Documentation is available on ReadTheDocs.
Installation
tl;dr Use pip
pip install collabnet
Consider using a clean virtual environment to keep your main packages separated. Create a new virtual environment and install the package
python3 -m venv env
source env/bin/activate
pip install collabnet
Example
You can find an example Jupyter Notebook showing the use of package by demonstrating a query for data, transforming the data, and generate networks in the examples folder.
Testing
Tests can be run by running
uv run pytest --cov-report=term-missing --cov=src/collabnet
which installs the test dependency group and runs the files. Coverage of testing is shown.
Building documentation
The documentation is build using sphinx. Install of the doc dependency group is automated with uv:
uv run sphinx-build -c docs -b html docs docs/_build/html
Funding information
This work is part of a collaboration between the department for Structural Changes of the Technosphere, Max Planck Institute of Geoanthropology, Jena, Germany and DIMEAS - Department of Mechanical and Aerospace Engineering, Politecnico di Torino, Torino, Italy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file collabnet-0.1.0.tar.gz.
File metadata
- Download URL: collabnet-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.04","id":"plucky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02cba9a4b0d9f63e39bfc018461767032cc2bdfadd25ae28515688467cf018ed
|
|
| MD5 |
ab8e53fa45cd57568c44c7976d48edea
|
|
| BLAKE2b-256 |
d1f2a6737a89f033e9efc639d5ef22cdb1964dea8094d89d9dbae298e705d99e
|
File details
Details for the file collabnet-0.1.0-py3-none-any.whl.
File metadata
- Download URL: collabnet-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.04","id":"plucky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b447a103545e337b1cacb1fc6477a4656ff149bf9c32080843c9247a5a3b32b
|
|
| MD5 |
0f0f920a460bc6a3579b393de2c2bef3
|
|
| BLAKE2b-256 |
b8c29bf810e92f4c3882aceb5e31b4e22ec6eb92155d45233cf6284da22b89c0
|