pyworkflow.project.manager module

This modules handles the System management

class pyworkflow.project.manager.Manager(workspace=None)[source]

Bases: object

Manage all projects of a given workspace, for a given Domain. (i.e, listing projects, creating, deleting or querying info)

Params:

workspace: path to where the user’s workspace is. A subfolder named ‘projects’ is expected. If workspace is None, the workspace will be taken from the global configuration.

createProject(projectName, runsView=1, hostsConf=None, protocolsConf=None, location=None, comment=None)[source]

Create a new project. confs dict can contain customs .conf files for: menus, protocols, or hosts

deleteProject(projectName)[source]
getProjectPath(projectName)[source]

Return the project path given the name

hasProject(projectName)[source]

Return True if exists a project with projectName

importProject(fromLocation, copyFiles=True, projectName=None, searchLocation=None)[source]

Import a project that is somewhere else in the FS Folder can be copied (default) or linked Optionally a name can be specified, otherwise name will match location folder name Project will always be created in the default project folder.

listProjects(sortByDate=True)[source]

Return a list with all existing projects And some other project info If sortByData is True, recently modified projects will be first

loadProject(projId, **kwargs)[source]

Retrieve a project object, given its id.

renameProject(oldName, newName)[source]
class pyworkflow.project.manager.ProjectInfo(projName, mTime, cTime, path)[source]

Bases: object

Class to store some information about the project

At least it receives the Project Name and its modification time

getCreationTime()[source]
getModificationTime()[source]
getName()[source]
realPath()[source]