Skip to main content

A parser for Fastboot logs

Project description

Fastboot Log Parser

Fastboot Log Parser is a Python module designed to parse logs from stdout during Fastboot flash image process. It converts the status into events and outputs the current status in JSON format.

Usage

To use the Fastboot Log Parser module in your Python project, follow these steps:

  1. Install the module using pip:

    $ pip install fastboot-log-parser
    
  2. Import the parser module and initialize in your Python code:

    from fastboot_log_parser import FlashLogParser
    
    # Initialize the parser
    parser = FlashLogParser
    
  3. Parse the log and get result as json

    Parse log

    parser.parse_log(self.logger)

    Output the parsed log as json event

    print(self.parser.get_event_as_json())

    Output the parsed history as json list

    print(self.parser.get_event_history_as_json())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastboot_log_parser-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file fastboot_log_parser-0.1.1.tar.gz.

File metadata

  • Download URL: fastboot_log_parser-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for fastboot_log_parser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c52cb51cc76f83b194754d8d08c25332d07a20e440cda55cff3c16b4fc59fc82
MD5 177d047bd87ca5f48dc48c8b36bbd261
BLAKE2b-256 b07e2e93cf7fd513e8cdd549aa5dbeb8aae55e1852f02ab3e2b3e2e86b3ec012

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page