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 0x7f45500f3dd0: -r/--restore>, <Option at 0x7f45500f3a70: -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 0x7f454fe968c0: -n/--dryRun>, <Option at 0x7f454fe96998: -u/--forUser>, <Option at 0x7f454fe96950: -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 0x7f45501f0758: --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 0x7f45501df908: --username>, <Option at 0x7f455020b7e8: --email>, <Option at 0x7f455020b758: --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 0x7f45503db200: --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 0x7f45503c2368: --username>, <Option at 0x7f45503c2518: --email>, <Option at 0x7f45503c2638: --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 0x7f4550289368: --format>, <Option at 0x7f455028cb48: --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 0x7f4550241830: --database>, <Option at 0x7f4550241908: --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 0x7f45501ce560: --list>, <Option at 0x7f45501d3b48: --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 0x7f454fd597a0: -n/--dryRun>, <Option at 0x7f454fd59758: -l/--list>, <Option at 0x7f454fd596c8: -a/--all>)
runFilters(filters, dryRun=False)

tardis.tardis_portal.management.commands.sftpd module

Module contents