{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"},{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"},{"label":"Database Engines/Servers","url":"https://skillfed.io/packages/category/database-database-engines-servers"}],"enrichment":{"capability":"Synchronize database schemas and bulk-load data using Python dataclasses and async SQL generation, supporting PostgreSQL, MySQL, and other dialects.","skillfed_tags":["async-sql","schema-migration","bulk-operations"],"use_cases":["Generate CREATE TABLE scripts from Python dataclass definitions for schema initialization across multiple SQL dialects.","Discover and reflect existing database schemas into Python object hierarchies for programmatic inspection and comparison.","Synchronize a target database schema to match a desired state defined in Python dataclasses, emitting and executing ALTER/CREATE/DROP statements.","Bulk-insert or upsert millions of rows from in-memory lists or tuples with minimal CPU overhead using async operations.","Keep a local database replica in sync with remote data sources by efficiently merging incoming records into existing tables."],"what_it_does":"pysqlsync is an async-first Python library for synchronizing database schemas and efficiently loading large volumes of data. It uses Python dataclasses to define table structures and generates CREATE, DROP, INSERT, MERGE, and DELETE SQL statements, then executes them asynchronously against database drivers like asyncpg or aiomysql. The library supports two main workflows: schema synchronization (comparing a source database state to a target Python dataclass definition and emitting transformation SQL) and data synchronization (inserting, upserting, or deleting rows from lists of tuples or dataclass instances).\n\nThe package is built around async/await patterns to maximize throughput when working with large datasets. It handles type mapping across SQL dialects, supports enumerations and composite types, and can generate SQL from dataclass definitions or discover existing database schemas via information_schema or pg_catalog. Runtime dependencies are minimal (json_strong_typing, truststore, typing_extensions), and the library targets modern Python versions (3.10+).","worth_installing":"Yes, if you need async bulk data loading or schema synchronization in Python. The library is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers genuine performance advantages over traditional ORMs for insert/upsert workflows. Install friction is low. Not suitable if you require Python versions below 3.10 or prefer synchronous APIs."},"id":"pysqlsync","links":{"html":"https://skillfed.io/packages/pysqlsync","md":"https://skillfed.io/packages/pysqlsync.md","pypi":"https://pypi.org/project/pysqlsync/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-06","license_spdx":"MIT","license_treatment":"permissive","name":"pysqlsync","python_support":"supports_current","summary":"Synchronize schema and large volumes of data"},"popularity":{"monthly_downloads":107486,"position":12613,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
