From f2035ecc9836414e96935f408b05836857241b77 Mon Sep 17 00:00:00 2001 From: "Sergi S.M." Date: Sat, 4 Jan 2025 12:23:17 +0100 Subject: [PATCH] Updated .gitignore and removed unnecessary tracked files --- .gitignore | 36 ++++--- build_protos.sh | 30 ------ fix_imports.sh | 6 -- tree.txt | 245 ------------------------------------------------ 4 files changed, 21 insertions(+), 296 deletions(-) delete mode 100755 build_protos.sh delete mode 100755 fix_imports.sh delete mode 100644 tree.txt diff --git a/.gitignore b/.gitignore index 72e399a..5ef5b29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,36 +1,38 @@ -# Byte-compiled files and cache +# ------------------------------- +# Python Bytecode and Cache __pycache__/ *.py[cod] *$py.class -# Virtual environment and environment configuration +# Virtual Environment venv/ .env/ env/ *.env +.env.*.local -# Package and build files +# Build and Distribution *.egg-info/ *.egg *.whl build/ dist/ -# Test and coverage results +# Testing and Coverage .coverage htmlcov/ .tox/ .nox/ -pytest_cache/ +.pytest_cache/ .cache/ # PyInstaller *.spec -# Jupyter Notebook checkpoints +# Jupyter Notebook Checkpoints .ipynb_checkpoints/ -# Logs, temporary files, and debug files +# Logs and Debug Files *.log logs/ *.tmp @@ -38,26 +40,30 @@ debug.log seigr_hypha_crypt.log *.swp -# System files +# System Files .DS_Store Thumbs.db -# IDE/editor configs +# IDE/Editor Configurations .vscode/ .idea/ *.sublime-workspace *.sublime-project -# Environment files -.env -.env.*.local - -# Project-specific folders +# Project-Specific Folders uploads/ encoded_files/ decoded_files/ project_tree.txt +tree.txt -# Temporary generated documentation files +# Temporary Documentation Files docs/_build/ docs/_static/ + +# Shell Scripts (temporary) +*.sh + +# Protobuf and External Dependencies +src/protobuf-29.2/ +third_party/ diff --git a/build_protos.sh b/build_protos.sh deleted file mode 100755 index 8ed5a29..0000000 --- a/build_protos.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Ensure script stops on errors -set -e - -# Define paths -PROTO_SRC="src/seigr_protocol" -PROTO_OUT="src/seigr_protocol/compiled" - -# Clean previous compilation artifacts -rm -rf "$PROTO_OUT"/* -rm -rf ~/.pylint.d - -# Move to src directory for consistent path resolution -pushd src/seigr_protocol > /dev/null - -# Compile Protobuf Files -protoc \ - --proto_path=. \ - --python_out=compiled \ - $(find . -name "*.proto") - -# Return to the original directory -popd > /dev/null - -# Verify Successful Compilation -echo "✅ Protobuf files compiled successfully." - -# Clear Pylint Cache -rm -rf ~/.pylint.d diff --git a/fix_imports.sh b/fix_imports.sh deleted file mode 100755 index b3b2e7c..0000000 --- a/fix_imports.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -# Adjust imports in compiled Protobuf files -find src/seigr_protocol/compiled -name "*.py" -exec sed -i 's/^import \([a-zA-Z_]*_pb2\)/from . import \1/' {} + - -echo "✅ Imports in compiled Protobuf files have been fixed." diff --git a/tree.txt b/tree.txt deleted file mode 100644 index 6c2078d..0000000 --- a/tree.txt +++ /dev/null @@ -1,245 +0,0 @@ -/home/sergism/gits/dot_seigr -├── CNAME -├── CODE_OF_CONDUCT.md -├── CONTRIBUTING.md -├── LICENSE -├── README.md -├── SECURITY.md -├── app.py -├── build_protos.sh -├── config.py -├── decoded_files -├── docs -│   └── src -│   └── SUMMARY.md -├── encoded_files -├── environment.yml -├── fix_imports.sh -├── logs -├── project_tree.txt -├── pylint_wrapper.sh -├── pytest.ini -├── routes -│   ├── __init__.py -│   ├── cluster_routes.py -│   ├── identity_routes.py -│   ├── monitor_routes.py -│   └── ping_routes.py -├── seigr_hypha_crypt.log -├── src -│   ├── __init__.py -│   ├── __pycache__ -│   │   └── __init__.cpython-310.pyc -│   ├── crypto -│   │   ├── __init__.py -│   │   ├── asymmetric_utils.py -│   │   ├── cbor_utils.py -│   │   ├── compliance_auditing.py -│   │   ├── config_loader.py -│   │   ├── constants.py -│   │   ├── encoding_utils.py -│   │   ├── hash_utils.py -│   │   ├── helpers.py -│   │   ├── hypha_crypt.py -│   │   ├── integrity_verification.py -│   │   ├── key_derivation.py -│   │   ├── key_management.py -│   │   ├── protocol_integrity.py -│   │   ├── random_utils.py -│   │   ├── secure_logging.py -│   │   ├── session_manager.py -│   │   ├── symmetric_utils.py -│   │   └── threat_detection.py -│   ├── dot_seigr -│   │   ├── __init__.py -│   │   ├── access_control.py -│   │   ├── capsule -│   │   │   ├── __init__.py -│   │   │   ├── seigr_coordinate.py -│   │   │   ├── seigr_encoder_decoder.py -│   │   │   ├── seigr_integrity.py -│   │   │   ├── seigr_integrity_manager.py -│   │   │   ├── seigr_link_manager.py -│   │   │   ├── seigr_manager.py -│   │   │   ├── seigr_metadata.py -│   │   │   ├── seigr_serializer.py -│   │   │   └── seigr_temporal_layer.py -│   │   ├── dot_seigr.py -│   │   ├── lineage -│   │   │   ├── __init__.py -│   │   │   ├── lineage.py -│   │   │   ├── lineage_entry.py -│   │   │   ├── lineage_integrity.py -│   │   │   ├── lineage_manager.py -│   │   │   ├── lineage_serializer.py -│   │   │   └── lineage_storage.py -│   │   ├── rollback.py -│   │   ├── seed_dot_seigr.py -│   │   ├── seigr_constants.py -│   │   ├── seigr_file.py -│   │   ├── seigr_ipfs_utils.py -│   │   ├── serialization_manager.py -│   │   ├── temporal -│   │   │   └── temporal_layer_manager.py -│   │   └── utils -│   │   ├── __init__.py -│   │   ├── integrity.py -│   │   └── serialization_manager.py -│   ├── identity -│   │   ├── encryption_manager.py -│   │   ├── generate_identity.py -│   │   ├── seigr_identity.py -│   │   ├── usb_manager.py -│   │   └── verification_manager.py -│   ├── immune_system -│   │   ├── __init__.py -│   │   ├── adaptive_monitoring.py -│   │   ├── immune_system.py -│   │   ├── integrity_monitoring.py -│   │   ├── rollback_handling.py -│   │   ├── threat_detection.py -│   │   └── threat_response.py -│   ├── interpreter -│   │   ├── __init__.py -│   │   ├── capsule_interpreter.py -│   │   ├── compatibility.py -│   │   ├── data_interpreter.py -│   │   ├── formatter.py -│   │   ├── metadata_interpreter.py -│   │   ├── templates -│   │   │   ├── customizations -│   │   │   │   ├── display_options.py -│   │   │   │   └── themes.py -│   │   │   ├── detail_template.py -│   │   │   ├── interactive_template.py -│   │   │   └── summary_template.py -│   │   └── visualization_helper.py -│   ├── ipfs -│   │   ├── api_connector.py -│   │   ├── daemon_manager.py -│   │   ├── file_handler.py -│   │   ├── ipfs_manager.py -│   │   └── session_tracker.py -│   ├── replication -│   │   ├── __init__.py -│   │   ├── redistributor.py -│   │   ├── replication_controller.py -│   │   ├── replication_demand.py -│   │   ├── replication_manager.py -│   │   ├── replication_self_heal.py -│   │   ├── replication_threat.py -│   │   └── target_calculator.py -│   ├── seigr_cell -│   │   ├── __init__.py -│   │   ├── seigr_cell.py -│   │   ├── seigr_cell_decoder.py -│   │   ├── seigr_cell_encoder.py -│   │   ├── seigr_cell_manager.py -│   │   ├── seigr_cell_metadata.py -│   │   ├── seigr_cell_validator.py -│   │   └── utils -│   │   ├── __init__.py -│   │   ├── encoding_utils.py -│   │   └── validation_utils.py -│   ├── seigr_protocol -│   │   ├── __init__.py -│   │   ├── __pycache__ -│   │   │   └── __init__.cpython-310.pyc -│   │   ├── access_control.proto -│   │   ├── access_policies.proto -│   │   ├── ai_analysis.proto -│   │   ├── alerting.proto -│   │   ├── analytics.proto -│   │   ├── audit_logging.proto -│   │   ├── cell_metadata.proto -│   │   ├── common.proto -│   │   ├── common_requests.proto -│   │   ├── compiled -│   │   ├── coordinate.proto -│   │   ├── cross_chain_operations.proto -│   │   ├── encryption.proto -│   │   ├── error_handling.proto -│   │   ├── event.proto -│   │   ├── file_metadata.proto -│   │   ├── hashing.proto -│   │   ├── identity.proto -│   │   ├── integrity.proto -│   │   ├── inter_cluster.proto -│   │   ├── interpretation.proto -│   │   ├── lineage.proto -│   │   ├── machine_learning.proto -│   │   ├── monitoring.proto -│   │   ├── mycelith_voting.proto -│   │   ├── network.proto -│   │   ├── network_management.proto -│   │   ├── notification.proto -│   │   ├── orchestration.proto -│   │   ├── pipeline.proto -│   │   ├── policy.proto -│   │   ├── replication.proto -│   │   ├── resource_management.proto -│   │   ├── reward_distribution.proto -│   │   ├── rollback.proto -│   │   ├── script.proto -│   │   ├── seed_dot_seigr.proto -│   │   ├── segment_metadata.proto -│   │   ├── seigr_cell.proto -│   │   ├── seigr_protocol_documentation.md -│   │   ├── seigr_token.proto -│   │   ├── sensor_management.proto -│   │   ├── smart_contract.proto -│   │   ├── streaming.proto -│   │   ├── temporal.proto -│   │   ├── treasury_management.proto -│   │   ├── user_management.proto -│   │   └── visualization.proto -│   ├── static -│   │   ├── css -│   │   │   └── style.css -│   │   └── js -│   │   └── script.js -│   ├── templates -│   │   ├── base.html -│   │   ├── decode.html -│   │   ├── encode.html -│   │   └── home.html -│   └── visualizer -│   └── visualizer.py -├── tests -│   ├── __init__.py -│   ├── conftest.py -│   ├── crypto -│   │   ├── test_asymmetric_utils.py -│   │   ├── test_cbor_utils.py -│   │   ├── test_encoding_utils.py -│   │   ├── test_hash_utils.py -│   │   ├── test_hypha_crypt.py -│   │   ├── test_integrity_verification.py -│   │   └── test_key_derivation.py -│   ├── hypha_crypt -│   │   └── test_hypha_crypt.py -│   ├── identity -│   │   └── test_identity.py -│   ├── immune_system -│   │   ├── test_immune_system.py -│   │   ├── test_integrity.py -│   │   └── test_rollback.py -│   ├── replication -│   │   ├── test_replication_controller.py -│   │   ├── test_replication_demand.py -│   │   ├── test_replication_self_heal.py -│   │   └── test_replication_threat.py -│   ├── seigr_cell -│   │   ├── test_seigr_cell_encoder.py -│   │   └── test_seigr_cell_manager.py -│   ├── test_lineage.py -│   ├── test_lineage_entry.py -│   ├── test_lineage_integrity.py -│   ├── test_lineage_serializer.py -│   ├── test_lineage_storage.py -│   ├── test_seed_dot_seigr.py -│   └── test_seigr_file.py -├── tree.txt -└── uploads - -40 directories, 203 files