🚀 Advanced Data Generator
📋 Table of Contents
- Overview
- Features
- Installation
- Usage
- API Documentation
- Web Interface
- Data Models
- Development
- Contributing
- License
🌟 Overview
Advanced Data Generator is a powerful, production-ready tool for generating realistic test data. It's designed to help developers, testers, and data scientists create high-quality synthetic data for various applications.
Key Benefits
- 🎯 Generate realistic, consistent test data
- 🌍 Support for multiple languages and locales
- 📊 Rich data visualization capabilities
- 🔄 Multiple export formats
- 🚀 High performance and scalability
- 🔒 Data validation and integrity checks
✨ Features
Core Features
-
Multi-Model Data Generation
- User profiles with realistic attributes
- Product catalogs with detailed information
- Order management with relationships
- Custom data generation rules
-
Internationalization
- English (en_US) support
- Persian (fa_IR) support
- Extensible locale system
-
Data Export
- JSON format
- CSV format
- YAML format
- Custom export configurations
-
Data Validation
- Email format validation
- Phone number validation
- Age verification
- Data integrity checks
Advanced Features
-
REST API
- Swagger documentation
- Rate limiting
- Authentication support
- Error handling
-
Web Interface
- Interactive dashboard
- Real-time data visualization
- Data filtering and sorting
- Export management
-
Containerization
- Docker support
- Docker Compose orchestration
- Environment isolation
- Easy deployment
🛠 Installation
Prerequisites
- Python 3.9 or higher
- pip (Python package manager)
- Git
Quick Start
# Clone the repository
git clone https://github.com/yourusername/data-generator.git
cd data-generator
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Docker Installation
# Build and run with Docker Compose
docker-compose up --build
📖 Usage
Command Line Interface
# Generate data with default settings
python main.py
# Generate specific number of records
python main.py --users 100 --products 50 --orders 200
# Generate data with Persian locale
python main.py --locale fa_IR
# Export data to different formats
python main.py --export json
API Usage
# Start the API server
uvicorn api:app --reload
# Access the API documentation
# Open http://localhost:8000/docs in your browser
Web Interface
# Start the web interface
streamlit run web_interface.py
# Access the web interface
# Open http://localhost:8501 in your browser
📚 API Documentation
The API documentation is available at http://localhost:8000/docs when the server is running.
Available Endpoints
POST /generate- Generate new dataPOST /export- Export dataGET /users- Retrieve usersGET /products- Retrieve productsGET /orders- Retrieve orders
🖥 Web Interface
The web interface provides:
- Interactive data generation
- Real-time data visualization
- Data filtering and sorting
- Export management
- Statistical analysis
📊 Data Models
User Model
class User:
id: int
name: str
email: str
address: str
phone: str
birth_date: datetime
is_active: bool
created_at: datetime
Product Model
class Product:
id: int
name: str
description: str
price: float
category: str
stock_quantity: int
created_at: datetime
Order Model
class Order:
id: int
user_id: int
product_id: int
quantity: int
total_price: float
status: str
created_at: datetime
🛠 Development
Setting Up Development Environment
# Install development dependencies
pip install -r requirements-dev.txt
# Run tests
pytest
# Format code
black .
# Lint code
flake8
Testing
# Run all tests
pytest
# Run specific test file
pytest tests/test_data_generator.py
# Run with coverage
pytest --cov=.
🤝 Contributing
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Code Style
- Follow PEP 8 guidelines
- Use type hints
- Write docstrings
- Add tests for new features
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Faker for realistic data generation
- SQLAlchemy for database operations
- FastAPI for the REST API
- Streamlit for the web interface
📞 Support
For support, please:
- Check the documentation
- Open an issue
- Contact the maintainers
Made with ❤️ by ilya nozary
© 2024 Advanced Data Generator
Metadata
Release files for advanced-data-generator 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| advanced_data_generator-1.0.0.tar.gz | 8.0 kB | Without provenance | Details for advanced_data_generator-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| advanced_data_generator-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for advanced_data_generator-1.0.0-py3-none-any.whl |
Total release size: 15.4 kB
Release files / advanced_data_generator-1.0.0.tar.gz
| Download URL | advanced_data_generator-1.0.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9103ec98dd65b7ca51734f5dbb44ea4445eeaeecab1ed501d7290bf134079aa9
|
|
BLAKE2b-256 checksum How to use checksums |
d384cd28528121bb14ac991c1938dc2b283c8042d9c4c2e4360e44ef9047573e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / advanced_data_generator-1.0.0-py3-none-any.whl
| Download URL | advanced_data_generator-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f226eccbc90403024f878bd9de626f11c78c40a846b112cce795c7a9066b4ca9
|
|
BLAKE2b-256 checksum How to use checksums |
eee8adde6d14109d4598afe6270ba6dab6b3287f16af7f388e32178eac36b0d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for advanced-data-generator 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.