rdfutils is a python library and a set of rdf-related tools which allow to read and write LAMMPS-compliant RDF files.
./autogen.sh
./configure
make
make install
The contents of the scripts/ directory can be used from your PATH, after installation.
For the library itself, just import the python module (from python):
import rdfutils