Source Documentation¶
https://python-bloxone.readthedocs.io/en/latest/
-
class
bloxone.bloxone.b1(cfg_file='config.ini')[source]¶ Parent Class to simplify access to the BloxOne APIs for subclasses
Raises: IniFileSectionErrorIniFileKeyErrorAPIKeyFormatErrorFileNotFoundError
-
create(url, body='')[source]¶ Generic create object wrapper
Parameters: - url (str) – Full URL
- body (str) – JSON formatted data payload
Returns: Requests response object
Return type: response object
-
delete(url, id='')[source]¶ Generic delete object wrapper
Parameters: - url (str) – Full URL
- id (str) – Object id to delete
Returns: Requests response object
Return type: response object
-
get(url, id='', action='', **params)[source]¶ Generic get object wrapper
Parameters: - url (str) – Full URL
- id (str) – Optional Object ID
- action (str) – Optional object action, e.g. “nextavailableip”
Returns: Requests response object
Return type: response object
-
bloxone.bloxone.read_b1_ini(ini_filename)[source]¶ Open and parse ini file
Parameters: ini_filename (str) – name of inifile
Returns: Dictionary of BloxOne configuration elements
Return type: config (dict)
Raises: IniFileSectionErrorIniFileKeyErrorAPIKeyFormatErrorFileNotFoundError