Releases: andrewrgarcia/bcrpy
🚀 bcrpy v3.1 - Enhanced SQL Caching & Storage Support
New in v3.1 brings streamlined and powerful SQL caching and storage options, enabling efficient data handling and retrieval in SQLite format alongside existing DataFrame support. This release optimizes workflows for handling large datasets by storing them in a structured SQL database, reducing memory usage and improving access times.
Highlights
-
SQL Save and Load Support:
Addedsave_df_as_sql
andload_from_sqlite
utility functions to easily save and retrieve data from SQLite databases. Now, users can seamlessly choose between DataFrame or SQL-based caching. -
Enhanced
Fetcher
Class:
Updated theFetcher
class to support SQL caching, allowing automatic storage and retrieval of data from SQL databases. This enhances flexibility, especially for larger datasets. -
Generalized Cache Handling:
Streamlined cache handling logic for both DataFrame and SQL formats, removing redundant methods and using a unified approach for efficient data management. -
Dependency Updates:
Updatedpoetry.lock
to includepackaging
version 24.2 for compatibility and performance improvements.
With these upgrades, bcrpy v3.1 is now more efficient for large-scale data projects, providing robust caching and storage options to meet diverse needs.
Upgrade Notes:
Existing projects using previous versions should update any custom caching workflows to leverage the new SQL functions and streamlined cache handling in Fetcher
.
Flexible Data Storage and Subtle Performance Optimizations
- Enhanced with optional
storage
parameter to select between DataFrame and SQLite formats for data extraction, improving flexibility. - Renamed internal attributes and methods for consistency:
codigos
tocodes
inGET
andlargeGET
methods.Hacha
class renamed toAxe
, with methods updated toslice
andforge
.
- Refined caching logic:
- Added SQLite-based caching for optimized performance in large data requests.
- Implemented
save_to_sqlite
,load_from_sqlite
, andsave_chunk_to_sqlite
methods for efficient chunk storage.
- Updated
MetadataHandler
with robust fallback loading for metadata and improved error handling. - Bumped documentation and version numbers to align with 3.0 release.
A package without matplotlib dependencies
A lighter, more straightforward version