GithubHelp home page GithubHelp logo

sudipbh / bbs-hypercube-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeromemaslowski/bbs-hypercube-api

0.0 1.0 0.0 446 KB

Python API for HyperCube Data Platforms

License: BSD 3-Clause "New" or "Revised" License

Python 99.99% Batchfile 0.01%

bbs-hypercube-api's Introduction

HyperCube API

Let you access all your Data on HyperCube Data Platform

visit https://www.hcube.io

Requirements

  • Python 3.6.2
  • Pip

The HyperAPI package requires the HyperAPI_routes package, which is included as a wheel in the repository. .\resources\HyperAPI_routes-1-py3-none-any.whl

User Documentation

Direct link

Quick installation

on windows

pip install --upgrade HyperAPI -r requirements.txt

on linux/mac

pip3 install --upgrade HyperAPI -r requirements.txt

Sample python code :

from hdp_lib_api import Router
api = Router(token="<USER_TOKEN>", url="https://trial.hcube.io")

Building and installing the HyperAPI module manually

Building the python wheel

From the repository root folder, run the following command lines:

Set an environment variable PACKAGE_VERSION the define the version number for the HyperAPI.

on windows

set PACKAGE_VERSION=x

on linux/mac

export PACKAGE_VERSION=x

Generate the HyperAPI wheel file.

on windows

python setup.py bdist_wheel

on linux/mac

python setup.py bdist_wheel

The file will be generated on the in the /dist folder and be named HyperAPI-x-py3-none-any.whl x being the provided version number.

Installing the python wheels

Install the HyperAPI_routes package first: on windows

pip install /resources/HyperAPI_routes-1-py3-none-any.whl

on linux/mac

pip3 install /resources/HyperAPI_routes-1-py3-none-any.whl

The HyperAPI wheel can then be installed directly using pip:

on windows

pip install /dist/HyperAPI-_x_-py3-none-any.whl

on linux/mac

pip3 install /dist/HyperAPI-_x_-py3-none-any.whl

Using the module from the source files

  • Option 1: run python from the source forlder.
  • Option 2: add the HyperAPI folder to the python path.

Running Tests

From the Repository root folder run the following command line:

on windows

python -m unittest discover -s tests -p "*_test.py" -v

on linux/max

python3 -m unittest discover -s tests -p "*_test.py" -v

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.