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

Uploaded Source

Built Distribution

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

flagdataset-1.0.6-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file flagdataset-1.0.6.tar.gz.

File metadata

  • Download URL: flagdataset-1.0.6.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Darwin/24.4.0

File hashes

Hashes for flagdataset-1.0.6.tar.gz
Algorithm Hash digest
SHA256 4fbf0dd3ec7ffa41dc702b88372288bb2ec241e0e136294897d21137fa051532
MD5 91ad3e31fd17c47b41455d294e43675b
BLAKE2b-256 9e2f1a1bf2229cbb4d258747c805f721e3462ab44cf8a8596b2768845d44f280

See more details on using hashes here.

File details

Details for the file flagdataset-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: flagdataset-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Darwin/24.4.0

File hashes

Hashes for flagdataset-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f446caff500c35c060e7f3845f85cd9177ba08bbeeabb66f031399dbb2a90092
MD5 4e41de861a15762b3c6eba1db6bdf926
BLAKE2b-256 6b127ea6cff629e1b7d78939ba2bafddcab29527f1a26e63b75c6d62d9e90976

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