Skip to main content

Official Nurtelecom gras library

Project description

nurtelecom_gras_library

This is official NurTelecom GRAS library

from nurtelecom_gras_library import get_db_connection, get_all_cred_dict, make_table_query_from_pandas

all_cred_dict = get_all_cred_dict(
    vault_url=url, vault_token=token, path_to_secret='path_to_secret', mount_point='mount_point')


#create connection
database_connection = get_db_connection('login', 'database', all_cred_dict)

#create query
test_query = "select 1 from dual"

#makes pandas df 
test_data = database_connection.get_data(query = test_query)

#make new_create query from pandas df
new_table_name_for_sql = "test_table_name"
query_from_tabel = make_table_query_from_pandas(df = test_data, table_name= new_table_name_for_sql)

#execute query
database_connection.execute(query_from_tabel)

Old connection

from nurtelecom_gras_library import PLSQL_data_importer, make_table_query_from_pandas

#create connection
database_connection = PLSQL_data_importer(user = 'user', password = 'pass', host= '192.168.1.1', port = '1521')

#create query
test_query = "select 1 from dual"

#makes pandas df 
test_data = database_connection.get_data(query = test_query)

#make new_create query from pandas df
new_table_name_for_sql = "test_table_name"
query_from_tabel = make_table_query_from_pandas(df = test_data, table_name= new_table_name_for_sql)

#execute query
database_connection.execute(query_from_tabel)

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

nurtelecom_gras_library-1.5.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

nurtelecom_gras_library-1.5.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file nurtelecom_gras_library-1.5.1.tar.gz.

File metadata

File hashes

Hashes for nurtelecom_gras_library-1.5.1.tar.gz
Algorithm Hash digest
SHA256 52733435cbc5803f1372d9614cc5a7785892a591099abba512773f3ef9e05950
MD5 3a31315ab63afb626b469b5e7e6ea05d
BLAKE2b-256 f8691b0ea5934054c4c7f43ea25b8f0008e1a36c8193342c3c111ef9fe256169

See more details on using hashes here.

File details

Details for the file nurtelecom_gras_library-1.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nurtelecom_gras_library-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00c8d10a3fd52e4b3352e91bd0e30e52cb08fa27953b163b7170489755869cbd
MD5 8ed41007d174b4a88931f87185c3a199
BLAKE2b-256 29f9bc6dbcb2c805422af25a30356fc49015645f944525f976bc9a9e9b6f6dd7

See more details on using hashes here.

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