{"id":6258,"library":"sttable","title":"String Table Parser","description":"sttable is a Python library (version 0.0.1, alpha status) designed to parse string representations of tables, converting them into structured data formats. It extracts table data, making it accessible by rows (as a list of dictionaries) or by columns (as a dictionary of lists). The library currently has an infrequent release cadence, with the last release in November 2019.","status":"maintenance","version":"0.0.1","language":"en","source_language":"en","source_url":"https://github.com/aBulgakoff/sttable","tags":["table-parsing","string-parsing","data-extraction"],"install":[{"cmd":"pip install sttable","lang":"bash","label":"Install with pip"}],"dependencies":[],"imports":[{"note":"The primary class for parsing string tables.","symbol":"STTable","correct":"from sttable import STTable"}],"quickstart":{"code":"from sttable import STTable\n\ntable_string = (\n    \"header_1st_col | header_2nd_col |\\n\"\n    \"row_1_of_1st_col | row_1_of_2nd_col |\\n\"\n    \"row_2_of_1st_col | row_2_of_2nd_col |\"\n)\n\ntable = STTable(table_string)\n\n# Access data by rows\nrows_data = table.get_rows()\nprint(\"Rows:\", rows_data)\n\n# Access data by columns\ncolumns_data = table.get_columns()\nprint(\"Columns:\", columns_data)\n\n# Access field names\nfields = table.get_fields()\nprint(\"Fields:\", fields)","lang":"python","description":"Initialize an STTable object with a string representation of a table and then retrieve data by rows, columns, or field names."},"warnings":[{"fix":"Review the source code for necessary modifications or consider more actively maintained alternatives if long-term stability and support are crucial.","message":"The library is in '3 - Alpha' development status and was last updated in November 2019. This suggests it is not actively maintained, and might have unaddressed bugs or security vulnerabilities. Consider the stability and long-term support before relying on it for critical applications.","severity":"gotcha","affected_versions":"<=0.0.1"},{"fix":"Ensure input strings strictly adhere to the expected format: `header_col_1 | header_col_2 |\\n row_1_col_1 | row_1_col_2 |` etc. Validate input strings before passing them to `STTable`.","message":"The parser expects a very specific format for the input string table, including `|` delimiters and `\\n` for newlines. Deviations from this strict format may lead to parsing errors or unexpected results.","severity":"gotcha","affected_versions":"<=0.0.1"}],"env_vars":null,"last_verified":"2026-04-14T00:00:00.000Z","next_check":"2026-07-13T00:00:00.000Z"}