
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
evolvishub-dataloader
Advanced tools
A comprehensive data loading framework for Excel, CSV, and JSON files with async support and data validation
Evolvis AI - Empowering Innovation Through AI
A robust, asynchronous data loading and processing framework designed for handling various file formats and database integrations.
Company: Evolvis AI
Author: Alban Maxhuni, PhD
Email: a.maxhuni@evolvis.ai
git clone https://github.com/yourusername/evolvishub-dataloader.git
cd evolvishub-dataloader
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
The framework supports both YAML and INI configuration formats. Configuration files should be placed in the config
directory.
# Data Types Configuration
data_types:
types: "inventory,sales,purchases,orders,custom"
# Directory Configuration
directories:
root: "data"
processed: "data/processed"
failed: "data/failed"
# Database Configuration
database:
path: "data/database.db"
migrations: "migrations"
backup: "backups"
# File Processing Configuration
processing:
move_processed: true
add_timestamp: true
retry_attempts: 3
max_file_size: 10485760 # 10MB
from src.data_loader.generic_data_loader import GenericDataLoader
from src.data_loader.sqlite_adapter import SQLiteAdapter
async def main():
# Initialize database adapter
db = SQLiteAdapter()
# Create data loader instance
loader = GenericDataLoader(db)
await loader.initialize()
# Load data from a file
results = await loader.load_data(
source="path/to/your/file.xlsx",
table_name="your_table_name"
)
# Process results
for result in results:
print(f"Status: {result['status']}")
print(f"Records loaded: {result.get('records_loaded', 0)}")
if __name__ == "__main__":
import asyncio
asyncio.run(main())
You can create custom processors for specific file formats:
from src.data_loader.generic_data_loader import DataProcessor
class CustomProcessor(DataProcessor):
async def process(self, data):
# Your custom processing logic here
return processed_data
Add custom validation to your data loading process:
async def custom_validator(data):
# Your validation logic here
return True
results = await loader.load_data(
source="path/to/your/file.xlsx",
table_name="your_table_name",
validator=custom_validator
)
Run the test suite:
PYTHONPATH=./ python -m pytest tests/ -v
evolvishub-dataloader/
├── config/
│ ├── data_loader.yaml
│ └── data_loader.ini
├── src/
│ └── data_loader/
│ ├── generic_data_loader.py
│ ├── sqlite_adapter.py
│ └── processors/
├── tests/
│ ├── test_generic_data_loader.py
│ ├── test_config_manager.py
│ └── test_specific_loaders.py
├── requirements.txt
└── README.md
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
For support, please open an issue in the GitHub repository or contact the maintainers.
FAQs
A comprehensive data loading framework for Excel, CSV, and JSON files with async support and data validation
We found that evolvishub-dataloader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.