Skip to main content
Documentation Status https://github.com/MacHu-GWU/sqlalchemy_upsert_kit-project/actions/workflows/main.yml/badge.svg https://codecov.io/gh/MacHu-GWU/sqlalchemy_upsert_kit-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/sqlalchemy-upsert-kit.svg https://img.shields.io/pypi/l/sqlalchemy-upsert-kit.svg https://img.shields.io/pypi/pyversions/sqlalchemy-upsert-kit.svg https://img.shields.io/badge/✍️_Release_History!--None.svg?style=social&logo=github https://img.shields.io/badge/⭐_Star_me_on_GitHub!--None.svg?style=social&logo=github
https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to sqlalchemy_upsert_kit Documentation

https://sqlalchemy-upsert-kit.readthedocs.io/en/latest/_static/sqlalchemy_upsert_kit-logo.png

sqlalchemy_upsert_kit provides high-performance bulk upsert operations for SQLAlchemy applications using temporary table staging. It offers three optimized strategies: insert_or_ignore for conflict-free insertion, insert_or_replace for complete record replacement, and insert_or_merge for selective column updates while preserving existing data. Each strategy leverages efficient SQL JOIN operations and temporary tables to achieve ~20x performance improvements over traditional row-by-row upserts, making it ideal for ETL processes, data synchronization, and bulk data operations where speed and reliability are critical.

Install

sqlalchemy_upsert_kit is released on PyPI, so all you need is to:

$ pip install sqlalchemy-upsert-kit

To upgrade to latest version:

$ pip install --upgrade sqlalchemy-upsert-kit

Metadata

Release files for sqlalchemy-upsert-kit 0.1.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 sqlalchemy-upsert-kit 0.1.1
File Size Uploaded
sqlalchemy_upsert_kit-0.1.1.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqlalchemy-upsert-kit 0.1.1
File Interpreter ABI Platform
sqlalchemy_upsert_kit-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 41.9 kB

Release files / sqlalchemy_upsert_kit-0.1.1.tar.gz

Download URL sqlalchemy_upsert_kit-0.1.1.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cedc59a0b8058831211c2f3528cb8cf87510009b086c3a2e9d221b152f7514d3
BLAKE2b-256 checksum
How to use checksums
b437faf61bb9015838eabeecd69e8558c124265e38000b1608abd1937e94ee4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.8

Release files / sqlalchemy_upsert_kit-0.1.1-py3-none-any.whl

Download URL sqlalchemy_upsert_kit-0.1.1-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91970339ffb455d531fc737867cfa8d3dfe050ac7c325c912fb5812a76cf77fd
BLAKE2b-256 checksum
How to use checksums
df130fb3ea06e37608a764b4cf73c312ef5f0ea94e7016a5b72c436e14335efb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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