Registry / data / sttable

sttable

JSON →
library0.0.1pypypi✓ verified 83d ago

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.

pip install sttable
INSTALL
IMPORT
SIG · STTABLE
S
sttable
datapythonv0.0.1
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse_str_table
from sttable import parse_str_table
from sttable import STTable
parser
from sttable import parser
table
from sttable import table

Initialize an STTable object with a string representation of a table and then retrieve data by rows, columns, or field names.

from sttable import STTable table_string = ( "header_1st_col | header_2nd_col |\n" "row_1_of_1st_col | row_1_of_2nd_col |\n" "row_2_of_1st_col | row_2_of_2nd_col |" ) table = STTable(table_string) # Access data by rows rows_data = table.get_rows() print("Rows:", rows_data) # Access data by columns columns_data = table.get_columns() print("Columns:", columns_data) # Access field names fields = table.get_fields() print("Fields:", fields)
Debug
Known issues
gotchaThe 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.
fix
Review the source code for necessary modifications or consider more actively maintained alternatives if long-term stability and support are crucial.
affects: <=0.0.1
gotchaThe 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.
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`.
affects: <=0.0.1
Upgrade
Version history
0.0.1latest on PyPI · released Nov 23, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
1
Resources
sttable — pip install sttable · libregistry