pytablewriter 0.64.0

A python library to write a table in various formats: CSV, HTML, JavaScript, JSON, LTSV, Markdown, MediaWiki, Excel, Pandas, Python, reStructuredText, SQLite, TOML, TSV. Also supports: - Automatic tabular data formatting - Alignment - Padding - Decimal places of numbers - Multibyte character support - Write table to a stream such as a file/standard-output/string-buffer

Tags database code-generator library python-module utilities markdown restructuredtext python cross-plattform javascript
License MITL
State beta

Recent Releases

0.64.003 Oct 2021 16:45 minor feature: Modify to accept deuote keyword argument at writer class constructors: #51. Make it possible to specify type hints by strings.
0.63.021 Sep 2021 05:05 minor feature: Add max_precision argument to writer class constructors: #44. Improve output precision of real numbers: #44. Remove trailing whitespace when table does not have a name #46. AsciiDoc table header output: #47. to dequote in cells properly: #49. Modify to accept type hints by strings as well. Add CodeQL analysis. Add type annotations. Allow XlsxWriter v3. Add setup-ci target to Makefile.
0.62.018 Jul 2021 03:16 minor feature: Add support for CommonMark as a flavor for MarkdownTableWriter class. Add support for kramdown/Jeklly as a flavor for MarkdownTableWriter class. Add support styles(fg_color, bg_color, font_weight, font_style) for AsciiDocTableWriter class. Add table_style for MediaWikiTableWriter: #43. Add overwrite_type_hints argument to from_dataframe method. Add types to pytablewirter.typehint. Add support for string with thousand separators as integer: #44. Add support for string with thousand separators as integer. Made it possible to set flavor as a keyword argument of MarkdownTableWriter constructor. to flavor keyword argument properly applied when executing write_table method at the second time. Change to just output warning instead of raising Exception when set_theme method failed. Improve error messages when a theme not found. Improve output precision for numbers: #44. Remove an unused class.
0.61.017 Jun 2021 09:45 minor feature: Add an alias for Style.color as Style.fg_color. Make it possible to set theme via writer class constructors. Make it possible to initialize writer from dataframe via writer class constructors. comparison of Style.__eq__ method. CSS output of HtmlTableWriter.write_table method when write_css=True. Vendoring msgfy.
0.60.013 May 2021 03:16 minor feature: Add support for AsciiDoc format. Add format name ssv for SpaceAlignedTableWriter class. Make it possible to set write_callback via writer class constructors. format attributes of UNICODE/BOLD_UNICODE enums. Remove es5/es6 from extras_require.
0.59.005 May 2021 03:16 minor feature: Add support for Python 3.10. Drop support for Python 3.5. Markdown alignment cells respect margin #36. Add validation to margin setter. Make it possible to set more writer settings via writer class constructors. Forced to set margin to zero for CSV/sourcecode writer classes. _repr_html_ method to properly apply writer settings. to margin value setting changes are properly applied after written a table. Modify type annotations. Update requirements.
0.58.031 Aug 2020 03:16 minor feature: Add PandasDataFramePickleWriter class. Add support for keyword arguments initialization to TableWriterFactory instantiation. initialization by keyword arguments of writer class constructor. Remove deprecated properties.
0.57.023 Aug 2020 03:25 minor feature: Add table_format property to writer classes. Add clear_theme method to writer classes. Add TableFormat.from_file_extension class method. Make it possible to initialize writer instance with constructor. plugin discovery to avoid errors when some of the functions not implemented. the case that style filters are not properly applied.
0.55.027 Jul 2020 03:16 minor feature: Add enable_ansi_escape attribute to writer classes: #30. Add update method to Style class. Modify to disable ANSI escapes during dump method execution. Modify type annotations for dump method. to propagate enable_ansi_escape/colorize_terminal at _repr_html_ method. colorize_terminal to clear preprocess data when the value changed. Update requirements.
0.54.017 May 2020 11:25 minor feature: Add kwargs to dump method of writer classes. Add indent keyword argument support for write_table/dump/dumps methods. Add sort_keys keyword argument support for write_table/dump/dumps method of JSON writer classes. Changes to accept list of dict as value_matrix for JSON table writer classes. Change the default indent level of JsonTableWriter class. output of JsonLinesTableWriter for None values. Modify output format of JsonTableWriter.write_table method. Remove EmptyHeaderError. Update requirements.
0.53.011 May 2020 03:16 minor feature: Add GitHub Flavored Markdown support. Add DecorationLine support as a style. Add is_header_row method to Cell class. Modify type annotations.
0.52.006 May 2020 05:45 minor feature: Add YamlTableWriter writer class. Add Cell class. Add style_filter_kwargs attribute to writer classes. Add pytablewriter.typehint. Add color support with style. Make it possible to apply style filter to column separators. Make it possible to apply part of the style filter to headers. Make it configurable header row crosspoint characters for text format writer classes. Make "sort_keys" not True by default #15. Change to convert None values for Style class constructor arguments to default values. Improve an error message: #26. Change signatures of StyleFilterFunc. Change max_workers attribute default value to 1. Allow non ascii characters for JSON formats. changing chars for text format tables not properly applied due to initialization order. TomlTableWriter not properly rendered when including Decimal values. from_tabledata method not properly propagate table_name when the value is None. __repr__ method of Style class. style filter to properly apply align. Update requirements. Minor.
0.51.013 Apr 2020 16:45 minor feature: Add BoldUnicodeTableWriter class. Add BorderlessTableWriter class. Add underscore support for thousand separators. Add TableFormat.from_name class method. Add from_writer method to writers. Add vertical align to style (only for HtmlTableWriter): #13. Add write_css argument add an interface to write CSS with HtmlTableWriter: #16. Add AbstractTableWriter class to public paths. Add margin property to AbstractTableWriter class to avoid lint errors. Make it possible to apply styles to headers. to properly apply align for HtmlTableWriter. Make style filter applicable to HtmlTableWriter. Add CssTableWriter class. to include py.typed to the package. Modify type annotations. Increase priority of the xlsx format within TableFormat. Change the default table_name value to an empty string. Update requirements. Minor.
0.49.021 Feb 2020 08:45 minor feature: Add max_workers property to writers. Add validation for default_style setter. Change _font_size_map to cache.
0.48.017 Feb 2020 15:05 minor feature: Drop Python 2 support: #24. Add support for Python 3.9. Add support for platforms that lacks support sem_open such as Android Termux. Add default_style to writers. Add update_preprocessor method to writers. backward compatibility with getting pandas.DataFrame: #25. Replace the logging library from Logbook to loguru. Remove deprecated methods/properties. Remove dev extras_require. Rename a property from styles to column_styles.
0.47.006 Feb 2020 12:25 minor feature: Add support for escape formula injection: #20 for CSV/Excel writers . for CSV/Excel writers. Replace line breaks to tag for HTML table writer: #22. Modify to replace line breaks separately.
0.46.314 Jan 2020 08:25 minor feature: Add support for PyPy. Add es7 extras. Integrate release and build extras to dev extras. Update requirements.
0.46.112 May 2019 17:45 minor feature: Drop support for Python 3.4. Add deb package to PPA. Loosen some of the external dependencies version restriction. .
0.46.006 May 2019 23:45 minor feature: Drop support for Python 3.4. Add deb package to PPA. Loosen some of the external dependencies version restriction. .
0.42.028 Jan 2019 03:16 minor feature: Add trans_func property. Change to forbid to assign a stream to binary writers. Change to be more informative when optional packages not installed. .
0.38.003 Jan 2019 03:16 minor feature: Change to accept string values for the line_break_handling attribute of writers. Change is_write_null_line_after_table default value of writers from True to False. Change dump_tabledata function to pass arguments to writer.
0.36.126 Nov 2018 06:05 minor feature: Add all to extras_require that enable install all of the extra dependency packages at once. to avoid executing writers constructor when importing pytablewriter.
0.34.008 Oct 2018 06:25 minor feature: Add style_list attribute to writers as an interface to set styles of columns: #4. Loosen external package dependencies. .
0.33.002 Oct 2018 10:45 minor feature: Add format_list attribute to set float formatting in a table: #4. Improve processing performance. Enable float formatting in default with SpaceAlignedTableWriter. .
0.27.202 Jan 2018 12:25 minor feature: The type detected from the str values has been changed from string type (deprecated since Elasticsearch 5.x) to text/keyword type.
0.27.120 Nov 2017 20:05 minor feature: The improper write output, which occurred when executing from_tabledata and write_table multiple times consecutively.
0.25.005 Nov 2017 16:45 minor feature: Improve performance for multi-core environments. Change Latex output to insert padding to align columns. improper column width calculation for the case that includes mixed value types in a column. Drop support for Python 3.3.
0.24.130 Oct 2017 06:45 minor feature: Modify Latex output to optimize for Jupyter Notebook. Suppress excessive quote output for Excel sheets.
0.23.201 Aug 2017 03:45 minor feature: Add escape processing for vertical bar characters in Markdown table items to get consistent rendering result.
0.23.024 Jul 2017 03:17 minor feature: Add a table writer class for space aligned values. Add default headers for Markdown/SQLite table writers that used when headers are null. Change to preserve spaces in table items. Change to remove line breaks from headers for text table formats. Make headers are not mandatory for Pandas writer. Modify Markdown output format to get more consistent rendering result. Improve output consistency for SQLite.
0.22.121 Jul 2017 00:05 minor feature: Add support for LaTeX table/matrix. Improve real number output precision.for CSV/JSON/LTSV/TOML/TSV.
0.22.016 Jul 2017 11:45 minor feature: Add support for LaTeX table/matrix. Improve real number output precision.for CSV/JSON/LTSV/TOML/TSV.
0.21.108 Jul 2017 16:25 minor feature: Add NumPy writer class. Add search_table_format method to TableFormat class. Add attributes to pandas writer class: import_pandas_as/import_numpy_as to specify import name. Modify to sanitize Elasticsearch index name. .
0.21.004 Jul 2017 07:25 minor feature: Add NumPy writer class. Add search_table_format method to TableFormat class. Add attributes to pandas writer class: import_pandas_as/import_numpy_as to specify import name. Modify to sanitize Elasticsearch index name. .
0.20.026 Jun 2017 22:25 minor feature: Add support for Elasticsearch. Simplify pandas dataframe output. Change to accept non string values as headers. Modify log messages. .
0.19.827 May 2017 14:48 minor feature: Add automated type-hint detection for pandas.DataFrame to improve write performance