maestral.core
#
Dataclasses for our internal and external APIs.
Module Contents#
- class maestral.core.RootInfo[source]#
Namespace info for the root of a shared filesystem
- home_namespace_id: str[source]#
Unique ID of the user’s personal namespace
This will be different from
root_namespace_id
when Maestral is set up to sync the shared folder of a team.
- class maestral.core.UserRootInfo[source]#
Bases:
RootInfo
Namespace info for the root of a shared filesystem
- class maestral.core.TeamRootInfo[source]#
Bases:
RootInfo
Namespace info for the root of a shared filesystem
- class maestral.core.FullAccount[source]#
Bases:
Account
Represents the user’s account and sync information
- account_type: AccountType[source]#
The account type
- class maestral.core.PersonalSpaceUsage[source]#
Bases:
SpaceUsage
Space usage information for a user
- team_usage: SpaceUsage | None[source]#
Space usage of a user’s team, if any
- class maestral.core.FileMetadata[source]#
Bases:
Metadata
File metadata
- client_modified: datetime.datetime[source]#
Modified time in UTC as provided by clients
- server_modified: datetime.datetime[source]#
Server-side modified time in UTC
- symlink_target: str | None[source]#
If the file is a symlink, path of the target relative to the root namespace
Whether the file is shared
- class maestral.core.FolderMetadata[source]#
Bases:
Metadata
Folder metadata
Whether the folder is shared
- class maestral.core.LinkPermissions[source]#
Permissions for a shared link
- effective_audience: LinkAudience[source]#
The effective audience of link (who can use it)
- link_access_level: LinkAccessLevel[source]#
The type of access that the link grants to the item (how they can use it)
Metadata for a shared link
The URL string
The basename of the item
The normalised path of the item
Expiry time for a link in UTC
Permissions that a link grants its users
Result from listing shared links
List of shared link metadata
Whether there are more items to fetch
A cursor to continue iterating over shared links