Skip to content

3 Usage

Shahm Najeeb edited this page Nov 13, 2024 · 4 revisions

Introduction

Logicytics.py is a comprehensive tool designed to streamline and automate various tasks related to software development, system management, and data processing. It offers a wide range of functionalities through command-line flags, allowing users to customize their experience according to their needs.

Flags

General Usage

Flags are command-line arguments that modify the behaviour of the Logicytics.py script. They provide a flexible way to execute specific parts of the program or alter its default behaviour. To use a flag, include it after the script name when running it from the command line, preceded by two hyphens (--). For example:

cd Logicytics/CODE
python Logicytics.py --help

This command would run help menu of Logicytics.

Specific Flags

Logicytics.py [-h] [--default] [--threaded] [--modded] [--depth] [--nopy] [--minimal] [--debug] [--backup] [--update] 
               [--unzip-extra] [--extra] [--dev] [--reboot] [--shutdown] [--webhook] [--restore]
Click to expand for the Flag Explanation
Flag Description Additional Info
-h, --help Show this help message and exit
--default Runs Logicytics with its default settings and scripts Recommended for most users
--threaded Runs Logicytics using threads, where it runs in parallel, with default settings Recommended for some users
--modded Runs the normal Logicytics, as well as any file in the MODS directory Used for custom scripts as well as default ones
--depth Runs all default scripts in threading mode, useful for large code and data-heavy operations Will take a long time
--nopy Runs Logicytics using all non-Python scripts Use if the device doesn't have Python installed; may be outdated
--minimal Runs Logicytics in minimal mode with only essential scraping Quick scripts only
--debug Runs the debugger, checking for issues or warnings Generates a special log file for bug reporting
--backup Backs up Logicytics files to the ACCESS/BACKUPS directory Use on your own device only
--update Updates Logicytics from GitHub if downloaded via git Use on your own device only
--unzip-extra Unzips the extra directory zip file Use on your own device only
--extra Opens the extra directory menu to use additional tools Experimental; requires --unzip-extra
--dev Runs Logicytics in developer mode For those registering contributions; use on your own device
--reboot Executes a flag to reboot the device afterward
--shutdown Executes a flag to shut down the device afterward
--webhook Executes a flag to send a zip file via webhook Not yet implemented
--restore Restores Logicytics files from the ACCESS/BACKUPS directory Not yet implemented

Flags Compatibility and Restrictions

Standalone System flags (cannot be combined with others - Are part of the System tools of Logicytics):

  • --unzip-extra
  • --backup
  • --restore
  • --update
  • --extra
  • --dev
  • --debug

Unique flags (cannot be combined with each other, but can be used with sub-action flags):

  • --default
  • --minimal
  • --extra
  • --nopy
  • --modded
  • --threaded
  • --depth

Sub-action flags (cannot be used alone, must be paired with another flag):

  • --webhook
  • --reboot
  • --shutdown

Choosing multiple incompatible flags will result in an error, emphasizing the need for specificity in how you wish to execute the script.

Understanding the nuances of flag compatibility and the strict requirement for a single run flag is crucial for effectively leveraging the full potential of Logicytics.py. By carefully selecting the appropriate flags based on your current needs and ensuring compatibility, you can tailor the script's behaviour to fit your specific requirements, whether for development, debugging, system management, or data processing tasks.

File Structure

The Logicytics project is organized into several directories, each serving a distinct purpose:

  • ACCESS: If the software is used, these are generated; Contains the BACKUP zips, DATA zips, The DATA zips hashes AND the logs of both the main code and the debugger.

  • CODE: Houses the core codebase, including the wrapper, system executables, and all source code files and the custom libraries.

  • MODS: Features third-party tools or scripts that extend the functionality of Logicytics.

  • EXTRA: Contains additional resources, such as extra features or tools that can be used in conjunction with Logicytics.

Click to expand for projects structure
/Logicytics
├─── /ACCESS # Generates after execution #
│    ├─── /BACKUP
│    │    └─── # Contains the backups of the project in case of restoration later on #
│    ├─── /DATA
│    │    ├─── /Hashes
│    │    │    └─── # Contains the hashes of the zipped files #
│    │    └─── /Zip
│    │         └─── # Contains the zipped extracted data - Sorted by time as well #
│    └─── /LOGS
│         ├─── /DEBUG
│         │    └─── # Contains your debug logs #
│         └─── # Contains your normal logs #
├─── /CODE
│    ├─── /__pycache__ [You may ignore this]
│    ├─── /SysInternal_Suite
│    │    ├─── # SYS INTERNAL EXE - ZIPPED #
│    │    └─── # You may add your .sys.ignore file here to not use the EXE #
│    └─── # THE ACTUAL CODE #
├─── /EXTRA
│    └─── # ZIPPED EXTRA FEATURES #
├─── /IMG
│    └─── # You may ignore this - Includes images for the README #
└─── /MODS
     └─── # Contains the mods for the project [You can add your own mods here] #

Access Directory

The ACCESS directory is crucial for monitoring the progress and results of Logicytics operations.

The LOGS subdirectory contains the most recent debugger logs, which can be invaluable for diagnosing issues or understanding the behaviour of the script.

The DATA subdirectory holds all compressed files produced by Logicytics as well as hashes,

Finally, the subdirectory BACKUP has the backups required, providing a centralized location for managing these resources.

By thoroughly understanding and utilizing these sections and flags, users can maximize the efficiency and effectiveness of Logicytics.py, tailoring its capabilities to meet their specific needs and workflows.