Skip to main content

Package to export report's data from holistics.io

Project description

Holistics module: export data easier

This module is made to help python user export data from QueryReport of Holistics.io, save as DataFrame object or .CSV file

A simple way to use Holistics API

from holistics import HolisticsAPI

result = HolisticsAPI(api_key='Uf6aeraergFkV147Dmkrergga4EMLU2xhD17JDF13jM=')
result.ExportData(report_id='3123574', path='C:/output.csv')

Requirement

  • Python's version: >= 3

Installation

Module can be installed with pip:

$ pip install holistics

Alternatively, you can grab the latest source code from GitHub:

$ git clone git clone git://github.com/holistics/holistics-python.git
$ python setup.py install

Documentation

1. Import module

from holistics import HolisticsAPI

2. Initalize HolisticsAPI class:

HolisticsAPI(api_key, url)

obj = HolisticsAPI(api_key = 'aerg454hoiaKJGlgku', url = 'demo.holistics.io')

3. Export data:

ExportData (report_id, filter_dict, _page_size, _page)

    my_dataframe = obj.ExportData(report_id='331235', filter_dict={'date': '2017-04-28'}, 
                                  path = 'C:/output.csv', _page_size = 12, _page = 5)
  • report_id (str): id of report. Collect from URL.
  • filter_dict (dict) (optional): dictionary of filters that would be applied to report.
    • Ex: { 'tenant': 'holistics', 'date': '2017-04-28' }
  • path (str) (optional): If you want to store export data to file, set path variable.
    • Ex: D:/Data/output.csv
  • _page_size (int) (optional): Set the page size of the response.
    • Default value: 10000000
  • _page (int) (optional): Set the page number of data to fetch.
    • Default value: 10000000

Project details


Download files

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

Source Distribution

holistics-0.0a11.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

holistics-0.0a11-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file holistics-0.0a11.tar.gz.

File metadata

  • Download URL: holistics-0.0a11.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for holistics-0.0a11.tar.gz
Algorithm Hash digest
SHA256 3362bc861b2d672a5525c5aaf524c22f6e643c9a7d5d557a897081a0f6ac3413
MD5 e3ec0ba46af1041ac901ee7a2befe6e8
BLAKE2b-256 2032cbac9cfa7324c3f096ad0fbf154de4179eb09ea988e98458c7b676bea1e6

See more details on using hashes here.

File details

Details for the file holistics-0.0a11-py3-none-any.whl.

File metadata

File hashes

Hashes for holistics-0.0a11-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b53e3fd644adeb88a0e0cd46ddffd4db2b8eb66ccae91674d5d9b4bb29e46d
MD5 129e17deb36d6bf40f1cfdfc37642d93
BLAKE2b-256 a461bf6d8acb3485a52d1b1638ade05bf0449f87d07ba282a4c0fb393ed3f290

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