geodesic.account#

This module allows user to interact with their user account and associated resources such as projects, organizations, credentials, and tokens.

Account Classes#

Project(**project)

The Project class to manage groups of nodes in a subgraph in entanglement

Credential(**credential)

Credentials to access secure resources such as a cloud storage bucket.

Organization(**organization)

The Organization class to manage groups users

User(**info)

The User class to represent user info and control/update profile and permissions.

Token(**token)

The token class represents the share tokens created when a user shares a dataset through Ted

Utility Functions#

create_project(name, alias, description[, ...])

Creates a new project.

get_project([name_or_uid, refresh])

Gets a project by name or uid.

get_projects()

set_active_project(p)

Sets the active project.

get_active_project()

Gets the active project.

get_credential([name_or_uid])

Gets the uid/name/type of requested credential, or None if it doesn't exist

get_credentials()

Returns all of your user's credentials

myself()

Returns the current logged in user

get_user(subject)

Returns the requested user if the requestor has permissions

get_users()

Returns all users, if the current user has permission

get_tokens()

Returns all active tokens created by a user