...
JyFedoREST is a Jython package for creating and managing objects in a Fedora Repository. It is a minimal Jython wrapper around V3.2.1 of the Fedora REST API.
The package is avaliable available in both zip and tar/gzip formats. The source code for this product is also available from the Fedora Commons SVN at https://fedora-commons.svn.sourceforge.net/svnroot/fedora-commons/incubator/kepler/trunk/jython/fcrepo
In order to use this package, you must install Jython and also have the org.apache.commons.httpclient jar in your JAVA class path. Jython is available from The Jython Project web site . The HTTPClient is available from Apache Commons at http://hc.apache.org/httpclient-3.x.
JyFedoREST was written by Rick Moore for Fedora Commons and the Cornell University Library. Funding for this project was provided under a grant from the Mellon Foundation.
...
Usage :
Code Block |
---|
from fcrepo.http.restapi import FCRepoRestAPI
rest = FCRepoRestAPI(repository_url='http://localhost:8080/fedora', username='fedoraAdmin',
password='fedora', realm='any', namespace='fedora')
|
...
Usage:
Code Block |
---|
from fcrepo.http.RequestFactory import FCRepoRequestFactory
factory = FCRepoRequestFactory(repository_url='http://localhost:8080/fedora', username='fedoraAdmin',
password='fedora', realm='any')
|
...