Skip to main content

set of utilities to integrate with Board CPM and BI toolkit

Project description

BoardUtils

BoardUtils is a set of utilities to integrate custom Python scripts / application with Board toolkit (https://www.board.com) This is an example package and should not be used to build production-grade integrations, it is intented to just showcase the functionalities of Board APIs

Installation

pip install boardutils

Usage

API Functionalities

from boardutils import api

bclient = api.Client("http://your-endpoint.board.com","client_id","client_secret") # create a new api client instance

layout_data = bclient.query("datamodel", "query-name","query-parameters") # return a dictionary with layout query results 

cubes = bclient.cubes("datamodel") # return list of cubes for specified datamodel

entities = bclient.entities("datamodel") # return list of entities for specified datamodel

entity = bclient.entity("datamodel","entity") # return list of members of a specific entity

API Functionalities

from boardutils import sharedstorage

bss = sharedstorage.client("https://your-board-shared-storage-sas-uri-token.itsaverylongtoken.withlotsofsymbols") # new board shared storage client

bss.delete_file("azure_file","azure_directory") # Delete a file - if azure_directory parameter is missing, file deleted from root

bss.upload_file("azure_file","local_path","azure_directory") # Upload a file - if azure_directory parameter is missing, file upload to root

bss.download_file("azure_file","local_path","azure_directory") # Download a file - if azure_directory parameter is missing, file download from root

bss.download_file("azure_file","local_path","azure_directory") # Download a file - if azure_directory parameter is missing, file download from root

files = bss.list_directories_and_files("azure_directory") # list files and folders in a specified directory (if no path specified, root level). Return list of Azure file objects
for file in files:
    file.name #  to return the name of azure file from the azure file class

bss.get_file_size("azure_file","azure_directory") # return file size for specified azure file ((if no path specified, root level).

License

The usage of Board API Query engine is subject to licensing from Board (https://www.board.com) Please contact your account manager for more information

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boardutils-0.7.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file boardutils-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: boardutils-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for boardutils-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e37f35a2fc97dffa078977d37d0ebb53d6e3f16eba97695f7b8241db14909b2d
MD5 270f36ea13324549e7a2c28d96501051
BLAKE2b-256 df18f0d59f92bbde2eb83926bfd16c8ce183a8970150a0c5972179f5ddb72961

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page