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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file typhonql_mlconnector-0.0.1.tar.gz.

File metadata

  • Download URL: typhonql_mlconnector-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for typhonql_mlconnector-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6c999a8ffa345e764619c5c2afab8e6a1c338909bb3cba489ce043e8aef34f64
MD5 1e370a773499d6eaf0e8917b6a1df0e0
BLAKE2b-256 c12062b8816573240e8daf8aa58ece04a996139d65d12d4b6083b33956f4059b

See more details on using hashes here.

File details

Details for the file typhonql_mlconnector-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: typhonql_mlconnector-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for typhonql_mlconnector-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e7ee825ba12a1832df561f363ff3a6fbe22dc6ed2d15d1bfa8b4dd5eaaecc4d
MD5 e35e92517820f5b61e340c6ae2c098a0
BLAKE2b-256 14e166fd9fe51ab8ac7720d4aac72d44b6691af203568de18d93f7b0e8cbf910

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