Skip to main content

Python library for Sql Data Api

Project description

sql-data-api-client-Python

SQL Data Api client for Python

Usage

pip install sql_data_api_client

import sql_data_api as sql

"""Sql Data Api"""
sql.SqlDataApi.set_api_url("https://localhost:44302")
sql.SqlDataApi.set_authentication("12121212-token-21121212")

# query data
result = sql.SqlDataApi("SQL-Shared").run_query_to_array("test1.Sample100",
    filter="country = @country",
    filter_params={"country": "UK"}
)
print(result)

# save data
status = sql.SqlDataApi("SQL-Shared").save_array("test1.Sample100", result)
print(status)

# execute stored procedure
sp_res = sql.SqlDataApi("northwind-db-connection").execute_sp_to_array("northwind.NorthwindEmployeesSummary", {'startDate': "2019-01-01", 'endDate': "2020-05-14"})
print(sp_res)

License

A permissive MIT License (c) FalconSoft Ltd.

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

sql_data_api-0.1.5.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

sql_data_api-0.1.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file sql_data_api-0.1.5.tar.gz.

File metadata

  • Download URL: sql_data_api-0.1.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for sql_data_api-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ad2c37f38fd095c4b64d28bc41c8c9129a011d4a4316e344e668b405f9fbdc9f
MD5 418dd3b0652a446073994f556f550498
BLAKE2b-256 98f14c6b91d17ad7f3e351cfab5907256e074cc29a2420b42f66ee4980e488d3

See more details on using hashes here.

File details

Details for the file sql_data_api-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: sql_data_api-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for sql_data_api-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2d485dac520986427d5bc72c21c9887b95dc91e082236f0fb0dfff515ba3eb45
MD5 e2c3bd61611652ea8cddb32fc2df435b
BLAKE2b-256 f3748a72c3ef5dd96694010b565aa755089586e973060641fb65eae914d7ace2

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page