daemon.files module

daemon.files.workspace_files(workspace_id, files, logger)[source]

Store the uploaded files in local disk

Parameters
  • workspace_id (DaemonID) – workspace id representing the local directory

  • files (List[UploadFile]) – files uploaded to the workspace endpoint

  • logger (JinaLogger) – JinaLogger to use

Return type

None

class daemon.files.DaemonFile(workdir, logger=None)[source]

Bases: object

Object representing .jinad file

extension = '.jinad'
property build

Property representing build value

Return type

str

Returns

daemon build in the daemonfile

property python

Property representing python version

Returns

python version in the daemonfile

property jinav

Property representing python version

Returns

python version in the daemonfile

property run

Property representing run command

Return type

str

Returns

run command in the daemonfile

property ports

Property representing ports

Return type

List[int]

Returns

ports to be mapped in the daemonfile

requirements

The decorator to cache property of a class.

dockercontext

The decorator to cache property of a class.

dockerfile

The decorator to cache property of a class.

dockerargs

The decorator to cache property of a class.

process_file()[source]

Process .jinad file and set args

Return type

None

set_args(file)[source]

read .jinad file & set properties

Parameters

file (Path) – .jinad filepath

Return type

None