{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/2"}],"enrichment":{"capability":"Simplifies SQLAlchemy code with helper functions for credential management, bulk insert/update/upsert operations, and ORM extensions that reduce boilerplate.","skillfed_tags":["orm-helpers","credential-management","bulk-operations"],"use_cases":["Load database credentials from JSON files or environment variables without hardcoding secrets in application code.","Perform bulk inserts of thousands of records while gracefully handling primary key conflicts without one-by-one retry logic.","Automatically update or upsert multiple records by primary key in a single operation using ORM models.","Simplify SQLAlchemy connection setup across different database engines (PostgreSQL, Redshift) with a unified API.","Integrate AWS KMS decryption into credential loading for cloud-deployed applications."],"what_it_does":"sqlalchemy_mate is a wrapper library around SQLAlchemy that provides convenience functions for common database operations. It focuses on two main areas: securely loading database credentials from multiple sources (JSON files, environment variables, AWS S3, AWS KMS) without embedding secrets in code, and performing bulk insert/update/upsert operations more efficiently than row-by-row approaches.\n\nThe library extends SQLAlchemy's ORM with an ExtendedBase class that adds methods like smart_insert, update_all, and upsert_all directly to your model classes. It also provides an EngineCreator utility that abstracts away connection string construction, supporting PostgreSQL, Redshift, and other databases. The smart_insert strategy attempts bulk operations but falls back to smaller batches when primary key conflicts occur, reducing total commits compared to one-by-one inserts.","worth_installing":"Yes, if you regularly work with SQLAlchemy and need to handle bulk operations or credential management. The library is actively maintained, has no known vulnerabilities, and low install friction. It's most valuable for applications doing frequent bulk inserts with potential conflicts or managing credentials across multiple environments. For simple CRUD operations or single-row inserts, the overhead may not justify the dependency."},"id":"sqlalchemy-mate","links":{"html":"https://skillfed.io/packages/sqlalchemy-mate","md":"https://skillfed.io/packages/sqlalchemy-mate.md","pypi":"https://pypi.org/project/sqlalchemy-mate/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-06-06","license_spdx":null,"license_treatment":"permissive","name":"sqlalchemy-mate","python_support":"supports_current","summary":"A library extend sqlalchemy module, makes CRUD easier."},"popularity":{"monthly_downloads":941565,"position":4678,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.0.3"}
