---
sidebar:
  label: roboto.experimental.sessions
  order: 1
title: roboto.experimental.sessions
---
Sessions: operational time windows of a device, such as a drone flight, a vehicle drive, or a robot run.

Use [`Session`](/docs/reference/python-sdk/roboto/experimental/sessions#roboto.experimental.sessions.Session) to create sessions, add files to them, mark them complete, and read their topic data. Pass [`SessionDeclaration`](/docs/reference/python-sdk/roboto/experimental/sessions#roboto.experimental.sessions.SessionDeclaration) to [`create_sessions()`](/docs/reference/python-sdk/roboto/domain/devices#roboto.domain.devices.Device.create_sessions) to create sessions with their files in one call, declaring each file's topics with [`TopicDeclaration`](/docs/reference/python-sdk/roboto/experimental/ingest#roboto.experimental.ingest.TopicDeclaration).

## Submodules

- [roboto.experimental.sessions.operations](/docs/reference/python-sdk/roboto/experimental/sessions/operations)
- [roboto.experimental.sessions.record](/docs/reference/python-sdk/roboto/experimental/sessions/record)
- [roboto.experimental.sessions.session](/docs/reference/python-sdk/roboto/experimental/sessions/session)

## Package Contents

- [CompletionPolicy](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.CompletionPolicy) (class): Rule by which Roboto marks a session complete after a period with no new files.

- [CreateSessionIfNotExistsRequest](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.CreateSessionIfNotExistsRequest) (class): Request body for [`create_if_not_exists()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.create_if_not_exists).

- [FileDeclaration](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.FileDeclaration) (class): Declaration of one uploaded file and the topic data it carries, independent of any session.

- [MAX_INGESTION_SUMMARIES](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.MAX_INGESTION_SUMMARIES) (data): `MAX_INGESTION_SUMMARIES = 100`. Maximum number of sessions one request to `POST /v1/sessions/ingestion/summaries` may name.

- [MAX_SESSIONS_PER_REQUEST](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.MAX_SESSIONS_PER_REQUEST) (data): `MAX_SESSIONS_PER_REQUEST = 100`. Maximum number of sessions one call to [`create_sessions()`](/docs/reference/python-sdk/roboto/domain/devices/device#roboto.domain.devices.device.Device.create_sessions) may declare.

- [MAX_SESSION_DEVICES_REQUEST](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.MAX_SESSION_DEVICES_REQUEST) (data): `MAX_SESSION_DEVICES_REQUEST = 100`. Maximum number of sessions one request to `POST /v1/sessions/devices` may name.

- [PendingIngestionFile](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.PendingIngestionFile) (class): Ingestable file of a session that is not ingested yet, which the session waits for.

- [Session](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session) (class): A session: an operational time window of a device, such as a drone flight, a vehicle drive, or a robot run.

- [SessionDeclaration](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionDeclaration) (class): Declaration of one session to create on a device, with the files that make it up.

- [SessionDevice](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionDevice) (class): Device attached to a session, with its device type.

- [SessionDevicesRequest](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionDevicesRequest) (class): Request body for `POST /v1/sessions/devices`.

- [SessionDevicesResponse](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionDevicesResponse) (class): Response body of `POST /v1/sessions/devices`.

- [SessionFile](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionFile) (class): One uploaded file in a session, with the topic data it carries and the window of that data the session holds.

- [SessionFileRecord](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionFileRecord) (class): Data record of one file a session holds, and the part of the file it holds.

- [SessionFileView](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionFileView) (class): Data record of a file a session holds, as the Roboto API returns it.

- [SessionIngestionState](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionIngestionState) (class): Ingestion state of a session: whether it is in progress, waiting for files to be ingested, or ingested.

- [SessionIngestionStatus](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionIngestionStatus) (class): Response body of [`ingestion_status()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.ingestion_status).

- [SessionIngestionSummariesRequest](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionIngestionSummariesRequest) (class): Request body for [`ingestion_summaries()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.ingestion_summaries).

- [SessionIngestionSummariesResponse](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionIngestionSummariesResponse) (class): Response body of [`ingestion_summaries()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.ingestion_summaries).

- [SessionIngestionSummary](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionIngestionSummary) (class): Ingestion state of one session, in counts.

- [SessionRecord](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionRecord) (class): Data record of a session, as the Roboto API returns it.

- [SessionStatus](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionStatus) (class): Status of a session: whether more of its files are expected.

- [SessionTopicFieldStats](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionTopicFieldStats) (class): Statistics of one field of a topic over a session's data.

- [SessionTopicRecord](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionTopicRecord) (class): Data record of a topic whose data a session holds, with that data's schemas, time span and counts.

- [SessionTopicSchema](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionTopicSchema) (class): Schema that a topic's data in a session is recorded with.

- [SessionTopicStats](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionTopicStats) (class): Response body of [`get_topic_stats()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.get_topic_stats).

- [SessionTopicStatsRun](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionTopicStatsRun) (class): Response body of [`get_topic_stats_run()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.get_topic_stats_run).

- [SessionTopicStatsRunStatus](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionTopicStatsRunStatus) (class): Status of a topic statistics run: where the latest run Roboto triggered on a session stands.

- [SkipWaitingRequest](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SkipWaitingRequest) (class): Request body for [`skip_waiting_for()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.skip_waiting_for).

- [SkipWaitingResponse](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SkipWaitingResponse) (class): Response body of [`skip_waiting_for()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.skip_waiting_for).

- [SkippedIngestionFile](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SkippedIngestionFile) (class): Ingestable file of a session that is not ingested, which the session was told to stop waiting for.
