markpbaggett / pyrepox

Python client for the Repox Swagger API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pyrepox: Repox for Humans

Travis icon readthedocs icon PyPI version PythonVersions SourceRank

Pyrepox is a lightweight Repox client written in Python. It is designed to make reading, writing, updating, and deleting content in your Repox instance as convenient as possible.

>>> from repox.repox import Repox
>>> r = Repox('http://localhost:8080', 'username', 'password')
>>> r.list_all_aggregators()
['dltn']
>>> r.list_all_aggregators(verbose=True)
[{'id': 'dltn', 'name': 'Digital Library of Tennessee', 'nameCode': 'dltn',
'homepage': 'http://localhost:8080/repox'}]
>>> r.get_list_of_providers('dltn')
['utk', 'utc', 'cmhf', 'knox', 'mtsu', 'crossroads', 'tsla', 'nash', 'memphis']

Installation

$ pip install repox

Documentation

Documentation is available at https://pyrepox.readthedocs.io/en/latest/.

Examples for each currently defined method is documented in the repox package documentation.

Todos are also documented.

Want to Help?

Help is very much appreciated. See Contributing or open an issue in the issue tracker.

About

Python client for the Repox Swagger API

License:GNU General Public License v3.0


Languages

Language:Python 100.0%