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)
Release files for typhonql-mlconnector 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typhonql_mlconnector-0.0.1.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typhonql_mlconnector-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:5.6 kB
Release files / typhonql_mlconnector-0.0.1.tar.gz
| Download URL | typhonql_mlconnector-0.0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c999a8ffa345e764619c5c2afab8e6a1c338909bb3cba489ce043e8aef34f64
|
|
BLAKE2b-256 checksum How to use checksums |
c12062b8816573240e8daf8aa58ece04a996139d65d12d4b6083b33956f4059b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / typhonql_mlconnector-0.0.1-py3-none-any.whl
| Download URL | typhonql_mlconnector-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e7ee825ba12a1832df561f363ff3a6fbe22dc6ed2d15d1bfa8b4dd5eaaecc4d
|
|
BLAKE2b-256 checksum How to use checksums |
14e166fd9fe51ab8ac7720d4aac72d44b6691af203568de18d93f7b0e8cbf910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|