Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Releases: typedb/typedb-driver-python

Grakn Client Python 1.5.4

06 Sep 18:30
0f6555d
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/grakn-client
Documentation: https://dev.grakn.ai/docs/client-api/python

Distribution

Available through https://pypi.org

pip install grakn-client

Or you can upgrade your local installation with:

pip install -U grakn-client

New Features

  • Supply authentication credentials for keyspace operations.
    Recent changes in protocol (typedb/typedb-protocol#7) allow keyspace operations to be authenticated. This PR adapts Grakn Client Python to these recent changes.

  • Add codeowners.
    Add codeowners @vmax and @flyingsilverfin

Bugs Fixed

  • Use same version for test-deployment as for deploy-pip-snapshot.
    Recent introduction of new_deploy_rpm usage removed auto-appending commit SHA to snapshot deployments, which resulted in broken test-deployment. This PR fixes the version to be deployed into snapshot repo.

  • Remove Answer.explanations().
    Remove Answer.explanations() shortcut method that always returned empty set and is not documented and inconsistent with other APIs!

  • Fix CI by synchronizing .bazelrc with @graknlabs_build_tools.
    Recent upgrade of bazel version in @graknlabs_build_tools broke CI for client-python. This PR aims to fix it by synchronizing .bazelrc with latest version in build-tools.

Code Refactors

Other Improvements

Grakn Client Python 1.5.3

14 May 13:37
a76af4e
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/grakn-client
Documentation: https://dev.grakn.ai/docs/client-api/python

Distribution

Available through https://pypi.org

pip install grakn-client

Or you can upgrade your local installation with:

pip install -U grakn-client

Changelog

  • When a transaction is closed or committed, the client will now properly notify the server. In effect, this solves the issue of random server session failures that were sometimes experienced in the previous versions.

Grakn Client Python 1.5.2

25 Apr 21:51
1d8e5db
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/grakn-client
Documentation: https://dev.grakn.ai/docs/client-api/python

Distribution

Available through https://pypi.org

pip install grakn-client

Or you can upgrade your local installation with:

pip install -U grakn-client

Changelogs

  • Supports Grakn Core 1.5.2 (PR 42, PR 43)
  • Introduced Bazel Remote Build Execution which speeds up the test (PR 39)

Grakn Client Python 1.5.1

30 Mar 15:46
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/grakn-client
Documentation: https://dev.grakn.ai/docs/client-api/python

Distribution

Now officially available through https://pypi.org

pip install grakn-client

Or you can upgrade your local installation with:

pip install -U grakn-client

Architecture

The architecture for client-python has been refactored to align with other client drivers and split out of grakn-core.

  • New package-name: grakn-client
  • The main class Grakn is now called GraknClient
  • GraknClient and DataType now live under grakn.client -- import
    from grakn.client import GraknClient
  • The client-python module now has its own repository (hit star on graknlabs/client-python!). This allows us to iterate on client-python more flexibly, independent of grakn-core.

API

  • The client-python library now works for both Python 2 and 3.
    • Replaced enum34 with enum-compat to make client-python compatible with Python 3.4+
  • Opening a transaction is now done by:
    • Read: session.transaction().read()
    • Write: session.transction().write()
  • In addition to calling transaction.close() at the end of a transaction, session.close() at the end of a session, now you should also call client.close() at the end of using the database to close the actual HTTP2 connection to the server.