Skip to main content

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


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.4.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flagdataset_eai-1.1.4-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file flagdataset_eai-1.1.4.tar.gz.

File metadata

  • Download URL: flagdataset_eai-1.1.4.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Darwin/24.6.0

File hashes

Hashes for flagdataset_eai-1.1.4.tar.gz
Algorithm Hash digest
SHA256 77ca4de5b1942132736ac4f80a0374855adad37fd11b53e42a728a007dc3bd49
MD5 5ab6987233d86c8f4d33f171ef8843f3
BLAKE2b-256 ea7efe14b3e1353755c027e74773efb53747a816dbbcaf1aff12a3a5cac52389

See more details on using hashes here.

File details

Details for the file flagdataset_eai-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: flagdataset_eai-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 30.5 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

Hashes for flagdataset_eai-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b977e2f250faa3f61ad7ef87c6c0a9353d50cc8f302a356f38f4b7f9aaa6f3eb
MD5 a78c46ec1845ec6379d2bffc953e5b40
BLAKE2b-256 9fda2fcc343e2f10135692edebbfac6007d071cb5e7d7683440c11355837324a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page