Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core dataset features #24

Open
98sean98 opened this issue Aug 9, 2023 · 0 comments
Open

core dataset features #24

98sean98 opened this issue Aug 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@98sean98
Copy link
Contributor

98sean98 commented Aug 9, 2023

A user should be able to interact with a dataset against a local directory.

Initialise a local directory as a dataset

deploifai dataset init

The entire local directory is linked to the remote dataset. It becomes a mirror of the dataset.

Might need to write some kind of config into the global configuration file: save the absolute path of the local directory and the dataset together?

Push data

Upload files to the linked dataset, given a path to a

  • directory (can be the local directory .): upload entire directory
  • a file: upload this file
deploifai dataset push [local-path]

The local directory hierarchy should be respected when uploaded data to the remote dataset, i.e. the mirror is upheld. That means careful path prepending is necessary.

This command should only work if the current directory is a directory linked to a dataset, or a subdirectory there of.

Pull data

Downloads files from the linked dataset, given a remote path. A remote path can be

  • a directory
deploifai dataset pull [remote-path]

The remote directory hierarchy should be respected when downloading data to the local directory, i.e. the mirror is upheld. That means careful path prepending is necessary.

This command should only work if the current directory is a directory linked to a dataset, or a subdirectory there of.

Get info about the current directory

Checks if the current directory is linked to a dataset. This command should also work if it runs inside a subdirectory of the main directory linked to the dataset.

deploifai dataset info

Expected output:

In root of directory linked to dataset

Linked to dataset-name

In subdirectory of directory linked to dataset

Linked to dataset-name/subdirectory-1/subdirectory-2
@98sean98 98sean98 added the enhancement New feature or request label Aug 17, 2023
@98sean98 98sean98 self-assigned this Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant