dl.dltasks module

class dl.dltasks.AddCapability(datalab)[source]

Bases: Task

Add a capability to a VOSpace container

run()[source]
class dl.dltasks.Broadcast(datalab)[source]

Bases: Task

Broadcast a SAMP message

run()[source]
class dl.dltasks.Copy(datalab)[source]

Bases: Task

Copy a file in Data Lab

run()[source]
class dl.dltasks.DataLab[source]

Bases: object

Main class for Data Lab interactions

get(section, param)[source]

Get a value from the configuration file.

save(section, param, value)[source]

Save the configuration file.

class dl.dltasks.Delete(datalab)[source]

Bases: Task

Delete files in Data Lab

run()[source]
class dl.dltasks.DropMyDB(datalab)[source]

Bases: Task

Drop a user’s MyDB table. [DEPRECATED]

run()[source]
class dl.dltasks.Get(datalab)[source]

Bases: Task

Get one or more files from Data Lab.

run()[source]
class dl.dltasks.Init(datalab)[source]

Bases: Task

Print the current service URLS in use.

run()[source]

Initialize the Data Lab configuration.

class dl.dltasks.Launch(datalab)[source]

Bases: Task

Launch a plugin in Data Lab

run()[source]
class dl.dltasks.LaunchJob(datalab)[source]

Bases: Task

Execute a remote processing job in the Data Lab

getJob(job)[source]
run()[source]
validJob(job)[source]

Bases: Task

Link a file in Data Lab

run()[source]
class dl.dltasks.List(datalab)[source]

Bases: Task

List files in Data Lab

run()[source]
class dl.dltasks.ListCapability(datalab)[source]

Bases: Task

Add a capability to a VOSpace container

run()[source]
class dl.dltasks.ListMyDB(datalab)[source]

Bases: Task

List the user’s MyDB tables. [DEPRECATED]

run()[source]
class dl.dltasks.Login(datalab)[source]

Bases: Task

Log into the Data Lab

do_login()[source]
login()[source]

Login to the Data Lab.

run()[source]

Execute the Login Task.

class dl.dltasks.Logout(datalab)[source]

Bases: Task

Logout out of the Data Lab

run()[source]
class dl.dltasks.MkDir(datalab)[source]

Bases: Task

Create a directory in Data Lab

run()[source]
class dl.dltasks.Mountvofs(datalab)[source]

Bases: Task

Mount a VOSpace via FUSE

run()[source]
class dl.dltasks.Move(datalab)[source]

Bases: Task

Move files in Data Lab

run()[source]
class dl.dltasks.MyDB_Copy(datalab)[source]

Bases: Task

Copy a user MyDB table.

run()[source]
class dl.dltasks.MyDB_Create(datalab)[source]

Bases: Task

Create a user MyDB table.

run()[source]
class dl.dltasks.MyDB_Drop(datalab)[source]

Bases: Task

Drop a user’s MyDB table.

run()[source]
class dl.dltasks.MyDB_Import(datalab)[source]

Bases: Task

Import data into a user MyDB table.

run()[source]
class dl.dltasks.MyDB_Index(datalab)[source]

Bases: Task

Index data in a user’s MyDB table.

run()[source]
class dl.dltasks.MyDB_Insert(datalab)[source]

Bases: Task

Insert data into a user MyDB table.

run()[source]
class dl.dltasks.MyDB_List(datalab)[source]

Bases: Task

List the user’s MyDB tables.

run()[source]
class dl.dltasks.MyDB_Rename(datalab)[source]

Bases: Task

Rename a user MyDB table.

run()[source]
class dl.dltasks.MyDB_Truncate(datalab)[source]

Bases: Task

Truncate a user MyDB table.

run()[source]
class dl.dltasks.Option(name, value, description, display=None, default=None, required=False)[source]

Bases: object

Represents an option

class dl.dltasks.Put(datalab)[source]

Bases: Task

Put files into Data Lab.

run()[source]
class dl.dltasks.Query(datalab)[source]

Bases: Task

Send a query to a remote query service (OLD VERSION - NOT USED))

dbquery(h, url, token)[source]
httpquery(h, url, token)[source]
ivoquery(h, uri, token, out)[source]
run()[source]
class dl.dltasks.Query2(datalab)[source]

Bases: Task

Send a query to a remote query service. [Note: placeholder name until we figure out what to do with the old Query() functionality.]

run()[source]
class dl.dltasks.QueryProfiles(datalab)[source]

Bases: Task

List the available Query Manager profiles.

run()[source]
class dl.dltasks.QueryResults(datalab)[source]

Bases: Task

Get the async query results.

run()[source]
class dl.dltasks.QueryStatus(datalab)[source]

Bases: Task

Get the async query job status.

run()[source]
class dl.dltasks.Receiver(client)[source]

Bases: object

SAMP listener

point_select(private_key, send_id, mtype, params, extra)[source]
receive_notifications(private_key, sender_id, mtype, params, extra)[source]
receiver_call(private_key, sender_id, msg_id, mtype, params, extra)[source]
class dl.dltasks.Resolve(datalab)[source]

Bases: Task

Resolve a vos short form identifier – FIXME

run()[source]
class dl.dltasks.RmDir(datalab)[source]

Bases: Task

Delete a directory in Data Lab

run()[source]
class dl.dltasks.Schema(datalab)[source]

Bases: Task

Print information about data servicce schema

run()[source]
class dl.dltasks.Services(datalab)[source]

Bases: Task

Print the available data services.

run()[source]
class dl.dltasks.SiaQuery(datalab)[source]

Bases: Task

SIA query with an uploaded file

getUID()[source]

Get the UID for this user

run()[source]
class dl.dltasks.Status(datalab)[source]

Bases: Task

Status of the Data Lab connection

run()[source]
class dl.dltasks.StorageProfiles(datalab)[source]

Bases: Task

List the available Storage Manager profiles.

run()[source]
class dl.dltasks.SvcURLs(datalab)[source]

Bases: Task

Print the current service URLS in use.

run()[source]
class dl.dltasks.Tag(datalab)[source]

Bases: Task

Tag a file in Data Lab

run()[source]
class dl.dltasks.Task(datalab, name, description)[source]

Bases: object

Superclass to represent a Task

addLogger(logLevel, logFile)[source]

Add a Logger to the Task.

addOption(name, option)[source]

Add an option to the Task.

addStdOptions()[source]
broadcast(client, messageType, params, app=None)[source]

Broadcast a SAMP message.

getSampConnect()[source]

Get a SAMP listening client connection.

listen(client)[source]

Setup a listener for a specific SAMP message.

report(resp)[source]

Handle call response

run()[source]
setLogger(logLevel=None)[source]

Set the logger to be used.

setOption(name, value)[source]

Set a Task option.

class dl.dltasks.Version(datalab)[source]

Bases: Task

Print the task version.

run()[source]
class dl.dltasks.WhoAmI(datalab)[source]

Bases: Task

Print the current active user.

run()[source]
dl.dltasks.getUserName(self)[source]

Get the currently logged-in user token. If we haven’t logged in return the anonymous token.

dl.dltasks.getUserToken(self)[source]

Get the currently logged-in user token. If we haven’t logged in return the anonymous token.

dl.dltasks.parseSelf(obj)[source]