We recommend that all users upgrade to this version using pip:
pip install -U jai-sdk
Release Notes
- Highlights
- Improvements
- Snippets
Highlights
- Environments 303
- Added namespaces and environments
- Added new methods
*j.import_database is on experimental phase.
Improvements
- Parallel data insertion 304
- Test coverage increased 303
Snippets
Usage of environments
j = Jai(auth_key=AUTH_KEY, environment=environment_name)
- `j.user()` - user's information
j.user()
Returns:
{'userId': str,
'email': str,
'firstName': str,
'lastName': str,
'memberRole': str,
'namespace': str}
- `j.environments()` - user's environments available
j.environments()
Returns:
[{'key': str, 'name': str}, ...]
- `j.rename(original_name: str, new_name: str)` - rename a database
j.rename(original_name=original_name, new_name=new_name)
Returns:
f"Database {original_name} has been renamed as {new_name}"
- `j.transfer(original_name: str, to_environment: str, new_name: str = None, from_environment: str = "default")` - change a database's environment
1. can change database's name on transfer.
2. does not delete the original database
j.rename(original_name=original_name,
to_environment=to_environment,
new_name=new_name,
from_environment=from_environment)
Returns:
f"Database {original_name} has been transfer from {from_environment} as {new_name} to {to_environment}"
- `j.import_database(database_name: str, owner_id: str, owner_email: str, import_name: str = None)` - import a database from a public environment
1. Database's owner can be identified by id or email
2. Can change database's name on importing or keep the original name
3. does not delete the original database
j.import_database(database_name=database_name,
owner_id=owner_id,
owner_email=owner_email,
import_name=import_name)
Returns:
f"Database {original_name} has been imported from {from_user_id} as {new_name}."
What's Changed
* Environments by ricardokazu in https://github.com/jquant/jai-sdk/pull/303
* Parallel data insertion by Luis-Victor in https://github.com/jquant/jai-sdk/pull/304
* v0.18.0 by ricardokazu in https://github.com/jquant/jai-sdk/pull/309
**Full Changelog**: https://github.com/jquant/jai-sdk/compare/v0.17.1...v0.18.0