{"id":44622848,"url":"https://github.com/goagile/tablo","last_synced_at":"2026-02-14T14:34:48.797Z","repository":{"id":57473114,"uuid":"112098753","full_name":"goagile/tablo","owner":"goagile","description":"simple table text printer","archived":false,"fork":false,"pushed_at":"2017-11-29T06:04:07.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-16T12:36:35.504Z","etag":null,"topics":["debug","print","python","text-table"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goagile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-26T16:34:12.000Z","updated_at":"2021-04-19T12:32:16.000Z","dependencies_parsed_at":"2022-09-26T17:40:45.485Z","dependency_job_id":null,"html_url":"https://github.com/goagile/tablo","commit_stats":null,"previous_names":["khardi/tablo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goagile/tablo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goagile%2Ftablo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goagile%2Ftablo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goagile%2Ftablo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goagile%2Ftablo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goagile","download_url":"https://codeload.github.com/goagile/tablo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goagile%2Ftablo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29447317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T14:10:32.461Z","status":"ssl_error","status_checked_at":"2026-02-14T14:09:49.945Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debug","print","python","text-table"],"created_at":"2026-02-14T14:34:47.897Z","updated_at":"2026-02-14T14:34:48.782Z","avatar_url":"https://github.com/goagile.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\nTablo\n=====\n\nПростая текстовая таблица с разделителями колонок в виде '|'.\n\nСоздание и доступ\n-----------------\n\nПодключаем таблицу\n\n    \u003e\u003e\u003e from tablo import Tablo\n\nСоздание таблицы (с указанием заголовков)\n\n    \u003e\u003e\u003e headers = 'X Y Z A B'.split()\n    \u003e\u003e\u003e tablo = Tablo(headers)\n\nДобавление строки в таблицу\n\n    \u003e\u003e\u003e row = '@', 4, 2.1, False, 'Нет'\n    \u003e\u003e\u003e tablo.append_row(row)\n\nДоступ к строке по индексу, доступ к ячейке по имени столбца\n\n    \u003e\u003e\u003e row = tablo[0]\n    \u003e\u003e\u003e row.X, row.Y, row.Z, row.A, row.B\n    ('@', 4, 2.1, False, 'Нет')\n\nДоступ к строке по индексу, доступ к ячейке по индексу столбца\n\n    \u003e\u003e\u003e row = tablo[0]\n    \u003e\u003e\u003e row[0], row[1], row[2], row[3], row[4]\n    ('@', 4, 2.1, False, 'Нет')\n\nДобавление строки в таблицу\n\n    \u003e\u003e\u003e row = '\u0026', 22, 5.03, True, 'Да'\n    \u003e\u003e\u003e tablo.append_row(row)\n\nДоступ к столбцу по индексу строки\n\n    \u003e\u003e\u003e column_X = tablo.X\n    \u003e\u003e\u003e column_X[0], column_X[1]\n    ('@', '\u0026')\n\nПеребор строк и доступ к данным строки\n\n    \u003e\u003e\u003e for row in tablo:\n    ...     row.data\n    ['@', 4, 2.1, False, 'Нет']\n    ['\u0026', 22, 5.03, True, 'Да']\n\nПеребор строк и столбцов\n\n    \u003e\u003e\u003e for row in tablo:\n    ...     [col for col in row]\n    ['@', 4, 2.1, False, 'Нет']\n    ['\u0026', 22, 5.03, True, 'Да']\n\nОшибки\n======\n\nДобавление сложного типа в ячейку\n\n    \u003e\u003e\u003e row = ('@', 4, 2.1, False, ['invalid', 'data'])\n    \u003e\u003e\u003e tablo.append_row(row)\n    Traceback (most recent call last):\n        ...\n    ValueError: '['invalid', 'data']' Invalid Primitive type\n\nНеполная строка\n\n    \u003e\u003e\u003e row = ('45', 18.2)\n    \u003e\u003e\u003e tablo.append_row(row)\n    \u003e\u003e\u003e row = tablo[2]\n    \u003e\u003e\u003e row.X, row.Y, row.Z, row.A, row.B\n    ('45', 18.2, None, None, None)\n\nДоступ к несуществующей строке\n\n    \u003e\u003e\u003e column_X[10]\n    Traceback (most recent call last):\n      ...\n    IndexError: list index out of range\n\nДоступ к несуществующему атрибуту по имени столбца\n\n    \u003e\u003e\u003e row = tablo[0]\n    \u003e\u003e\u003e row.G\n    Traceback (most recent call last):\n      ...\n    AttributeError: 'G' Invalid column name\n\nПечать таблицы\n==============\n\n    \u003e\u003e\u003e t = Tablo('X  Y  Z  A  B'.split())\n    \u003e\u003e\u003e t.append_row('@ 4   2.1 False Нет'.split())\n    \u003e\u003e\u003e t.append_row('$ 5.2 8   True  Да '.split())\n\nПечать таблицы (Авто-выравнивание ширины колонок)\n\n    \u003e\u003e\u003e t.print()\n    | X | Y   | Z   | A     | B   |\n    | @ | 4   | 2.1 | False | Нет |\n    | $ | 5.2 | 8   | True  | Да  |\n\nНапечатать таблицу можно испоользуя встроеный метод print\n\n    \u003e\u003e\u003e print(t)\n    | X | Y   | Z   | A     | B   |\n    | @ | 4   | 2.1 | False | Нет |\n    | $ | 5.2 | 8   | True  | Да  |\n    \u003cBLANKLINE\u003e\n\nРучное выравнивание + автовыравнивание колонки\n\n    \u003e\u003e\u003e t.X.margin = 10\n    \u003e\u003e\u003e t.X.centred()\n    \u003e\u003e\u003e t.B.margin = 15\n    \u003e\u003e\u003e t.B.centred()\n    \u003e\u003e\u003e t.A.not_spaced()\n\n    \u003e\u003e\u003e t.print()\n    |     X      | Y   | Z   |A    |        B        |\n    |     @      | 4   | 2.1 |False|       Нет       |\n    |     $      | 5.2 | 8   |True |       Да        |\n\nЗагрузка таблицы\n================\n\nСоздание таблицы на основе строки\n\n    \u003e\u003e\u003e s = (\n    ... '| X | Y   | Z   |'\n    ... '| 1 | 2.5 | нет |'\n    ... '| 2 | 4.3 | да  |'\n    ... )\n    \u003e\u003e\u003e t2 = Tablo.from_str(s)\n    \u003e\u003e\u003e t2.print()\n    | X | Y   | Z   |\n    | 1 | 2.5 | нет |\n    | 2 | 4.3 | да  |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoagile%2Ftablo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoagile%2Ftablo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoagile%2Ftablo/lists"}