Agate

Latest version: v1.10.2

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

Scan your dependencies

Page 1 of 7

1.10.2

-----------------------

- fix: Version 1.10.0 errors on piped data.

1.10.1

-----------------------

- fix: Version 1.10.0 errors on empty tables and seeks to the file's beginning, instead of to the original offset.
- fix: :meth:`.Number.csvify` returns a ``Decimal`` (or ``None``), instead of ``str``. :meth:`.Table.to_csv` with ``quoting=csv.QUOTE_NONNUMERIC`` now works.

1.10.0

-----------------------

- feat: :meth:`.Table.from_csv` reads the file line by line. If ``column_types`` is a :class:`.TypeTester`, it reads the file into memory. (778)
- fix: Fix :meth:`.TableSet.print_structure` for nested tablesets. (765)

.. code-block:: python

import agate
mytable = agate.Table([
('foo', 'FOO', 1),
('foo', 'FOO', 2),
('bar', 'BOZ', 1),
('bar', 'BAZ', 2),
('bar', 'BIZ'),
])

Instead of:

.. code-block:: none

>>> mytable.group_by('a').group_by('b')
AttributeError: 'TableSet' object has no attribute 'rows'

Now:

.. code-block:: none

>>> mytable.group_by('a').group_by('b')
| table | rows |
| ------- | ---- |
| foo.FOO | 2 |
| bar.BOZ | 1 |
| bar.BAZ | 1 |
| bar.BIZ | 1 |

1.9.1

-------------------------

* Add Babel 2.14 support.

1.9.0

------------------------

* feat: Add a ``text_truncation_chars`` configuration for values that exceed ``max_column_width`` in :meth:`.Table.print_table` and :meth:`.Table.print_html`.
* feat: Add a ``number_truncation_chars`` configuration for values that exceed ``max_precision`` in :meth:`.Table.print_table` and :meth:`.Table.print_html`.

1.8.0

------------------------

* feat: Lowercase the ``null_values`` provided to individual data types, since all comparisons to ``null_values`` are case-insensitive. (770)
* feat: :class:`.Mean` works with :class:`.TimeDelta`. (761)
* Switch from ``pytz`` to ``ZoneInfo``.
* Add Python 3.12 support.
* Drop Python 3.7 support (end-of-life was June 27, 2023).

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.