tardis.tardis_portal.management.commands package

Submodules

tardis.tardis_portal.management.commands.backupdb module

Command for backup database

class tardis.tardis_portal.management.commands.backupdb.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

backup()
do_mysql_backup(outfile)
do_mysql_restore(infile)
do_postgresql_backup(outfile)
do_postgresql_restore(infile)
handle(*args, **options)
help = 'Backup database. Only Mysql and Postgresql engines are implemented'
option_list = (<Option at 0x7f62eb55e7e8: -r/--restore>, <Option at 0x7f62eb55e320: -d/--database>)
restore(infile)

tardis.tardis_portal.management.commands.checkhashes module

Management utility to create a token user

exception tardis.tardis_portal.management.commands.checkhashes.AlgorithmNotSupported

Bases: exceptions.Exception

class tardis.tardis_portal.management.commands.checkhashes.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **options)
help = 'Used to check file hashes against actual files.'
exception tardis.tardis_portal.management.commands.checkhashes.NoHashAvailable

Bases: exceptions.Exception

exception tardis.tardis_portal.management.commands.checkhashes.ValidationFailed

Bases: exceptions.Exception

tardis.tardis_portal.management.commands.checkhashes.validate_digest(algorithm, datafile)

tardis.tardis_portal.management.commands.chownexperiment module

Management command to change the owner of some experiments

class tardis.tardis_portal.management.commands.chownexperiment.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

args = '<user> <experiment id>...'
handle(*args, **options)
help = 'Change the owner of the experiments.'
option_list = (<Option at 0x7f62eb391998: -n/--dryRun>, <Option at 0x7f62eb3919e0: -u/--forUser>, <Option at 0x7f62eb391a28: -a/--all>)

tardis.tardis_portal.management.commands.cleanuptokens module

Management utility to clean up tokens

class tardis.tardis_portal.management.commands.cleanuptokens.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **options)
help = 'Deletes unused tokens and optionally their ACLs'
option_list = (<Option at 0x7f62eb371f38: --keep-acls>,)

tardis.tardis_portal.management.commands.createmysuperuser module

Management utility to create superusers.

class tardis.tardis_portal.management.commands.createmysuperuser.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **options)
help = 'Used to create a MyTardis superuser.'
option_list = (<Option at 0x7f62eb4513f8: --username>, <Option at 0x7f62eb4253b0: --email>, <Option at 0x7f62eb433fc8: --noinput>)
tardis.tardis_portal.management.commands.createmysuperuser.is_valid_email(value)

tardis.tardis_portal.management.commands.createtokenuser module

Management utility to create a token user

class tardis.tardis_portal.management.commands.createtokenuser.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **options)
help = 'Used to create a MyTardis tokenuser.'
option_list = (<Option at 0x7f62eb295950: --username>,)

tardis.tardis_portal.management.commands.createuser module

Management utility to create regular users.

class tardis.tardis_portal.management.commands.createuser.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

handle(*args, **options)
help = 'Used to create a MyTardis user.'
option_list = (<Option at 0x7f62eb29e0e0: --username>, <Option at 0x7f62eb29e128: --email>, <Option at 0x7f62eb29e170: --noinput>)
tardis.tardis_portal.management.commands.createuser.is_valid_email(value)

tardis.tardis_portal.management.commands.dumpschemas module

Command for dumping soft schema definitions

class tardis.tardis_portal.management.commands.dumpschemas.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

args = '[namespace...]'
handle(*args, **options)
help = 'Dump soft schema definitions. No namespace = dump all schemas'
option_list = (<Option at 0x7f62eb276440: --format>, <Option at 0x7f62eb2807e8: --database>)

tardis.tardis_portal.management.commands.loadschemas module

Command for loading soft schema definitions

class tardis.tardis_portal.management.commands.loadschemas.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

args = 'schema [schema ...]'
handle(*args, **options)
help = 'Load soft schema definitions'
option_list = (<Option at 0x7f62eb1d1488: --database>, <Option at 0x7f62eb1d13f8: --replace>)

tardis.tardis_portal.management.commands.rmexperiment module

Management command to delete the specified experiment and its associated datasets, datafiles and parameters.

The operation is atomic, either the entire experiment is deleted, or nothing.

rmexperiment was introduced due to the Oracle DISTINCT workaround causing sql delete cascading to fail. The current implementation of rmexperiment still relies on some cascading.

class tardis.tardis_portal.management.commands.rmexperiment.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

args = '<MyTardis Exp ID>'
handle(*args, **options)
help = 'Delete the supplied MyTardis Experiment ID'
option_list = (<Option at 0x7f62eb1bd128: --list>, <Option at 0x7f62eb1bd170: --confirmed>)

tardis.tardis_portal.management.commands.runfilters module

Management command to (re-)run the ingestion filters by hand.

class tardis.tardis_portal.management.commands.runfilters.Command(stdout=None, stderr=None, no_color=False)

Bases: django.core.management.base.BaseCommand

args = '[<filter-no>] ...'
handle(*args, **options)
help = "Run selected ingestion filters on all Datafiles.\nNote that a typical ingestion filter sets a 'flag' parameter in its\nDatafile's parameter set to avoid adding multiple copies of the ingested\nmetadata parameters. This command cannot override that flag to force\nmetadata to be reingested."
instantiateFilters(filterIds)
listFilters()
option_list = (<Option at 0x7f62eb0e44d0: -n/--dryRun>, <Option at 0x7f62eb0e4518: -l/--list>, <Option at 0x7f62eb0e4560: -a/--all>)
runFilters(filters, dryRun=False)

tardis.tardis_portal.management.commands.sftpd module

Module contents