Skip to main content

download files using a json tree map

Project description

download-files-by-map

download files using a json tree map

Installation

pip install download-files-by-map

Usage

$ download-files-by-map jsonfile

map file format

  • map file is a json file, with the following structure, it is either:
    • a file object
    • a folder object
    • an array of file and/or folder objects
  • Sample map file: sample-map.json

file object

  • file object contains 3 attributes:

    • type - must be equal to 'file'
    • local_filename - filename to save into local directory tree
    • remote_url - url to the remote file to be retrieved
  • Example:

  {
  "remote_url": "http://download-server-123/file1.txt",
  "local_filename": "file1.txt",
  "type": "file"
  }

folder object

  • folder object contains 3 attributes:
    • type - must be equal to 'folder'
    • local_filename - directory name to be created in local
    • children - an array contains files and/or folders to be children of current folder
  {
    "type": "folder",
    "local_filename": "sample",
    "children": [
      ... files or folders object
    ]
  },

Links

Badges

GitHub GitHub last commit GitHub tag (latest by date) GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub top language GitHub language count GitHub repo size GitHub code size in bytes

Workflow workflow workflow

Release GitHub release (latest by date) GitHub all releases GitHub Release Date

Quality-Qlty Maintainability Code Coverage

Quality-Sonar Code Smells Duplicated Lines (%) Bugs Vulnerabilities Technical Debt Maintainability Rating Security Rating Reliability Rating Quality Gate Status Lines of Code Coverage Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (long format)

Wise visitors

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

download_files_by_map-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

download_files_by_map-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file download_files_by_map-1.0.0.tar.gz.

File metadata

  • Download URL: download_files_by_map-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.17.0-1008-azure

File hashes

Hashes for download_files_by_map-1.0.0.tar.gz
Algorithm Hash digest
SHA256 adbe1fc14d8c661407bd4cef66fdf1914788b1aa1512ad4c93fbfdbab5452904
MD5 b0d21bbf4cd4e355d0e999ee578c43c1
BLAKE2b-256 9dab49963c96da9c7e4d79786d63903fff670cffbea327790f5e6fb80809c165

See more details on using hashes here.

File details

Details for the file download_files_by_map-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for download_files_by_map-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37b0d44cc7259d410b6d9a9286354cf893849b4fba17f10d423551028fb373e1
MD5 3618fe76ca13ebde416f62b805dd9e1e
BLAKE2b-256 f92b1d1330711201cd7247fd54e252c005cd38123de8f312b345055e6c93d1fa

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