Distributive-Network / bifrost2

The Python SDK for DCP
8 stars 0 forks source link

Feature/jobfs #14

Closed wiwichips closed 2 months ago

wiwichips commented 3 months ago

Initial implementation of JobFS - to be re-written in JS in dcp-client


The API is

JobFS

JobFS.InvalidPath (unspec'd)

job_fs.add(src: (path | content), optional destination: (relative path | full path))

job_fs.chdir(dest: path)

Everything else is just helpers

wiwichips commented 3 months ago

NOTE: jobfs does not work with dcp until https://gitlab.com/Distributed-Compute-Protocol/dcp-client/-/merge_requests/222 is merged

Severn-J-Lortie commented 3 months ago

I think that jobfs.py should be renamed to job_fs.py for consistency

wiwichips commented 3 months ago

I think that jobfs.py should be renamed to job_fs.py for consistency

@Severn-J-Lortie 341a542ddc4aab0caad0e673f52a74659d9ae3a9

wiwichips commented 2 months ago

The API is

JobFS

JobFS.InvalidPath

job_fs.add(src: (path | content), optional destination: (relative path | full path))

job_fs.chdir(dest: path)

Everything else is just helpers

Severn-J-Lortie commented 2 months ago

LGTM!