Metadata-Version: 2.1
Name: anc
Version: 0.3.9
Summary: cli
Home-page: https://github.com/a7n-global/infra
License: MIT
Author: xxx AI Inc.
Author-email: dev@xxx.ai
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: click
Requires-Dist: cloudpickle (==3.0.0)
Requires-Dist: contextlib2
Requires-Dist: dvc[s3]
Requires-Dist: exceptiongroup
Requires-Dist: httpx[http2]
Requires-Dist: loguru
Requires-Dist: pillow
Requires-Dist: pydantic (!=2.1.0)
Requires-Dist: python-multipart
Requires-Dist: pyyaml
Requires-Dist: requests
Requires-Dist: rich
Requires-Dist: tabulate
Requires-Dist: toml (>=0.10.2,<0.11.0)
Requires-Dist: typing-extensions
Project-URL: Repository, https://github.com/a7n-global/infra
Description-Content-Type: text/markdown

# ANC CLI Tool

## Overview
The ANC CLI tool is a comprehensive command line interface designed to facilitate the management of various resources within the company. Initially, it supports managing datasets and their versions, enabling users to interact seamlessly with a remote server for fetching, listing, and adding datasets.

## Installation

```bash
# Instructions for installing the ANC CLI tool
sudo pip install anc

```

## Dataset
- **Fetch Datasets**: Retrieve specific versions of datasets from a remote server.
- **List Versions**: View all available versions of a dataset.
- **Add Datasets**: Upload new datasets along with their versions and descriptions to the remote server.

### Usage

#### list
```bash

anc ds list 
# Or you can specify a dataset name.
anc ds list -n <dataset name>

```

#### get
```bash

# According to the above list result, you can download the specific version dataset.
# Ensure that the destination path for downloads is a permanent storage location(e.g. /mnt/weka/xxx). Currently, downloading data to local storage is not permitted.
anc ds get cifar-10-batches-py -v 1.0

```

#### add
```bash

# Upload a specific version of a dataset. The dataset name will be determined based on the file or folder name extracted from the specified path.
# Ensure that the dataset is stored in a permanent location recognized by the server (e.g., /mnt/weka/xxx).
anc ds add /mnt/weka/xug/dvc_temp/cifar-10-batches-py -v 1.0

```
