No project description provided
Project description
flagdataset
flagdataset 是一个用于下载数据集的 Python 包。
示例
sdk
# pip install flagdataset
from flagdataset import new_downloader
if __name__ == "__main__":
# 初始化, 传入AK,SK
loader = new_downloader(ak="<Access Key>", sk="<Secret Key>")
# 整体下载: 下载数据集全部内容
loader.download(dataset_id="10372875450064908", target="/path/to/local/folder")
# 文件夹下载: 下载数据集指定文件夹下内容
loader.download(dataset_id="10372875450064908", path="/path/to/source/folder", target="/path/to/local/folder")
# 单文件下载: 下载数据集指定文件
loader.get(dataset_id="10372875450064908", path="/path/to/source/folder/example.txt", target="/path/to/local/folder")
cli
# 安装
pip install flagdataset
# 查看帮助
flagdataset -h
# 常用参数说明
# -d 数据集ID: dataset-id
# -p 数据集文件(夹)路径: path
# -t 下载保存路径: target
# 使用AK,SK登录
flagdataset login
# 整体下载: 下载数据集全部内容
flagdataset download -d 10372875450064908 -t .
# 文件夹下载: 下载数据集指定文件夹下内容,需要指定 -p 参数
flagdataset download -d 10372875450064908 -t . -p "/path/to/source/folder"
# 单文件下载: 下载数据集指定文件,需要指定 -p 参数
flagdataset get -d 10372875450064908 -t . -p "/path/to/source/folder/example.json"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flagdataset_eai-1.1.5.tar.gz
(68.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flagdataset_eai-1.1.5.tar.gz.
File metadata
- Download URL: flagdataset_eai-1.1.5.tar.gz
- Upload date:
- Size: 68.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.9 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e17058de6b79a811d966dc0daac67c1e494ec5196728a821d6889795b3881aad
|
|
| MD5 |
695f9c22099fbf17b834ab11981fcf89
|
|
| BLAKE2b-256 |
59d5ec2281031d1797c966e11109f24aeb6f8a027ca1f06ee4ef593e31ec42c3
|
File details
Details for the file flagdataset_eai-1.1.5-py3-none-any.whl.
File metadata
- Download URL: flagdataset_eai-1.1.5-py3-none-any.whl
- Upload date:
- Size: 83.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.9 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9868a4355ef309ea8d470c4f5753e8736fc03a609205e431b04a9714802aec6c
|
|
| MD5 |
4088c999842675d74bca2315ae3308b9
|
|
| BLAKE2b-256 |
413132d7bbd86c8c940c7d1e1b91b9aa74608972341eb55b135ede1559ff8901
|