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 0x7f0fc47b2200: -r/--restore>, <Option at 0x7f0fc47b21b8: -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 0x7f0fc46b43b0: -n/--dryRun>, <Option at 0x7f0fc46b4290: -u/--forUser>, <Option at 0x7f0fc46b4368: -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 0x7f0fc4674cf8: --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 0x7f0fc4634f38: --username>, <Option at 0x7f0fc4634f80: --email>, <Option at 0x7f0fc466c128: --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 0x7f0fc45c0bd8: --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 0x7f0fc45f0830: --username>, <Option at 0x7f0fc45f0878: --email>, <Option at 0x7f0fc45f08c0: --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 0x7f0fc452be60: --format>, <Option at 0x7f0fc4533368: --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 0x7f0fc44b4638: --database>, <Option at 0x7f0fc44b4680: --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 0x7f0fc4415710: --list>, <Option at 0x7f0fc4415758: --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 0x7f0fc433f368: -n/--dryRun>, <Option at 0x7f0fc433f3b0: -l/--list>, <Option at 0x7f0fc433f3f8: -a/--all>)
runFilters(filters, dryRun=False)

tardis.tardis_portal.management.commands.sftpd module

Module contents