diff options
author | Joerg Steffens <joerg.steffens@dass-it.de> | 2015-09-07 17:54:33 +0300 |
---|---|---|
committer | Joerg Steffens <joerg.steffens@dass-it.de> | 2015-09-07 18:29:38 +0300 |
commit | c52b39fde00129026cbaf9d694f92bee8afce8a5 (patch) | |
tree | 5ed519d41bd7305182d60212f26d3fe9e859e21f /README.md | |
parent | 170bd4571b94e79470875210f1aba963bfb3a516 (diff) |
prepared creating Linux packages
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/README.md b/README.md deleted file mode 100644 index fa66071..0000000 --- a/README.md +++ /dev/null @@ -1,45 +0,0 @@ -python-bareos -============= - -Python libraries to access Bareos - -## Example - - -### preperation - -``` -export PYTHONPATH=. -python -``` - -### calling bareos-director user agent commands - -``` -import bareos.bsock - -password=bareos.bsock.Password("secret") -bsock=bareos.bsock.BSock(address="localhost", port=9001, password=password) -print bsock.call("help") -... -``` - -### simple version of the bconsole in Python - -``` -import bareos.bsock -password=bareos.bsock.Password("secret") -bconsole=bareos.BSock(address="localhost", port=9001, password=password) -bconsole.interactive() -... -``` - -### use JSON objects of API mode 2 - -``` -import bareos.bsock -password=bareos.bsock.Password("secret") -bconsole=bareos.bsock.BSockJson(address="localhost", port=9001, password=password) -bconsole.call("list pools") -... -``` |