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 0x7fb96c2030e0: -r/--restore>, <Option at 0x7fb96c203128: -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 0x7fb96c10d758: -n/--dryRun>, <Option at 0x7fb96c10d518: -u/--forUser>, <Option at 0x7fb96c10d368: -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 0x7fb96c00b1b8: --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 0x7fb96c04c518: --username>, <Option at 0x7fb96c04c560: --email>, <Option at 0x7fb96c04c5f0: --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 0x7fb96c049e18: --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 0x7fb96bf5ce60: --username>, <Option at 0x7fb96bf5cea8: --email>, <Option at 0x7fb96bf5cef0: --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 0x7fb96bebdd88: --format>, <Option at 0x7fb96bec4320: --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 0x7fb96be83638: --database>, <Option at 0x7fb96be834d0: --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 0x7fb96c4ef7e8: --list>, <Option at 0x7fb96c4ef5a8: --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 0x7fb96c515e60: -n/--dryRun>, <Option at 0x7fb96c515c20: -l/--list>, <Option at 0x7fb96c515128: -a/--all>)
runFilters(filters, dryRun=False)

tardis.tardis_portal.management.commands.sftpd module

Module contents