Skip to main content

typhonql-mlconnector package for queries

Project description

Prerequisites

pip install requests 
pip install python-dotenv
python requires = '>=3.6'

Use

1.This package has been developed with python3.
2.Once you install the package navigate to the package file 
  for example(Programs\Python\Python37\Lib\site-packages\'the package file name')
  and create an .env file like this:

	USER_NAME = ''
	PASS_WORD = ''
	QUERY_URL= ''
	HEALTH_URL= ''
	INGEST_URL= ''

3.After this, the files structure in the package file should look like this:

'the package file name'/
    __pycache__/
    __init__.py
    .env

4.Contact me for the credentials you must fill in the .env file.

5.The way to check if you can connect to the API is shown in the example below

import typhonql_mlconnector
typhonql_mlconnector.health_check()

6.The way to get data from a select statement is shown in the example below

import typhonql_mlconnector
data = typhonql_mlconnector.query(query_string)

7.The way to ingest a json object is shown in the example below

import typhonql_mlconnector
typhonql_mlconnector.ingest(name_of_entity, json_object_to_ingest)

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

typhonql_mlconnector-0.0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

typhonql_mlconnector-0.0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

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