bofh
bofh, short for brukerorganisering for hvermannsen, is a Cerebrum administration tool.
It is an interactive XML/RPC command line client for a
Cerebrum.modules.bofhd server. It is unlikely you want to use this
software unless you know what Cerebrum is.
Install
bofh is implemented in Python and supports Python runtimes 2.7 (>= 2.7.9, >= RHEL7 2.7.5), and 3.6 or newer.
If you are on RHEL we recommend that you install the bofh RPM package from the university package repository:
# dnf install python3-bofh
On other systems we recommend installing from the official Python package index (PyPI) into a virtualenv:
% virtualenv ~/venv
% source ~/venv/bin/activate
(venv) % pip install bofh
Use
pybofh --help
python -m bofh --help
Module usage
import bofh
from getpass import getuser, getpass
# Get a client by connecting to bofhd
url = 'https://example.org:8000'
client = bofh.connect(url=url)
# You'll need to authenticate to access restricted commands
client.login(getuser(), getpass())
# Call commands on the client object
try:
# formatted output
client.user.info('foo')
# structured output
client.run_command('user_info', 'foo')
finally:
client.logout()
Documentation
You'll have to build the bofh documentation yourself (for now).
Documentation is built using sphinx, and build requirements are specified in the docs/requirements.txt file.
% python setup.py build_sphinx -b html
% cd build/sphinx/html
% python3 -m http.server
Then go to http://localhost:8000/.
There is also also a troff man-page for the pybofh script, which can be built with:
% python setup.py build_sphinx -b man
% man ./build/sphinx/man/pybofh.1
For other documentation formats, see docs/README.md and docs/Makefile.
Metadata
Release files for bofh 0.9.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bofh-0.9.8.tar.gz | 53.8 kB | Without provenance | Details for bofh-0.9.8.tar.gz |
Release files / bofh-0.9.8.tar.gz
| Download URL | bofh-0.9.8.tar.gz |
|---|---|
| Size | 53.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67bb7cc7a80835c02f7b6616c14ba2c46c2be719b3384956de8c81e733f6c97c
|
|
BLAKE2b-256 checksum How to use checksums |
6388e04a4f519f0c701626a191d8bf31ede22fee7698c9d2e7319046a77622f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for bofh 0.9.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.