help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
environmental-sounds
RSK World
environmental-sounds
Environmental Sound Dataset - Audio Classification + Sound Event Detection + Deep Learning + Machine Learning
environmental-sounds
  • environmental-sounds
  • examples
  • .gitignore844 B
  • ADVANCED_FEATURES.md8.3 KB
  • CONTRIBUTING.md1.7 KB
  • CREATE_RELEASE.md5.1 KB
  • DATASET_STRUCTURE.md3.5 KB
  • LICENSE1.5 KB
  • PROJECT_SUMMARY.md5 KB
  • README.md5.9 KB
  • RELEASE_NOTES.md4.8 KB
  • analyze.py6.9 KB
  • api_server.py8.1 KB
  • audio_quality.py10.2 KB
  • audio_similarity.py10.4 KB
  • augment_audio.py10.9 KB
  • batch_processing.py11.3 KB
  • create_dataset_structure.py4.8 KB
  • create_sample_data.py4.3 KB
  • create_zip.py3.8 KB
  • deep_learning_models.py13.2 KB
  • environmental-sounds.zip50.1 KB
  • example_usage.py5 KB
  • index.html26.9 KB
  • load_data.py4.9 KB
  • model_interpretability.py10.3 KB
  • realtime_classification.py9.6 KB
  • requirements.txt475 B
  • setup.py1.7 KB
  • train_model.py7.8 KB
  • verify_project.py5.3 KB
test_dataset.pycreate_zip.py
create_zip.py
Raw Download
Find: Go to:
"""
Create ZIP file of the complete project

Project: Environmental Sound Dataset
Website: https://rskworld.in
Founded by: Molla Samser
Designer & Tester: Rima Khatun
Email: help@rskworld.in
Phone: +91 93305 39277
"""

import os
import zipfile
from pathlib import Path
import shutil


def create_project_zip(output_filename: str = 'environmental-sounds.zip'):
    """
    Create a ZIP file containing the entire project.
    
    Args:
        output_filename: Name of the output ZIP file
    """
    
    # Files and directories to include
    include_patterns = [
        '*.py',
        '*.md',
        '*.txt',
        '*.html',
        '*.ipynb',
        '*.csv',
        'LICENSE',
        '.gitignore',
        'examples/',
        'environmental-sounds/'
    ]
    
    # Files and directories to exclude
    exclude_patterns = [
        '__pycache__',
        '*.pyc',
        '*.pyo',
        '.git',
        '.DS_Store',
        '*.log',
        'models/',
        '*.pkl',
        '*.h5',
        '*.model'
    ]
    
    base_dir = Path('.')
    
    print("Creating project ZIP file...")
    print("=" * 50)
    
    with zipfile.ZipFile(output_filename, 'w', zipfile.ZIP_DEFLATED) as zipf:
        # Add all Python files
        for py_file in base_dir.glob('*.py'):
            if py_file.name != 'create_zip.py' and py_file.name != 'create_sample_data.py':
                zipf.write(py_file, py_file)
                print(f"Added: {py_file}")
        
        # Add documentation files
        for md_file in base_dir.glob('*.md'):
            zipf.write(md_file, md_file)
            print(f"Added: {md_file}")
        
        # Add other files
        for file in ['LICENSE', 'requirements.txt', 'setup.py', 'index.html', '.gitignore']:
            if os.path.exists(file):
                zipf.write(file, file)
                print(f"Added: {file}")
        
        # Add examples directory
        if os.path.exists('examples'):
            for root, dirs, files in os.walk('examples'):
                # Skip __pycache__
                dirs[:] = [d for d in dirs if d != '__pycache__']
                
                for file in files:
                    file_path = os.path.join(root, file)
                    zipf.write(file_path, file_path)
                    print(f"Added: {file_path}")
        
        # Add dataset directory (if it exists)
        if os.path.exists('environmental-sounds'):
            for root, dirs, files in os.walk('environmental-sounds'):
                # Skip __pycache__
                dirs[:] = [d for d in dirs if d != '__pycache__']
                
                for file in files:
                    # Skip large model files
                    if file.endswith(('.pkl', '.h5', '.model')):
                        continue
                    
                    file_path = os.path.join(root, file)
                    zipf.write(file_path, file_path)
                    print(f"Added: {file_path}")
    
    # Get file size
    file_size = os.path.getsize(output_filename)
    file_size_mb = file_size / (1024 * 1024)
    
    print("=" * 50)
    print(f"ZIP file created: {output_filename}")
    print(f"File size: {file_size_mb:.2f} MB")
    print(f"Location: {os.path.abspath(output_filename)}")
    
    return output_filename


if __name__ == '__main__':
    print("Environmental Sound Dataset - ZIP Creator")
    print("=" * 50)
    
    try:
        zip_file = create_project_zip()
        print("\n[SUCCESS] Project ZIP file created successfully!")
        print(f"\nYou can now distribute: {zip_file}")
    except Exception as e:
        print(f"Error creating ZIP file: {e}")
        import traceback
        traceback.print_exc()

128 lines•3.8 KB
python

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer