Data Link CLI Bulk Download Utility
Project description
bulkdownload
Utility script to retrieve bulk downloads
Environment Variables
Env Var | Description | Required |
---|---|---|
NDL_APIKEY | Data Link api key. Used for all requests to perform bulk download. | Yes |
NDL_HOSTNAME | Alternative hostname to retrieve files. | No |
Install
Create a venv or pyenv if you like and activate.
pip install ndlbulkdownload
Usage
The '--param' accepts key/value pairs as you would define query parameters. For any given product documentation, define the key as necessary.
Note, for collections, you can specify multiple of the same key. Use RFC brackets [] for lists of a given key. See examples below.
bulkdownload --help
usage: bulkdownload [-h] --code VC/TC [--param key value] [--debug]
[--verbose] [--skip-proxy] [--skip-ssl-verify]
[--redirect | --no-redirect] [--workers W]
[--host hostname] [--version]
Bulk Download from Data Link.
options:
-h, --help show this help message and exit
--code VC/TC The vendor_code/table_code you are trying to download.
Example: FOO/BAR
--param key value Add query param key/value pair
--debug Increase log level to DEBUG
--verbose Show logging output
--skip-proxy Ignore proxy environment variables
--skip-ssl-verify Do not verify SSL (not recommended in most situations)
--redirect, --no-redirect
Request redirect to files (default: true)
--workers W Total parallel workers (default: min(32, os.cpu_count()))
--host hostname Define an alternative hostname
--version show program's version number and exit
Examples
# download data on a particular date:
bulkdownload --code FOO/BAR --param date.eq 2024-09-01
# download multiple tickers between a given date [start, end)
bulkdownload --code FOO/BAR --param 'symbols.in[]' MSFT --param 'symbols.in[]' AAPL --param date.gte 2024-01-01 --param date.lt 2024-04-01
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ndlbulkdownload-0.1.0.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file ndlbulkdownload-0.1.0.tar.gz
.
File metadata
- Download URL: ndlbulkdownload-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e1b0e5eaa84cd808736aaea3f720e54e343e14ab66c1260eb56a2acb2d83f6 |
|
MD5 | b058c40f157c35465481eea6f02e5785 |
|
BLAKE2b-256 | 72cc7797fda43ab4152a940157d6207cd66097b407db72139c99d1d428adc0ce |
File details
Details for the file ndlbulkdownload-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ndlbulkdownload-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9568fbca89d758c22446f888a74bed8ef2813e26c00d87b44d3306e9da6aa8a3 |
|
MD5 | b05c8557783fa66e8466bf8bf1abe378 |
|
BLAKE2b-256 | bd7e7251dc336fcd8b6252a2a99a8863a7eaa259dee83132dfc583e837649f25 |