Table2ascii

Latest version: v1.1.2

Safety actively analyzes 688007 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

1.0.1

What's Changed
* Resolved pyproject and setup.py conflicts by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/80


**Full Changelog**: https://github.com/DenverCoder1/table2ascii/compare/1.0.0...1.0.1

1.0.0

Features

* Added `use_wcwidth` for wide and fullwidth character support by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/63
* Added the ability to merge cells with `Merge.LEFT` by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/67
* Alignment is now an `IntEnum` so numbers 0-2 can be passed to ``alignments`` by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/75
* Added [custom exception classes](https://table2ascii.readthedocs.io/en/latest/api.html#exceptions) by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/74
* Added [`PresetStyles.double_thin_box`](https://table2ascii.readthedocs.io/en/latest/styles.html#presetstyle-double-thin-box) style (this is the style used in the TableStyle docs) by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/67

Breaking Changes

* The library now uses [`wcwidth`](https://pypi.org/project/wcwidth/) for determining the length of a cell instead of `len()`.
* The [`wcswidth()`](https://wcwidth.readthedocs.io/en/latest/api.html#wcwidth.wcswidth) function takes into account double-width characters (East Asian Wide and East Asian Fullwidth) and zero-width characters (combining characters, zero-width space, etc.), whereas `len()` determines the width solely based on the number of characters in the string.
* In most cases, this will not affect the output of `table2ascii`.
* To revert to using `len()` instead of `wcswidth()` pass `use_wcwidth=False` to `table2ascii`.
* Note: The width of East Asian Wide and East Asian Fullwidth characters is up to the platform and font used. If the font used to display the wide characters does not make them take up exactly 2 character width, it may still not display correctly.
* `table2ascii.options.Options` has a new option `use_wcwidth`. All options are required when manually creating an `Options` object.
* Eight new fields have been added to `TableStyle`. If you are manually creating a `TableStyle` object, you can now provide symbols for the edges of merged table cells. This is not a mandatory change, but a warning will be printed if you do not provide these fields.

Meta

* New annotation style from Python 3.9+ (backwards compatible) by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/61
* Only installs `typing_extensions` if not using Python 3.8+ by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/61
* Refactored comment style and reduced nesting complexity by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/65
* `table2ascii` now accepts all [`Sequence`](https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence) compatible objects instead of only `list` by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/78
* Use [`sphinx-book-theme`](https://github.com/executablebooks/sphinx-book-theme) for docs by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/79

**Full Changelog**: https://github.com/DenverCoder1/table2ascii/compare/0.5.0...1.0.0

0.5.0

Features

* Added `plain` to preset table styles in https://github.com/DenverCoder1/table2ascii/pull/50
py
>>> table2ascii(header=[1,2,3,4], body=[[5,6,7,8], [9,10,11,12]], style=PresetStyle.plain)
1 2 3 4
5 6 7 8
9 10 11 12

* Added `cell_padding` configurable option in https://github.com/DenverCoder1/table2ascii/pull/52
py
>>> table2ascii(header=['A','B','C'], body=[[1,2,3]], footer=[5,6,7], first_col_heading=True, cell_padding=0)
╔═╦═══╗
║A║B C║
╟─╫───╢
║1║2 3║
╟─╫───╢
║5║6 7║
╚═╩═══╝


Meta

* refactor: Support for mypy linting in https://github.com/DenverCoder1/table2ascii/pull/51
* ci: Add support for Python 3.11 (Pyright linting) in https://github.com/DenverCoder1/table2ascii/pull/56

**Full Changelog**: https://github.com/DenverCoder1/table2ascii/compare/0.4.0...0.5.0

0.4.0

Features

* Added `ascii_rounded` and `ascii_rounded_box` table styles by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/45

Typing and Documentation

* Uses `more_autodoc.typehints` for docs and links for built-in types by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/42
* Annotate table value type with `SupportsStr` protocol by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/44

**Full Changelog**: https://github.com/DenverCoder1/table2ascii/compare/0.3.0...0.4.0

0.3.0

Features

* Support for auto-sizing specific columns using `None` by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/38

Meta

* Use explicit kwargs over **options, type fixes by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/35
* Meta og descriptions for docs links by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/33
* Add pre-commit hooks and pyright checks by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/36
* Add Pyright checks to tests, add contributing docs by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/37
* Add docs link, license, and keywords to Pypi setup by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/34

**Full Changelog**: https://github.com/DenverCoder1/table2ascii/compare/0.2.0...0.3.0

0.2.0

Features

* Support for multiline cells by DenverCoder1 in https://github.com/DenverCoder1/table2ascii/pull/30

New Contributors
* sairamkiran9 made their first contribution in https://github.com/DenverCoder1/table2ascii/pull/27

**Full Changelog**: https://github.com/DenverCoder1/table2ascii/compare/v0.1.4...0.2.0

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.