Skip to content

Python client for communicating with the CNRI Handle CRUD Web Service

License

Notifications You must be signed in to change notification settings

asulibraries/handle-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 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

  • Python 100.0%