Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
/ handle-client Public archive

Python client for communicating with the CNRI Handle CRUD Web Service

License

Notifications You must be signed in to change notification settings

cordmata/handle-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Handle Client

This is a very thin client for the Handle Server Web API. There's really not much to it, it's basically an educational reference implementation for the service, but we're using it, so feel free.

Installation

pip install -e git+https://github.com/cordmata/handle-client.git#egg=handle

Usage

from handle import Client

client = Client("http://your.server.org/handle-service/", "handleAdmin", "yourPass")

client.create("2286.9/test", "http://example.org")
#>>> http://hdl.handle.net/2286.9/test

client.read("2286.9/test")
#>>> http://example.org

client.update("2286.9/test", "http://new.example.org")
#>>> http://hdl.handle.net/2286.9/test

client.delete("2286.9/test")

Told you...not much to it.

About

Python client for communicating with the CNRI Handle CRUD Web Service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages