Metadata-Version: 2.4
Name: download_files_by_map
Version: 1.0.0
Summary: download files using a json tree map
License: MIT
License-File: LICENSE
Keywords: downloader
Author: Siak Hooi
Author-email: siakhooi@gmail.com
Requires-Python: >=3.10
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Utilities
Requires-Dist: requests (>=2.32.3,<3.0.0)
Project-URL: Bug Tracker, https://github.com/siakhooi/download-files-by-map/issues
Project-URL: Documentation, https://github.com/siakhooi/download-files-by-map/wiki
Project-URL: Homepage, https://github.com/siakhooi/download-files-by-map
Project-URL: Repository, https://github.com/siakhooi/download-files-by-map
Description-Content-Type: text/markdown

# 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](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
- https://pypi.org/project/download-files-by-map/
- https://github.com/siakhooi/download-files-by-map
- https://sonarcloud.io/project/overview?id=siakhooi_python-download-files-by-map
- https://qlty.sh/gh/siakhooi/projects/download-files-by-map

## Badges
![GitHub](https://img.shields.io/github/license/siakhooi/download-files-by-map?logo=github)
![GitHub last commit](https://img.shields.io/github/last-commit/siakhooi/download-files-by-map?logo=github)
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/siakhooi/download-files-by-map?logo=github)
![GitHub issues](https://img.shields.io/github/issues/siakhooi/download-files-by-map?logo=github)
![GitHub closed issues](https://img.shields.io/github/issues-closed/siakhooi/download-files-by-map?logo=github)
![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/siakhooi/download-files-by-map?logo=github)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed-raw/siakhooi/download-files-by-map?logo=github)
![GitHub top language](https://img.shields.io/github/languages/top/siakhooi/download-files-by-map?logo=github)
![GitHub language count](https://img.shields.io/github/languages/count/siakhooi/download-files-by-map?logo=github)
![GitHub repo size](https://img.shields.io/github/repo-size/siakhooi/download-files-by-map?logo=github)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/siakhooi/download-files-by-map?logo=github)

![Workflow](https://img.shields.io/badge/Workflow-github-purple)
![workflow](https://github.com/siakhooi/download-files-by-map/actions/workflows/build.yaml/badge.svg)
![workflow](https://github.com/siakhooi/download-files-by-map/actions/workflows/workflow-deployments.yml/badge.svg)

![Release](https://img.shields.io/badge/Release-github-purple)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/siakhooi/download-files-by-map?label=GPR%20release&logo=github)
![GitHub all releases](https://img.shields.io/github/downloads/siakhooi/download-files-by-map/total?color=33cb56&logo=github)
![GitHub Release Date](https://img.shields.io/github/release-date/siakhooi/download-files-by-map?logo=github)

![Quality-Qlty](https://img.shields.io/badge/Quality-Qlty-purple)
[![Maintainability](https://qlty.sh/gh/siakhooi/projects/download-files-by-map/maintainability.svg)](https://qlty.sh/gh/siakhooi/projects/download-files-by-map)
[![Code Coverage](https://qlty.sh/gh/siakhooi/projects/download-files-by-map/coverage.svg)](https://qlty.sh/gh/siakhooi/projects/download-files-by-map)

![Quality-Sonar](https://img.shields.io/badge/Quality-SonarCloud-purple)
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=bugs)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=siakhooi_python-download-files-by-map&metric=coverage)](https://sonarcloud.io/summary/new_code?id=siakhooi_python-download-files-by-map)
![Sonar Violations (short format)](https://img.shields.io/sonar/violations/siakhooi_python-download-files-by-map?server=https%3A%2F%2Fsonarcloud.io)
![Sonar Violations (short format)](https://img.shields.io/sonar/blocker_violations/siakhooi_python-download-files-by-map?server=https%3A%2F%2Fsonarcloud.io)
![Sonar Violations (short format)](https://img.shields.io/sonar/critical_violations/siakhooi_python-download-files-by-map?server=https%3A%2F%2Fsonarcloud.io)
![Sonar Violations (short format)](https://img.shields.io/sonar/major_violations/siakhooi_python-download-files-by-map?server=https%3A%2F%2Fsonarcloud.io)
![Sonar Violations (short format)](https://img.shields.io/sonar/minor_violations/siakhooi_python-download-files-by-map?server=https%3A%2F%2Fsonarcloud.io)
![Sonar Violations (short format)](https://img.shields.io/sonar/info_violations/siakhooi_python-download-files-by-map?server=https%3A%2F%2Fsonarcloud.io)
![Sonar Violations (long format)](https://img.shields.io/sonar/violations/siakhooi_python-download-files-by-map?format=long&server=http%3A%2F%2Fsonarcloud.io)

[![Wise](https://img.shields.io/badge/Funding-Wise-33cb56.svg?logo=wise)](https://wise.com/pay/me/siakn3)
![visitors](https://hit-tztugwlsja-uc.a.run.app/?outputtype=badge&counter=ghmd-python-download-files-by-map)

