Skip to content

Latest commit

 

History

History
620 lines (359 loc) · 12 KB

RELEASE_NOTES.md

File metadata and controls

620 lines (359 loc) · 12 KB

TerminusDB Python Client Release Notes

v10.2.6

Bug fixes

  • Fix schema parameter to database construction

v10.2.5

Bug fixes

  • fix serialization of dictionaries

v10.2.4

Bug fixes

  • Fix bug in prop conversion for lists from JSON schema
  • Complete XSD types for tdbpy

v10.2.3

New

  • Add remote auth

Bug fixes

  • Fix incorrect mapping of sys:JSON type to Python class
  • Fix failing requests integration test

v10.2.2

New

  • Add patch endpoint

Bug fixes

  • Fix error when checking types
  • Fix repeating load of object with key bug

v10.2.1

Bug fixes

  • Fix integer marshalling in schema with TerminusDB 11

v10.2.0

New

  • Implement info endpoint
  • Implement OK endpoint
  • Add proper date type to WOQLQuery

Bug fixes

  • Fix get_triples functions
  • Fix update_triples functions
  • Fix add_triples functions
  • Fix has_doc function (greatly improves performance)

Deprecations

  • We drop 3.7 support and upgraded pandas because of a security issue

v10.1.5

New

  • Add has_databse function to check for the existence of a database

Deprecations

  • We now return an exception when a database does not exist when calling get_database on a database that does not exist. Be sure to check for a database using has_database instead or catch the appropiate exception.

v10.1.4

Bug Fixes

  • Upgrade package dependencies to solve security vulnerability
  • Fix slow get_database function

New

  • Add log function to view commits
  • Add diff_version to diff different branches or commits
  • Add apply function to apply a branch/commit on top of another (a bit like git cherry-pick)
  • Add ability to insert raw json documents
  • Add user management functions
  • Allow embedded objects to be submitted (ca1e0bf4e2974cc5a76b8e8065adc591b1d58a21)

Deprecations

  • Removed WOQLView, since it was not maintained
  • We renamed WOQLClient to Client but retained backwards compatiblity

v10.1.1

Bug Fixes / Improvements

  • Fix conversion of subdocuments in from_json_schema of WOQLSchema.

v10.1.0

Changes

  • CLI command renamed from terminusdb to tdbpy

New

  • user_agent can be customize when creating the client.

v10.0.34

New

  • Adding option to use commit ID / data version with document id as before (and after) in diff.

v10.0.33

New

  • Adding compression option for insert_documrnt, replace_docmuent and updata_document. Default to be compressing when byte size is larger than 1024 in all of them.

v10.0.32

Bug Fixes / Improvements

  • Fix type checking when getting porperty that is inherited.

v10.0.30 / v10.0.31

Bug Fixes / Improvements

  • Fix working with public diff and patch endpoints.

v10.0.27 / v10.0.28 / v10.0.29

Bug Fixes / Improvements

  • Update dependency versions

v10.0.26

New

  • Diff and Patch in client
  • Tracking data versions for documents and in WOQL query

Bug Fixes / Improvements

  • Fasting connect by pinging the head of the db to check if exist
  • Capture objects with their class id and the order of instance created rathe than python internal id

v10.0.25

New

  • Using API token as default to connect to TerminusX, JWT token still supported but no longer default
  • Doc and Var class in WOQLQuery
  • Adding dot method in WOQLQuery
  • Support id capture and fixing support for all Key types in documents:
    • Custom keys are only available using RandomKey (default key type)
    • Custom keys are not avaliable for subdocuments
    • Getting backend generated id when import object
    • insert_document and update_document will fill in object ids if object(s) is passed in as a list.
    • Checking if a capture object is reference but not submit together

Bug Fixes / Improvements

  • Fixing group_by in WOQLQuery
  • Adding check in if subdocument is submitted directly

v10.0.24

New

  • Adding dot

Bug Fixes / Improvements

  • Fixing % in path
  • Adding dot
  • Updating object operations to document operations in query
  • Skip idgen for subdocuments
  • Fixing docstrings
  • Fixing like in query

v10.0.23

Bug Fixes / Improvements

  • Refactor path pattern parsing
  • Improve performance for update_document
  • Client.squash now return a commit id that can be used directly in reset, also added option to reset right after squash.

v10.0.22

Bug Fixes / Improvements

  • Fix path pattern parser.

v10.0.21

Bug Fixes / Improvements

  • Adding datetime convertion between WOQL xsd types and Python datetime.

v10.0.20

Bug Fixes / Improvements

  • terminudb alldocs using json dumps to export json instead of printing dict

v10.0.19

Bug Fixes / Improvements

  • Adding delete branch (branch -d) in scripts
  • terminus branch will add * to show the current branch

v10.0.18

Bug Fixes / Improvements

  • Sets are default to be optional, i.e. it will not be check if missing

v10.0.17

Bug Fixes / Improvements

  • terminusdb log would also show info about status
  • Fix for dealing with Enum in result_to_df

v10.0.16

Bug Fixes / Improvements

  • delete_document can accept dict(s)/ document object(s) instead of ids
  • result_to_df will provide the object ids (only the top levels) even if not using keepid=True
  • adding add_enum_class for WOQLSchema to construct enum class with function calls

v10.0.15

Bug Fixes / Improvements

  • import_objects can be used on a single dict/ object
  • terminusdb config now can parse number configs ad int/ float

v10.0.14

Bug Fixes / Improvements

  • Adding get_instances and import_objects for WOQLSchema

v10.0.13

Bug Fixes / Improvements

  • Cast --id and -e columns in importcsv as string when read_csv

v10.0.12

Bug Fixes / Improvements

  • Improvement in insert_docuemnts with full_replace=True option
  • WOQLSchema now can store the @context of the schema
  • Allow documentation of schema in schema.py

v10.0.11

Bug Fixes / Improvements

  • Make query_document parallel with get_documents_by_type
  • Pass message printing from _sync to sync,
  • Add --head option for alldocs

v10.0.10

Bug Fixes / Improvements

  • Using number instead of decimal in jsonschema

v10.0.9

Bug Fixes / Improvements

  • Fix typo in from_woql_type
  • Add config command in CLI and Scaffolding tool

v10.0.8

Bug Fixes / Improvements

  • Add option to reset to latest commit in CLI and Scaffolding tool
  • option to set TerminusX JWT token when startproject
  • take out setup_requires and tests_requires to increase security
  • temporary remove triples and WOQLView till they works with new TerminusDB
  • update woqldataframe to work with docucment API

v10.0.7

New

  • Adding command log in CLI and Scaffolding tool to see commit history
  • Adding command reset in CLI and Scaffolding tool to time travel

Bug Fixes / Improvements

  • Adding full_replace in insert document
  • Adding soft reset option in client.reset
  • User Agent is now terminusdb-client-pyhton/
  • Allow customize commit message in scripts

v10.0.6

Bug Fixes / Improvements

  • Fix typo in get_commit_history
  • Patch delete branch missing

v10.0.5

Bug Fixes / Improvements

  • Patch formating for DatabaseError

v10.0.4

Bug Fixes / Improvements

  • URL parse all the user provide parameters that will be put into paths

v10.0.3

Bug Fixes / Improvements

  • _abstract is now not inherited
  • Forcing Database Error to print out the whole response from backend

v10.0.2

Bug Fixes / Improvements

  • Fixing key problems for self/future referencing: backend currently not support id capture and work around by generate id in the client and suspend the @key in the schema

v10.0.1

Bug Fixes / Improvements

  • Fixing key problems in Scaffolding tool

v10.0.0

New

  • WOQLClient:
    • works with new document interface api
  • woql_schema:
    • sub-module to create schema in document interface
  • scrpits:
    • sub-module to provide CLI and Scaffolding tool for setting up project and working with document interface

Changes

  • WOQLQuery:
    • deprecate doctype - use document interface instead
  • WOQLLib:
    • deprecated - use document interface instead

Bug Fixes / Improvements

  • WOQLQuery:
    • fix path queries
    • update to work with new version of TerminusDB

v1.1.0

New

  • Add WOQLClient.get_commit_history()

Changes

  • Remove functionality of WOQLClient.commit(), WOQLClient.rollback()
  • Make import of pandas and numpy of WOQLDataFrame dynamic

Bug Fixes / Improvements

  • "doc:" prefix fix
  • check for database connectivity
  • literal option added in WOQLQuery.cast()

v1.0.0 🐮☘️

New

  • Rewrite on WOQLClient to simplify structure
  • Minor WOQLClient API changes (may not be compatible with previous versions)

Changes

  • Deprecate WOQLClient.user_account() and WOQLClient.uid()
  • WOQLClient.delete_database() requires database name and optional account name
  • WOQLClient.db() and WOQLClient.account() no longer takes argument to change setting
  • Some of the WOQLClient methods no longer return result from backend API
  • change of DatabaseError and APIError attributes, added new Error object
  • change of the pull, push, rebase and clone API call

Bug Fixes / Improvements

  • WOQLView now works in non-Jupyter interpreter except for WOQLView().show
  • Fix transcriptions of true()
  • Better error handling
  • Fix WOQLClient.create_graph() and WOQLClient.delete_graph()

v0.6.0

New

  • Adding commit(), close() and rollback() for the WOQLClient

Bug Fixes / Improvements

  • Rewrite of WOQLClient, deprecate connectionConfig and connectionCapabilities

v0.5.0

New

  • Added typeof to python
  • Add default commit message of update csv and insert csv
  • Adding context path to Using to match with the newest version of TerminusDB
  • Add once query type
  • Adding update triple and update quad

Bug Fixes / Improvements

  • Fixed iri casting
  • Fixed group by and iri by default in third part

v0.4.0

New

  • Added WOQLView
  • Added csv io methods in WOQLClient

Bug Fixes / Improvements

  • Warning for using WOQLDataFrame.query_to_df()
  • WOQLDataFrame now can handle "xsd:date" datatype from TerminusDB
  • Automatically csting datetime.date and datetime.datetime object as "xsd:dateTime" when added to TerminusDB

v0.3.1

Bug Fixes / Improvements

  • Patch import error

v0.3.0

New

  • Updated create database to take advantage of default prefixes and schema graph creation happening on server
  • Integrated all Revision Control API operations fully
  • .vars() method - add v: to woql variables
  • Reset allowing you to reset a branch to an arbitrary commit
  • Post method for CSV uploads
  • Triple endpoint for inserting turtle data directly to a graph
  • Count triples functionality added
  • [beta] Smart Query which creates and checks all the classes and object in Python

Bug Fixes / Improvements

  • Added 3 varities of ordering specification as optional arguments to order_by
  • fixed bug to make order_by("desc") work
  • Empty selects no longe error

v0.2.2

New

  • adding boolean method in WOQLQuery
  • adding dataType mapping for boolean so now "boolean" will be register as "xsd:boolean" in WOQLQuery

v0.2.1

Bug fixes

  • bug fix for delete_database in WOQLClient

v0.2.0

New

  • added + operator for WOQLQuery object.
  • update connectionCapabilities to match with TerminusDB 2.0.5

v0.1.5

Bug fixes

  • Remove unwanted print

v0.1.4

New

First release of the WOQL standard library - available via WOQLLib class. Added working versions of clone, pull, push, fetch to API Added support for basic auth to remote servers Added set_db() in WOQLClient

Bug fixes

Fixed bugs in cardinality operators in WOQL (max, min, card - all now work properly)

Tidied up triplebuilder by eliminating no longer need object.

Fixed transmission of prefixes over API