Skip to content

Instantly share code, notes, and snippets.

@dwins
Created September 21, 2011 13:38
Show Gist options
  • Save dwins/1232047 to your computer and use it in GitHub Desktop.
Save dwins/1232047 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from geoserver.catalog import Catalog
cat = Catalog("http://localhost:8080/geoserver/rest/")
for r in cat.get_resources():
print "Resource %s %s %s" % (r.workspace, r.store, r.name)
for name in dir(r):
print "\t", name + ":", getattr(r, name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment