Skip to main content

Pyplatform-database package provides read and write functions for Microsoft SQL database.

Installation

pip install pyplatform-database

Authentication and environment variables

Refer to main page for documentation on authentication

Exploring the modules

from pyplatform.database import *
show_me()

Usage

reading from SQL table, default database provided in credential file

from pyplatform.database import *
query = """SELECT * FROM dbo.fact_sample_superstore"""
df = az_to_df(query)
df.head()

writing pandas dataframe to sql table with non default setting

from pyplatform.database import *
# df #TODO create dataframe as source
table_name = 'dbo.fact_sample_superstore'
engine = azure_sql_engine(database='testDB')  #changing database only
df_to_azure_sql(df,table_name, engine=engine)

Metadata

Release files for pyplatform-database 2020.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyplatform-database 2020.12.1
File Size Uploaded Provenance
pyplatform-database-2020.12.1.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyplatform-database 2020.12.1
File Interpreter ABI Platform
pyplatform_database-2020.12.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / pyplatform-database-2020.12.1.tar.gz

Download URL pyplatform-database-2020.12.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
90d35d7d4815d8137fa7ca3a906376df2b51e4c147988bba7b5f7ea25c61aa3c
BLAKE2b-256 checksum
How to use checksums
48b1661a736806119d8f8ae83d1cb90597bca6f4578fd140da283eccfa455541
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / pyplatform_database-2020.12.1-py3-none-any.whl

Download URL pyplatform_database-2020.12.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f6d95f2ebe270f11d7a8f9138276b324733b63277cbaaf8cac276ac10f0bae5
BLAKE2b-256 checksum
How to use checksums
8471d0bc80b8bf2ff5cae94e6237cb39819d2e6e4603a7a114e304079210d854
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Security for pyplatform-database 2020.12.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page