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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for typhonql_mlconnector-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c999a8ffa345e764619c5c2afab8e6a1c338909bb3cba489ce043e8aef34f64 |
|
MD5 | 1e370a773499d6eaf0e8917b6a1df0e0 |
|
BLAKE2b-256 | c12062b8816573240e8daf8aa58ece04a996139d65d12d4b6083b33956f4059b |
Close
Hashes for typhonql_mlconnector-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7ee825ba12a1832df561f363ff3a6fbe22dc6ed2d15d1bfa8b4dd5eaaecc4d |
|
MD5 | e35e92517820f5b61e340c6ae2c098a0 |
|
BLAKE2b-256 | 14e166fd9fe51ab8ac7720d4aac72d44b6691af203568de18d93f7b0e8cbf910 |