Skip to content
A Python package for mapping the research software sustainability space
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resosuma
tests
.gitignore
.travis.yml
CITATION.cff
HISTORY.rst
LICENSE
MANIFEST.in
README.rst
requirements.txt
setup.py
tox.ini
visualize.py

README.rst

https://travis-ci.org/research-software/resosuma.svg?branch=master

Resosuma

resosuma (short for research software sustainability map) is a package for Python 3 which provides a data model (directed graph) for activities in the research software sustainability space ("the space").

In the graph, actors (i.e., entities that act within the space) and actees (i.e., entities which are acted on) are represented as nodes, and actions are represented as edges.

Currently, a resosuma model can be instantiated by reading the data from 3-column CSV, where the first column is the actor of an action, the second column is the action itself, and the third column is the actee of the action.

Requirements

resosuma requires Python 3 (tested against 3.4, 3.5, 3.6).

Installation

Install resosuma with pip:

pip install resosuma

Usage

To instantiate a resosuma model of type ActivityGraph, you can call:

from resosuma.graph.activitygraph import ActivityGraph

graph = ActivityGraph()
graph.read_csv(csvpath)

Once the model is instantiated, you can inspect it via:

graph.get_activities()
graph.get_nodes()

Scripts

visualize.py visualizes the model via graphviz.:

usage: visualize.py [-h] csv_file output {svg,pdf,png}

positional arguments:
  csv_file       The path of the input CSV file
  output         The path of the output file
  {svg,pdf,png}  The output format

optional arguments:
  -h, --help     show the help message and exit

How to cite

The metadata necessary for citing resosuma can be found in the CITATION.cff file.

Contribute

This project welcomes contributions. Please suggest features and report bugs via issues.

You can’t perform that action at this time.