Python package and CLI 1.0.1
Version 1.0.1 of the Python SDK is a patch release with bug fixes and reliability improvements.
How to install this version
Review the changes below before installing. To install this version, activate a compatible Python virtual environment and run:
python -m pip install "relationalai==1.0.1"For the latest installation instructions, see Start building with PyRel.
New Features and Enhancements
Section titled “New Features and Enhancements”-
Improved concurrent call handling for
ReasonersClient.ensure()andReasonersClientSync.ensure(). When multiple processes try to create or resume the same reasoner at the same time,ensure()will wait for the in-progress operation to complete instead of failing with a conflict error. -
Improved the error raised when a logic reasoner job is aborted because the client disconnected. If that happens,
JobsClient.wait()/JobsClientSync.wait()raisesJobClientDisconnectedError:from relationalai.services.jobs.errors import JobClientDisconnectedErrortry:job = await client.jobs.wait("LOGIC", job_id)except JobClientDisconnectedError:# The client disconnected before the job completed.# Retry after restoring connectivity....
Bug Fixes
Section titled “Bug Fixes”- Fixed an issue where running reasoner CLI commands, such as
rai reasoners:create, could fail with anImportError.