Changelog
=========


Version 0.8
-----------

Add stats and path_json views.

Extend formatting of treedb.print_languoid_stats(), warn in inconsistencies.

Fix Languoid.tree(include_self=False).

Add names to query aliases for better SQL output.


Version 0.7.1
-------------

Add treedb.print_languoid_stats() (reproducing
https://glottolog.org/glottolog/glottologinformation).

Add treedb.write_json_query_csv. To support this, treedb.get_json_query() now
yields pairs of path and languoid json (instead of json of a two-item array
with a path_part array as first element).


Version 0.7
-----------

Add treedb.configure() and locate the glottolog repo_root in treedb.ini in cwd.

Add logging config to the dev environment treedb.ini: create treedb.log.

Added handling of present databases when loading from transient in-memory
database.

Add __producer__ table recording the treedb package version used.


Version 0.6
-----------

Add treedb.checksum().


Version 0.5.1
-------------

Add replace kwarg to treedb.write_files() and treedb.raw.write_files().


Version 0.5
-----------

Add treeb.write_files().

Replace compare_with_raw(root, bind) to compare_with_files(bind, root).


Version 0.4
-----------

Add treedb.print_query_sql() for printing standalone sql with literal binds.

Normalize bibitem references (change database structure).


Version 0.3.1
-------------

Add missing expanduser() to treedb.export().

pd_read_sql now uses the default query when called without argument.

Add csv23 as dependency (factored out stream handling).


Version 0.3
-----------

Rename treedb.create_engine() to .set_engine() (backwards incompatible).

Improve treedb.backup() implementation.

Add helper functions and shortcuts.

Refactor subprocess usage.

Improve logging.


Version 0.2.2
-------------

Add treedb.backup() (requires Python 3.7+).

Add exclude_raw to treedb.export().


Version 0.2.1
-------------

Fix treedb.write_csv() endangerment_source column output.

Use os.path.expanduser() on filename arguments.

Fix setup.py old license classifier.


Version 0.2
-----------

Drop Python 2 and 3.5 support.

Parse endangerment source references into infividual fields.

Switch license to MIT license.


Version 0.1.6
-------------

Make endangerment sources open-ended.


Version 0.1.5
-------------

Update endangerment sources.

Add PyPI project_urls to setup.py.


Version 0.1.4
-------------

Represent countries as dicts instead of tuples in ``treedb.iterlanguoids``.

Update endangerment sources.


Version 0.1.3
-------------

Update for new altname providers and endangerment sources in Glottolog 4.1.


Version 0.1.2
-------------

Use ``expanduser()``in ``treedb.create_engine()`` and ``treedb.set_root()``.


Version 0.1.1
-------------

Allow to specify glottolog repository location via TREEDB_REPO environment
variable (alternative to ``treedb.set_root()``).

Use current working as default glottolog repository location if ``treedb`` is
imported as plain installed package instead of a git checkout.


Version 0.1
-----------

Initial release.
