]> Untitled Git - axy/ft/python04.git/commitdiff
whitespace master
authorAxy <gilliardmarthey.axel@gmail.com>
Mon, 26 Jan 2026 13:28:26 +0000 (14:28 +0100)
committerAxy <gilliardmarthey.axel@gmail.com>
Mon, 26 Jan 2026 13:28:26 +0000 (14:28 +0100)
.gitignore [new file with mode: 0644]
ex0/ft_ancient_text.py
ex1/ft_archive_creation.py
ex2/ft_stream_management.py
ex3/ft_vault_security.py
ex4/ft_crisis_response.py

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..a03fcc7
--- /dev/null
@@ -0,0 +1,4 @@
+*.txt
+*.json
+*.tar.gz
+data_generator.py
index 27abeac4e0a39802f032b799a3a7aa82b4af5163..b913b61542a126aebba391659cbb49959c7374c1 100644 (file)
@@ -1,18 +1,18 @@
 def main():
 def main():
-    print("=== CYBER ARCHIVES - DATA RECOVERY SYSTEM ===")
+    print("=== CYBER ARCHIVES - DATA RECOVERY SYSTEM ===\n")
     filename = "ancient_fragment.txt"
     print(f"Accessing Storage Vault: {filename}")
 
     try:
         f = open(filename, "r")
     filename = "ancient_fragment.txt"
     print(f"Accessing Storage Vault: {filename}")
 
     try:
         f = open(filename, "r")
-        print("Connection established...")
+        print("Connection established...\n")
         print("RECOVERED DATA:")
         content = f.read()
         print(content)
         f.close()
         print("RECOVERED DATA:")
         content = f.read()
         print(content)
         f.close()
-        print("Data recovery complete. Storage unit disconnected.")
+        print("\nData recovery complete. Storage unit disconnected.")
     except FileNotFoundError:
     except FileNotFoundError:
-        print("ERROR: Storage vault not found. Run data generator first.")
+        print("\nERROR: Storage vault not found. Run data generator first.")
 
 
 if __name__ == "__main__":
 
 
 if __name__ == "__main__":
index 109850150e6aead59bdb06d545fd3b9b85d7b3d5..6439c8cba1e1f368920f0b0ad043aba23ba04291 100644 (file)
@@ -1,11 +1,11 @@
 def main():
 def main():
-    print("=== CYBER ARCHIVES - PRESERVATION SYSTEM ===")
+    print("=== CYBER ARCHIVES - PRESERVATION SYSTEM ===\n")
     filename = "new_discovery.txt"
     print(f"Initializing new storage unit: {filename}")
 
     try:
         f = open(filename, "w")
     filename = "new_discovery.txt"
     print(f"Initializing new storage unit: {filename}")
 
     try:
         f = open(filename, "w")
-        print("Storage unit created successfully...")
+        print("Storage unit created successfully...\n")
         print("Inscribing preservation data...")
 
         entries = [
         print("Inscribing preservation data...")
 
         entries = [
@@ -19,7 +19,7 @@ def main():
             print(entry)
 
         f.close()
             print(entry)
 
         f.close()
-        print("Data inscription complete. Storage unit sealed.")
+        print("\nData inscription complete. Storage unit sealed.")
         print(f"Archive '{filename}' ready for long-term preservation.")
 
     except Exception as e:
         print(f"Archive '{filename}' ready for long-term preservation.")
 
     except Exception as e:
index cbe51d6b62e67015f0ca14225bd8dd01f78b19f7..ec6aa76c6af52ac466bc996e15f4073664b05c98 100644 (file)
@@ -2,20 +2,21 @@ import sys
 
 
 def main():
 
 
 def main():
-    print("=== CYBER ARCHIVES - COMMUNICATION SYSTEM ===")
+    print("=== CYBER ARCHIVES - COMMUNICATION SYSTEM ===\n")
 
     arch_id = input("Input Stream active. Enter archivist ID: ")
     status = input("Input Stream active. Enter status report: ")
 
     print(
 
     arch_id = input("Input Stream active. Enter archivist ID: ")
     status = input("Input Stream active. Enter status report: ")
 
     print(
-        f"[STANDARD] Archive status from {arch_id}: {status}", file=sys.stdout
+        f"\n[STANDARD] Archive status from {arch_id}: {status}",
+        file=sys.stdout,
     )
     print(
         "[ALERT] System diagnostic: Communication channels verified",
         file=sys.stderr,
     )
     print("[STANDARD] Data transmission complete", file=sys.stdout)
     )
     print(
         "[ALERT] System diagnostic: Communication channels verified",
         file=sys.stderr,
     )
     print("[STANDARD] Data transmission complete", file=sys.stdout)
-    print("Three-channel communication test successful.")
+    print("\nThree-channel communication test successful.")
 
 
 if __name__ == "__main__":
 
 
 if __name__ == "__main__":
index edc3ce83cc68831d6c471a2a06ca9f428eedee0e..e6d38809a972b067ebf7ecedaf5390b50d5e01cb 100644 (file)
@@ -1,16 +1,16 @@
 def main():
 def main():
-    print("=== CYBER ARCHIVES - VAULT SECURITY SYSTEM ===")
+    print("=== CYBER ARCHIVES - VAULT SECURITY SYSTEM ===\n")
     print("Initiating secure vault access...")
     print("Vault connection established with failsafe protocols")
 
     print("Initiating secure vault access...")
     print("Vault connection established with failsafe protocols")
 
-    print("SECURE EXTRACTION:")
+    print("\nSECURE EXTRACTION:")
     try:
         with open("classified_data.txt", "r") as f:
             print(f.read())
     except FileNotFoundError:
         print("Error: classified_data.txt not found")
 
     try:
         with open("classified_data.txt", "r") as f:
             print(f.read())
     except FileNotFoundError:
         print("Error: classified_data.txt not found")
 
-    print("SECURE PRESERVATION:")
+    print("\nSECURE PRESERVATION:")
     try:
         with open("security_protocols.txt", "w") as f:
             data = "[CLASSIFIED] New security protocols archived"
     try:
         with open("security_protocols.txt", "w") as f:
             data = "[CLASSIFIED] New security protocols archived"
@@ -20,7 +20,7 @@ def main():
         print(f"Error: {e}")
 
     print("Vault automatically sealed upon completion")
         print(f"Error: {e}")
 
     print("Vault automatically sealed upon completion")
-    print("All vault operations completed with maximum security.")
+    print("\nAll vault operations completed with maximum security.")
 
 
 if __name__ == "__main__":
 
 
 if __name__ == "__main__":
index d4a40b60139db24d1b72be702b67882794d5c884..54c1605ba4aedecc4a9197a0eb918ff37b4e2c79 100644 (file)
@@ -14,10 +14,11 @@ def crisis_handler(filename, context):
     except Exception as e:
         print(f"RESPONSE: Unexpected error: {e}")
         print("STATUS: Crisis handled, system stable")
     except Exception as e:
         print(f"RESPONSE: Unexpected error: {e}")
         print("STATUS: Crisis handled, system stable")
+    print()
 
 
 def main():
 
 
 def main():
-    print("=== CYBER ARCHIVES - CRISIS RESPONSE SYSTEM ===")
+    print("=== CYBER ARCHIVES - CRISIS RESPONSE SYSTEM ===\n")
 
     crisis_handler("lost_archive.txt", "CRISIS ALERT")
     crisis_handler("classified_vault.txt", "CRISIS ALERT")
 
     crisis_handler("lost_archive.txt", "CRISIS ALERT")
     crisis_handler("classified_vault.txt", "CRISIS ALERT")