Python wrapper around the Info Beamer Hosted API.
Project description
infobeamerhosted
Quick usage
pip install infobeamerhosted
python -m infobeamerhosted
API
Infobeamer()
from infobeamerhosted import *
InfobeamerAPI.KEY = 'your info beamer api key here'
foo = Infobeamer()
Properties
.devices
access all devices.setups
access all devices.packages
access all devices.assets
access all devices.group : str
Sets .group for all devices, setups, packages and assets.
Common Properties for Devices(), Setups(), Packages(), Assets()
.group
: the current group name used to select a subset of items. Set to '' (default) to disable..all
: all items available..selection
: items where the group name matches.group
. If this is not set the output is identitcal to.all
.
Common Methods for Devices(), Setups, Packages(), Assets()
getItems()
fetches all items from the Info-Beamer API. This is called upon initialization.
Common Properties for Device(), Setup(), Package(), Asset()
- Device(): all properties from the Device Object
- Setup(): all properties from the Setup Info Object
- Package(): all properties from the Package Object
- Asset(): all properties from the Package Object
.group
: the current group name used to select a subset of items. Set to '' (default) to disable.
Common Methods for Device(), Setup(), Package(), Asset()
.inGroup(name: str) -> bool
return True if the Item is in the group with the name name..update([option: str, payload: dict]) -> bool
. Returns True if successfull, False otherwise..delete() -> bool
deletes the item. Returns True if successfull, False otherwise.
InfobeamerAPI()
Static Properties
InfobeamerAPI.KEY
holds our API key (required).InfobeamerAPI.USER
holds the username for the API. Default is set to ''.InfobeamerAPI.URL
holds the API URL. Default is set to https://info-beamer.com/api/v1/.
Standalone use
python -m infobeamerhosted
API Settings
--api-key
Key for info-beamer.com.--api-user
User for info-beamer.com. Default is empty. (optional)--api-url
Key from info-beamer.com. Default is https://info-beamer.com/api/v1/ (optional)
You can also set environment variables for API_KEY, API_USER (optional), API_URL (optional).
export API_KEY = "infobeamer api key"
export API_USER = ""
export API_URL = "https://info-beamer.com/api/v1/"
Ressources
- API Documentation info-beamer.com/doc/api
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
infobeamerhosted-1.0.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file infobeamerhosted-1.0.tar.gz
.
File metadata
- Download URL: infobeamerhosted-1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31f3f953172744db09cd95faf198f8b5b5981889fe2f42528091b472f16fc9c8 |
|
MD5 | 6ba1262c7a0a581eb46417a0df7572c0 |
|
BLAKE2b-256 | 8a8f7fb6606c3532a4f95a02dbb5225c40eccb4cb3cf7c91fb041be11d3fe5ee |
File details
Details for the file infobeamerhosted-1.0-py3-none-any.whl
.
File metadata
- Download URL: infobeamerhosted-1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ccc2ed86adaf1290d110c9f95f6dfa8800e6be49be3bdb944285f1cb59cecd3 |
|
MD5 | dba013683f1d8dddd775bde2ba3f18dd |
|
BLAKE2b-256 | 950c8b1f201431c8af5afc54dfafea6b51a872736e4b03751adddef5da878671 |