pytablewriter 0.54.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.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