project.packages.get(package_id='package_id') # # Get Package object to use in your code. # # **Prerequisites**: You must be in the role of an *owner* or *developer*. # # :param str package_id: package id # :param str package_name: package name # :param bool checkout: set the package as a default package object (cookies) # :param fetch: optional - fetch entity from platform, default taken from cookie # :return: Package object # :rtype: dtlpy.entities.package.Package # #
{- "id": "string",
- "url": "string",
- "version": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "creator": "string",
- "name": "string",
- "global": true,
- "projectId": "string",
- "codebase": {
- "type": "item"
}, - "modules": [
- {
- "name": "string",
- "entryPoint": "string",
- "className": "string",
- "initInputs": [
- {
- "type": "Dataset",
- "name": "string",
- "value": { },
- "actions": [
- "string"
]
}
], - "functions": [
- {
- "prototype": { },
- "length": 0,
- "arguments": { }
}
]
}
], - "uiHooks": [
- {
- "bindTo": "string",
- "config": { },
- "icon": "string",
- "slots": [
- "string"
]
}
], - "slots": [
- {
- "moduleName": "string",
- "functionName": "string",
- "displayName": "string",
- "displayScopes": [
- {
- "resource": "annotation",
- "filter": {
- "property1": null,
- "property2": null
}, - "panel": "browser"
}
], - "postAction": {
- "type": "download"
}, - "displayIcon": "string",
- "defaultInputs": [
- {
- "name": "string",
- "value": { }
}
], - "inputOptions": [
- {
- "name": "string",
- "values": [
- { }
]
}
]
}
], - "serviceConfig": {
- "initParams": { },
- "runtime": { },
- "useUserJwt": true,
- "botUserName": "string",
- "versions": {
- "dtlpy": "string",
- "runner": "string",
- "proxy": "string",
- "verify": true
}, - "moduleName": "string",
- "global": true,
- "active": true,
- "runExecutionAsProcess": true,
- "executionTimeout": 0,
- "onReset": "string",
- "name": "string",
- "maxAttempts": 0,
- "secrets": [
- "string"
]
}, - "type": "app",
- "requirements": [
- {
- "name": "string",
- "version": "string",
- "operator": "=="
}
], - "metadata": {
- "user": {
- "property1": null,
- "property2": null
}, - "system": {
- "property1": null,
- "property2": null
}
}, - "panels": [
- {
- "name": "string",
- "role": "owner"
}
]
}