Skip to main content

No project description provided

Project description

Kube app library process flow documentation

Pre-requisites

Python installation documentation

Python installation for windows 8 and above. Documentation

pip installation for windows 8 and above. Documentation

Installation

Supported for all macOS/linux/windows.

There are some prerequisite which need to be considered before using this sdk and they have been covered in previous section.

Install kube-app sdk with pip.

  pip install kube-app

Method:

pushData(source_data,table,overwrite)

Using pushData method data can be inserted into table schema already defined in kube database.

  import kube_app as k
  client = k.Client('API_KEY','SECRET_KEY')
  client.pushData(source_data,table,overwrite)

Request Parameters:

Here is the list of parameters for pushing data into kube database:

Parameter Type Description
source_data pandas dataframe source_data is pandas dataframe which is generated by the user.
table string table is string value which can be: sales,sales_order,calendar,ar,logs,target.
overwrite boolean overwrite can be True or False. overwrite is True by default and when it is False then data is appended in current table.

Output:

boolean: True

The output is a boolean value True which suggests data is inserted into kube database.

Alt Text

getSchema(table)

Using getSchema method schema details for all tables present are extracted as pandas dataframe.

  import kube_app as k
  client = k.Client('API_KEY','SECRET_KEY')
  client.getSchema(table)

Request Parameters:

Here is the list of parameters to get schema details from kube database:

Parameter Type Description

| | table | string | table is string value which can be: sales,sales_order,calendar,ar,logs,target. |

Output:

boolean: True

The output is a pandas dataframe.

Alt Text

getData(table)

Using getData method data can be extracted from kube database.

  import kube_app as k
  client = k.Client('API_KEY','SECRET_KEY')
  client.getData(table)

Request Parameters:

Here is the list of parameters for pushing data into kube database:

Parameter Type Description

| | table | string | table is string value which can be: sales,sales_order,calendar,ar,logs,target. |

Output:

boolean: True

The output is a pandas dataframe.

Alt Text

generateCalendarData(start_month,start_year,end_year)

Using generateCalendarData method calendar can be generated which can be later pushed into kube database using pushData method.

  import kube_app as k
  client = k.Client('API_KEY','SECRET_KEY')
  client.getCalendarData(04,2023,2024)

Request Parameters:

Here is the list of parameters for pushing data into kube database:

Parameter Type Description

| | start_month | integer | start_month is integer value between 1 to 12. | | start_year | integer | start_year is an integer value. | | end_year | integer | end_year is an integer value more than start_year. |

Output:

boolean: True

The output is a pandas dataframe.

Alt Text

deleteTable(table)

Using generateCalendarData method calendar can be generated which can be later pushed into kube database using pushData method.

  import kube_app as k
  client = k.Client('API_KEY','SECRET_KEY')
  client.deleteTable('sales')

Request Parameters:

Here is the list of parameters for pushing data into kube database:

Parameter Type Description

| | table | string | table is string value which can be: sales,sales_order,calendar,ar,logs,target. |

Output:

boolean: True

The output is a pandas dataframe.

Alt Text

getSampleData(table)

Using getSampleData method sample data can be viewed in the form of pandas dataframe and later can be used to push into kube database using pushData method.

  import kube_app as k
  client = k.Client('API_KEY','SECRET_KEY')
  client.getSampleData('sales')

Request Parameters:

Here is the list of parameters for pushing data into kube database:

Parameter Type Description

| | table | string | table is string value which can be: sales,sales_order,calendar,ar,logs,target. |

Output:

boolean: True

The output is a pandas dataframe.

Alt Text

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

kube_app-0.14.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file kube_app-0.14.tar.gz.

File metadata

  • Download URL: kube_app-0.14.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for kube_app-0.14.tar.gz
Algorithm Hash digest
SHA256 8d40f2bd178077a544609e176f7bfa782257c7282432c8179d54f97ab0a5fcd9
MD5 c7896782be9f45bcff32b1f2d133701d
BLAKE2b-256 a1a4dbcf90dc1eb3aa6f93c610238f21797a9b7010be7b961e1a37b34abf442e

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