Releases: typedb/typedb-driver-python
Grakn Client Python 1.5.4
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 ofnew_deploy_rpm
usage removed auto-appending commit SHA tosnapshot
deployments, which resulted in brokentest-deployment
. This PR fixes the version to be deployed intosnapshot
repo. -
Remove
Answer.explanations()
.
RemoveAnswer.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 ofbazel
version in@graknlabs_build_tools
broke CI forclient-python
. This PR aims to fix it by synchronizing.bazelrc
with latest version inbuild-tools
.
Code Refactors
Other Improvements
Grakn Client Python 1.5.3
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
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
Grakn Client Python 1.5.1
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 calledGraknClient
GraknClient
andDataType
now live undergrakn.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
withenum-compat
to make client-python compatible with Python 3.4+
- Replaced
- Opening a transaction is now done by:
- Read:
session.transaction().read()
- Write:
session.transction().write()
- Read:
- In addition to calling
transaction.close()
at the end of a transaction,session.close()
at the end of a session, now you should also callclient.close()
at the end of using the database to close the actual HTTP2 connection to the server.