Skip to main content

RUST ODBC 2 CSV

Extracting data from ODBC Source to CSV using Rust, made to be memory eficient and fast!

import os, json
from py_rust_odbc_csv import odbc_csv

REQUIRED PARAMETERS

the required parameters are the ODBC connection string and the query to be executed, but you can also pass the bach size and the desired filename

conn = f"Driver={{ODBC Driver NAME}};System=host;Uid={os.environ['USERNAME']};Pwd={os.environ['PASS']}"
query = "SELECT * FROM \"DB\".\"TABLE\""

EXCUTION

To execute we call the odbc_csv function and pass the list of arguments:\

  • 1st ODBC Connection String;
  • 2nd Query String;
  • 3rd Bach Size, Number of rows to load at a time (Optional);
  • 4rd Required File Name, if not the csv file will be generate with a UUIDv4 name (Optional);

The result will be in JSON format (json {success: bool, msg: str, fname: str (path)})

res = odbc_csv([conn, query])
r = json.loads(res)

BUILD FROM SOURCE

maturin build --release -i python

Metadata

Release files for py-rust-odbc-csv 1.0.1

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

Built distributions (wheels)

Table of built distributions (wheels) for py-rust-odbc-csv 1.0.1
File Interpreter ABI Platform Actions
py_rust_odbc_csv-1.0.1-cp311-none-win_amd64.whl CPython 3.11 none Windows x86-64 Details for py_rust_odbc_csv-1.0.1-cp311-none-win_amd64.whl
py_rust_odbc_csv-1.0.1-cp310-none-win_amd64.whl CPython 3.10 none Windows x86-64 Details for py_rust_odbc_csv-1.0.1-cp310-none-win_amd64.whl

Total release size: 366.1 kB

Release files / py_rust_odbc_csv-1.0.1-cp311-none-win_amd64.whl

Download URL py_rust_odbc_csv-1.0.1-cp311-none-win_amd64.whl
Size 183.1 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
6a84fc36fd3fe4d4354e8e4c9cbb63e69660dda4d8191e2c1ce27815090f8c2d
BLAKE2b-256 checksum
How to use checksums
a93785138918593081eee4a13f3c606ae759f47b14356ed3a75c03a4e70ea3a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / py_rust_odbc_csv-1.0.1-cp310-none-win_amd64.whl

Download URL py_rust_odbc_csv-1.0.1-cp310-none-win_amd64.whl
Size 183.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
22a0fee3cdba933a47a1616f3e902a6b91fbc98e18c0bdf88164dbecd48cce1e
BLAKE2b-256 checksum
How to use checksums
f55782f93da38c71842f666da5be79e72a6b3cad69983f37420d50e10152b90b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for py-rust-odbc-csv 1.0.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