Skip to main content

Upload, query and manage data on Azure SQL Server from Python

Project description

azure77

Upload, query and manage data on Azure SQL Server from Python.

Installation

pip install azure77

Quick Start

from azure77 import ConnectionManager

# Connect to Azure SQL
cm = ConnectionManager(
    server="your-server.database.windows.net",
    database="your-db",
    user="your-user",
    password="your-pass",
)

# Test connection
result = cm.test_connection()
print(result.success, result.message)

Features

  • Connection management — Azure SQL via pyodbc or pymssql
  • Client/schema organization — each client maps to a SQL schema
  • File upload — CSV, XLSX, XLS with auto encoding/detection
  • Column normalization — lowercase, accent-free, SQL-safe names
  • Type inference — automatic INTEGER, DECIMAL, DATE, NVARCHAR
  • SQL query execution — with safety validation (blocks DROP, DELETE, etc.)
  • Query history — stored in local SQLite
  • Dataset browsing — metadata, import logs, schema diff
  • Benchmark — measure upload performance across strategies

CLI

azure77 connection test          # Test Azure SQL connection
azure77 connection status        # Show config status
azure77 client list              # List clients
azure77 client create "Nome"     # Create client
azure77 upload preview file.csv  # Preview file
azure77 upload import file.csv --client adl --table vendas
azure77 datasets list adl        # List datasets
azure77 benchmark run file.csv   # Run benchmark

Configuration

Create a .env file:

AZURE77_SERVER=server.database.windows.net
AZURE77_DATABASE=dbname
AZURE77_USER=username
AZURE77_PASSWORD=password

Or pass directly:

cm = ConnectionManager(
    server="...",
    database="...",
    user="...",
    password="...",
    driver="pymssql",  # or "pyodbc"
)

License

MIT

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

azure77-0.1.0.tar.gz (90.6 kB view details)

Uploaded Source

Built Distribution

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

azure77-0.1.0-py3-none-any.whl (79.3 kB view details)

Uploaded Python 3

File details

Details for the file azure77-0.1.0.tar.gz.

File metadata

  • Download URL: azure77-0.1.0.tar.gz
  • Upload date:
  • Size: 90.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for azure77-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9d0ab0617d8de080cf9b05f8fd9366153aff7defea92fe5a0d320d7c65aeb99e
MD5 050e4f61441bccac17347997eb975972
BLAKE2b-256 bc480b3c5cf6a9e162d271ac9703561189bc52b4436e13544b4a50336779d64b

See more details on using hashes here.

File details

Details for the file azure77-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: azure77-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 79.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for azure77-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88012a66358f4c8be0605a05a86c3f4d69fb4adff8946629eb8fad883b20780d
MD5 e08724b4f27539059f4a9c4d5cd7e99e
BLAKE2b-256 4200297b6e9c021b8be16fde43650aef02bfd21d5ecde28f14fd3ee35b1eca9e

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