seamm_datastore package
Subpackages
- seamm_datastore.database package
- Submodules
- seamm_datastore.database.build module
- seamm_datastore.database.models module
Flowchart
Flowchart.conceptdoi
Flowchart.create()
Flowchart.create_from_file()
Flowchart.creators
Flowchart.description
Flowchart.doi
Flowchart.flowchart_metadata
Flowchart.flowchart_version
Flowchart.group
Flowchart.group_id
Flowchart.group_permissions
Flowchart.id
Flowchart.jobs
Flowchart.json
Flowchart.keywords
Flowchart.other_permissions
Flowchart.owner
Flowchart.owner_id
Flowchart.owner_permissions
Flowchart.parse_flowchart_file()
Flowchart.projects
Flowchart.sha256
Flowchart.sha256_strict
Flowchart.title
Group
GroupProjectAssociation
Job
Job.create()
Job.create_from_file()
Job.description
Job.finished
Job.flowchart
Job.flowchart_id
Job.group
Job.group_id
Job.group_permissions
Job.id
Job.last_update
Job.other_permissions
Job.owner
Job.owner_id
Job.owner_permissions
Job.parameters
Job.parse_job_data()
Job.path
Job.projects
Job.started
Job.status
Job.submitted
Job.title
Job.update()
Project
Project.create()
Project.description
Project.flowcharts
Project.group
Project.group_id
Project.group_permissions
Project.id
Project.jobs
Project.name
Project.other_permissions
Project.owner
Project.owner_id
Project.owner_permissions
Project.path
Project.permissions_query()
Project.special_groups
Project.special_users
Project.update()
Resource
Role
User
UserProjectAssociation
- seamm_datastore.database.schema module
- Module contents
- seamm_datastore.tests package
Submodules
seamm_datastore.connect module
Class and functions for connection to database.
- class seamm_datastore.connect.SEAMMDatastore(database_uri: str = 'sqlite:///:memory:', initialize: bool = False, permissions: dict = None, username: str = None, password: str = None, datastore_location: str = None, default_project: str = 'default')[source]
Bases:
object
- add_job(id, flowchart_filename, project_names=['default'], path=None, title='', description='', submitted=None, started=None, finished=None, parameters=None, status='submitted')[source]
- finish_job(job_id, finish_time, status='finished')[source]
Set the status and time that the job finished.
- Parameters:
job_id (int) – The ID of the job, eg. 209
finish_time (datetime.datetime) – The UTC time when the job finished.
status (str) – The status, such as “error” or the default, “finished”
as_json (bool = False) – Ignored
current_user (str or User = None) – Ignored
- Returns:
True if the finish time was successfully set, False otherwise.
- Return type:
bool
- seamm_datastore.connect.login_required(method)[source]
Decorator for actions requiring current user
seamm_datastore.util module
Util Functions and classes
Module contents
seamm_datastore The database models for the seamm datastore
- seamm_datastore.connect
alias of
SEAMMDatastore