Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
classmethod Session.connect(url, *, authentication=None, certificate_authority=None)
Connect to an existing session. Here is a breakdown of the capabilities of the returned session:- Local
-
If all the following conditions are met:
-
- the target session requires authentication (e.g. it has
securityconfigured)
- the target session requires authentication (e.g. it has
-
- the provided authentication or certificate_authority arguments grant ROLE_ADMIN
-
- the target session (the one at url) was
startedwith the same version of Atoti Python SDK (0.9.15)
- the target session (the one at url) was
-
- the target session runs on the same host as the current Python process
-
-
Then all
Sessioncapabilities can be used except for:
-
If all the following conditions are met:
- Remote
- If conditions a., b., and c. are met but not d. (i.e., not on the same host)
- Then all local capabilities are available except those needing a shared file system.
For example:
load()withCsvLoadorParquetLoad,read_csv(), andread_parquet()are not available (unless loading from cloud storage)load()withpyarrow.Tableorpandas.DataFrame,read_arrow()andread_pandas()methods are not available
- No security management
-
If conditions a. and b. are meet, plus both:
-
- the target session runs the same Atoti Server version (e.g. 6.1.20 for Atoti Python SDK 0.9.15)
-
- the target session is exposed to Atoti Python SDK
-
-
Depending on whether d. is met, either local or remote capabilities are available, except for
securitymanagement features.
-
If conditions a. and b. are meet, plus both:
- Read-only
- If only condition e. is met (i.e. matching Atoti Server versions)
- Then capabilities that modify the session data or data model are unavailable.
However, some read-only capabilities remain accessible.
For example:
- Not available:
create_table(),create_cube(), andread_csv() - Available:
atoti.tables.Tables.schemaandatoti.Table.query()
- Not available:
- Minimal capabilities
- Always available:
Data and data model changes made from a connected session are not persisted on the target session.
They will be lost if the target session is restarted.
- Parameters:
- url (str) – The base URL of the target session.
The endpoint
f"{url}/versions/rest"is expected to exist. - authentication (Authenticate | ClientCertificate | None) – The method used to authenticate against the target session.
- certificate_authority (Path | None) – Path to the custom certificate authority file to use to verify the HTTPS connection. Required when the target session has been configured with an SSL certificate that is not signed by some trusted public certificate authority.
- url (str) – The base URL of the target session.
The endpoint
- Return type: Self
Example
See also:
start()