download files using a json tree map
Project description
python-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
- https://pypi.org/project/download-files-by-map/
- https://github.com/siakhooi/python-download-files-by-map
- https://sonarcloud.io/project/overview?id=siakhooi_python-download-files-by-map
Badges
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
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 download_files_by_map-0.2.0.tar.gz.
File metadata
- Download URL: download_files_by_map-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.3 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbc9f23316c323426f10f04465d29209c084d31a7b6076ee8864d04428a5f03b
|
|
| MD5 |
1b4aa8206701d7b03eefd306acc442ec
|
|
| BLAKE2b-256 |
1cac4ba866e02b61029adf82f9fb8891a94be24b66c280b93b8ac1eadc952fa4
|
File details
Details for the file download_files_by_map-0.2.0-py3-none-any.whl.
File metadata
- Download URL: download_files_by_map-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.3 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d6930c17efed0b6fcad1d34f4624dca19805b190c92189c66ab82f524376dac
|
|
| MD5 |
cfea8d72ad5b903d443b9728a4c33837
|
|
| BLAKE2b-256 |
87eedfc9c0fd3c261c40d67e323d3f08bf5d2349d4863e2f25eb4d9b14e6fced
|