Projects

Model objects representing projects.

class renku.core.models.projects.Project(name=None, created=NOTHING, updated=NOTHING, version='5', *, client=None, creator=None, id=None)[source]

Represent a project.

Type:

["prov:Location", "schema:Project"]

Context:

{
  "schema": "http://schema.org/",
  "prov": "http://www.w3.org/ns/prov#",
  "@version": 1.1,
  "name": "schema:name",
  "created": "schema:dateCreated",
  "updated": "schema:dateUpdated",
  "version": "schema:schemaVersion",
  "creator": {
    "@id": "schema:creator",
    "@context": {
      "schema": "http://schema.org/",
      "prov": "http://www.w3.org/ns/prov#",
      "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
      "@version": 1.1,
      "name": "schema:name",
      "email": "schema:email",
      "label": "rdfs:label",
      "affiliation": "schema:affiliation",
      "alternate_name": "schema:alternateName",
      "_id": "@id"
    }
  },
  "_id": "@id"
}
class renku.core.models.projects.ProjectCollection(client=None)[source]

Represent projects on the server.

Example

Create a project and check its name.

# >>> project = client.projects.create(name=’test-project’) # >>> project.name # ‘test-project’

Create a representation of objects on the server.

class Meta[source]

Information about individual projects.

model

alias of Project

create(name=None, **kwargs)[source]

Create a new project.

Parameters:name – The name of the project.
Returns:An instance of the newly create project.
Return type:renku.core.models.projects.Project
class renku.core.models.projects.ProjectSchema(*args, commit=None, client=None, **kwargs)[source]

Project Schema.

Create an instance.

class Meta[source]

Meta class.

model

alias of Project