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_client 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_client-0.1.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

sql_data_api_client-0.1.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file sql_data_api_client-0.1.4.tar.gz.

File metadata

  • Download URL: sql_data_api_client-0.1.4.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_client-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cb3bd706c4dae1a1111ae5915f8202af7ada3c597ec7d05c0f89b4a1d36d5b08
MD5 405b61aecf6991929a4f67c83ed098d4
BLAKE2b-256 a9b9efa45c0264e3c5bbe4fe5e02a3d9a47d5f32b0f3b8b0af030106512b7b14

See more details on using hashes here.

File details

Details for the file sql_data_api_client-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sql_data_api_client-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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_client-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 14c06c825b18865c740f9c2ce9867e36a08354f2fd94b4cc58c20b118f7d9abd
MD5 bbd3a1a4c89c39d4c5f3419c0c0f0158
BLAKE2b-256 7ee19d02cd54a2d1bf398936cbc61f55276d90ef03ea7387c1a298f49c133143

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