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
.devicesaccess all devices.setupsaccess all devices.packagesaccess all devices.assetsaccess all devices.group : strSets .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) -> boolreturn 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() -> booldeletes the item. Returns True if successfull, False otherwise.
InfobeamerAPI()
Static Properties
InfobeamerAPI.KEYholds our API key (required).InfobeamerAPI.USERholds the username for the API. Default is set to ''.InfobeamerAPI.URLholds the API URL. Default is set to https://info-beamer.com/api/v1/.
Standalone use
python -m infobeamerhosted
API Settings
--api-keyKey for info-beamer.com.--api-userUser for info-beamer.com. Default is empty. (optional)--api-urlKey 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
|