Metadata-Version: 2.1
Name: OSLogManagement
Version: 0.0.1
Summary: Output of OS commands to str-convertible list for assignment to variables.
Home-page: https://github.com/TITIR1X/PyLogManagement
Author: Santiago Benavidez (TITIR1X)
Author-email: SantiagoBenavidez@pythondeveloper.com
License: MIT
Keywords: Python,Console,Log,Management,RegEx,Variable,String,Output of OS commands to str-convertible list for assignment to variables.
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE

# README.md

Warning (bug not fixed): The LogManagemet package exports the terminal log in an unencrypted last_log.txt file, so it is exposed to plaintext in cases of forensic data recovery.

Designed to create variables with results that you can obtain by filtering the log that your terminal gives you by OS commands.  

Instalation:
pip install OSLogManagement

    >>> from LogManagement import os_commands_regex
    >>> ip_adress = os_commands_regex(os_command='ipconfig', regex_function='search', regex_parameters='IP Address.+: (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})')
    >>> print(ip_adress)
    ['192.168.0.101']

    # convert list to string:
    >>> ip =''.join(ip_adress)
    >>> print(ip)
    192.168.0.101


show_last_log()
    """_summary_
    It is useful for copying special characters (which do not load in your text editor) and using them in regex parameters.
    example:
    
    >>> from LogManagement import show_last_log
    >>> show_last_log()
    INFO:root:
    ConfiguraciÂ¢n IP de Windows

    Adaptador de LAN inalÂ mbrica Wi-Fi:

       Sufijo DNS especÂ¡fico para la conexiÂ¢n. . : home
       DirecciÂ¢n IPv6 . . . . . . . . . . : 444:444:444:4444:4444:4444:4444:4444
       DirecciÂ¢n IPv6 . . . . . . . . . . : 333:333:333::3
       DirecciÂ¢n IPv6 . . . . . . . . . . : 333:333:333::3
       VÂ¡nculo: direcciÂ¢n IPv6 local. . . : 222::222:222:222:222%2
       DirecciÂ¢n IPv4. . . . . . . . . . . . . . : 192.168.1.2
       MÂ scara de subred . . . . . . . . . . . . : 111.111.111.111
       Puerta de enlace predeterminada . . . . . : 1111:1111:d1::a11f:c11a
                                           

    >>>>>> ip_adress = os_commands_regex(os_command='ipconfig', regex_function='search', regex_parameters='DirecciÂ¢n IPv4.+: (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})')
    >>> print(ip_adress)
    ['192.168.1.2']
    """
    
Warning (bug not fixed):
The LogManagemet package exports the terminal log in an unencrypted last_log.txt file, so it is exposed to plaintext in cases of forensic data recovery.


Useful content:

- regex101.com -> build, test and debug regex

- Tutorial prÃ¡ctico REGEX en espaÃ±ol: https://www.youtube.com/watch?v=Mc2j8Q-MHB4&ab_channel=ThePyCoach -> credits: The PyCoach
