OSLogManagement


NameOSLogManagement JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/TITIR1X/PyLogManagement
SummaryOutput of OS commands to str-convertible list for assignment to variables.
upload_time2022-12-06 07:27:01
maintainer
docs_urlNone
authorSantiago Benavidez (TITIR1X)
requires_python
licenseMIT
keywords python console log management regex variable string output of os commands to str-convertible list for assignment to variables.
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/TITIR1X/PyLogManagement",
    "name": "OSLogManagement",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Python,Console,Log,Management,RegEx,Variable,String,Output of OS commands to str-convertible list for assignment to variables.",
    "author": "Santiago Benavidez (TITIR1X)",
    "author_email": "SantiagoBenavidez@pythondeveloper.com",
    "download_url": "https://files.pythonhosted.org/packages/96/be/3a5dbfa9b6e7036ea6c5f63818787ef914ca478669d4d7859a0b43efd60b/OSLogManagement-0.0.1.tar.gz",
    "platform": null,
    "description": "# README.md\r\n\r\nWarning (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.\r\n\r\nDesigned to create variables with results that you can obtain by filtering the log that your terminal gives you by OS commands.  \r\n\r\nInstalation:\r\npip install OSLogManagement\r\n\r\n    >>> from LogManagement import os_commands_regex\r\n    >>> 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})')\r\n    >>> print(ip_adress)\r\n    ['192.168.0.101']\r\n\r\n    # convert list to string:\r\n    >>> ip =''.join(ip_adress)\r\n    >>> print(ip)\r\n    192.168.0.101\r\n\r\n\r\nshow_last_log()\r\n    \"\"\"_summary_\r\n    It is useful for copying special characters (which do not load in your text editor) and using them in regex parameters.\r\n    example:\r\n    \r\n    >>> from LogManagement import show_last_log\r\n    >>> show_last_log()\r\n    INFO:root:\r\n    Configuraci\u00c2\u00a2n IP de Windows\r\n\r\n    Adaptador de LAN inal\u00c2\u00a0mbrica Wi-Fi:\r\n\r\n       Sufijo DNS espec\u00c2\u00a1fico para la conexi\u00c2\u00a2n. . : home\r\n       Direcci\u00c2\u00a2n IPv6 . . . . . . . . . . : 444:444:444:4444:4444:4444:4444:4444\r\n       Direcci\u00c2\u00a2n IPv6 . . . . . . . . . . : 333:333:333::3\r\n       Direcci\u00c2\u00a2n IPv6 . . . . . . . . . . : 333:333:333::3\r\n       V\u00c2\u00a1nculo: direcci\u00c2\u00a2n IPv6 local. . . : 222::222:222:222:222%2\r\n       Direcci\u00c2\u00a2n IPv4. . . . . . . . . . . . . . : 192.168.1.2\r\n       M\u00c2\u00a0scara de subred . . . . . . . . . . . . : 111.111.111.111\r\n       Puerta de enlace predeterminada . . . . . : 1111:1111:d1::a11f:c11a\r\n                                           \r\n\r\n    >>>>>> ip_adress = os_commands_regex(os_command='ipconfig', regex_function='search', regex_parameters='Direcci\u00c2\u00a2n IPv4.+: (\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3})')\r\n    >>> print(ip_adress)\r\n    ['192.168.1.2']\r\n    \"\"\"\r\n    \r\nWarning (bug not fixed):\r\nThe 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.\r\n\r\n\r\nUseful content:\r\n\r\n- regex101.com -> build, test and debug regex\r\n\r\n- Tutorial pr\u00c3\u00a1ctico REGEX en espa\u00c3\u00b1ol: https://www.youtube.com/watch?v=Mc2j8Q-MHB4&ab_channel=ThePyCoach -> credits: The PyCoach\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Output of OS commands to str-convertible list for assignment to variables.",
    "version": "0.0.1",
    "split_keywords": [
        "python",
        "console",
        "log",
        "management",
        "regex",
        "variable",
        "string",
        "output of os commands to str-convertible list for assignment to variables."
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "4c937e27902da03a30815b67edbeb33c",
                "sha256": "1782292f0147699fffc03188f2cb60db73fd866275a3b87d02424729f9f8f8d0"
            },
            "downloads": -1,
            "filename": "OSLogManagement-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4c937e27902da03a30815b67edbeb33c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4001,
            "upload_time": "2022-12-06T07:27:01",
            "upload_time_iso_8601": "2022-12-06T07:27:01.015849Z",
            "url": "https://files.pythonhosted.org/packages/96/be/3a5dbfa9b6e7036ea6c5f63818787ef914ca478669d4d7859a0b43efd60b/OSLogManagement-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-06 07:27:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "TITIR1X",
    "github_project": "PyLogManagement",
    "lcname": "oslogmanagement"
}
        
Elapsed time: 0.02180s