# 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](https://docs.python.org/3/library/venv.html) or pyenv if you
like and activate.
```shell
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.
```shell
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
```shell
# 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
```
Raw data
{
"_id": null,
"home_page": null,
"name": "ndlbulkdownload",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Nasdaq Data Link Development Team <connect@data.nasdaq.com>",
"keywords": "cli, console, data, datalink, economic, financial, nasdaq, nasdaq data link, terminal",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/9a/5e/edec289ddd57bb721d1ef5a2d58fb4a7a3481a22a13142d07279626fc0ae/ndlbulkdownload-0.1.1.tar.gz",
"platform": null,
"description": "# bulkdownload\n\nUtility script to retrieve bulk downloads\n\n## Environment Variables\n\nEnv Var | Description | Required\n-- | -- | --\nNDL_APIKEY | Data Link api key. Used for all requests to perform bulk download. | Yes\nNDL_HOSTNAME | Alternative hostname to retrieve files. | No\n\n## Install\n\n[Create a venv](https://docs.python.org/3/library/venv.html) or pyenv if you\nlike and activate.\n\n```shell\npip install ndlbulkdownload\n```\n\n## Usage\n\nThe '--param' accepts key/value pairs as you would define query parameters.\nFor any given product documentation, define the key as necessary.\n\nNote, for collections, you can specify multiple of the same key. Use RFC\nbrackets [] for lists of a given key. See examples below.\n\n```shell\nbulkdownload --help\n\nusage: bulkdownload [-h] --code VC/TC [--param key value] [--debug]\n [--verbose] [--skip-proxy] [--skip-ssl-verify]\n [--redirect | --no-redirect] [--workers W]\n [--host hostname] [--version]\n\nBulk Download from Data Link.\n\noptions:\n -h, --help show this help message and exit\n --code VC/TC The vendor_code/table_code you are trying to download.\n Example: FOO/BAR\n --param key value Add query param key/value pair\n --debug Increase log level to DEBUG\n --verbose Show logging output\n --skip-proxy Ignore proxy environment variables\n --skip-ssl-verify Do not verify SSL (not recommended in most situations)\n --redirect, --no-redirect\n Request redirect to files (default: true)\n --workers W Total parallel workers (default: min(32, os.cpu_count()))\n --host hostname Define an alternative hostname\n --version show program's version number and exit\n```\n\n## Examples\n\n```shell\n# download data on a particular date:\nbulkdownload --code FOO/BAR --param date.eq 2024-09-01\n\n# download multiple tickers between a given date [start, end)\nbulkdownload --code FOO/BAR --param 'symbols.in[]' MSFT --param 'symbols.in[]' AAPL --param date.gte 2024-01-01 --param date.lt 2024-04-01\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Data Link CLI Bulk Download Utility",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/nasdaq/ndlbulkdownload",
"Issues": "https://github.com/nasdaq/ndlbulkdownload/issues"
},
"split_keywords": [
"cli",
" console",
" data",
" datalink",
" economic",
" financial",
" nasdaq",
" nasdaq data link",
" terminal"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b69a17c9def8b1c359d60025fc2c5b1410dfb65d25599c5db92e8359a040ae12",
"md5": "09cd4cd9caeb034de1bac0b1930dff06",
"sha256": "34fa63139fda716751ff3e467cddaf91b111745893b801a105fc8b35d3cb08b8"
},
"downloads": -1,
"filename": "ndlbulkdownload-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "09cd4cd9caeb034de1bac0b1930dff06",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 7578,
"upload_time": "2024-12-02T14:37:34",
"upload_time_iso_8601": "2024-12-02T14:37:34.871744Z",
"url": "https://files.pythonhosted.org/packages/b6/9a/17c9def8b1c359d60025fc2c5b1410dfb65d25599c5db92e8359a040ae12/ndlbulkdownload-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9a5eedec289ddd57bb721d1ef5a2d58fb4a7a3481a22a13142d07279626fc0ae",
"md5": "0f43c2620c09f8ff0bf762d5e8c45b5e",
"sha256": "3e18cc7d7a6dad9e7fe8e81e50ad492f5e292a3cd42fdf09abe5a98e2d2d4ec8"
},
"downloads": -1,
"filename": "ndlbulkdownload-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "0f43c2620c09f8ff0bf762d5e8c45b5e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 5851,
"upload_time": "2024-12-02T14:37:36",
"upload_time_iso_8601": "2024-12-02T14:37:36.683431Z",
"url": "https://files.pythonhosted.org/packages/9a/5e/edec289ddd57bb721d1ef5a2d58fb4a7a3481a22a13142d07279626fc0ae/ndlbulkdownload-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-02 14:37:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nasdaq",
"github_project": "ndlbulkdownload",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "certifi",
"specs": [
[
"==",
"2024.8.30"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.3.2"
]
]
},
{
"name": "flake8",
"specs": [
[
"==",
"7.1.1"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.10"
]
]
},
{
"name": "mccabe",
"specs": [
[
"==",
"0.7.0"
]
]
},
{
"name": "pycodestyle",
"specs": [
[
"==",
"2.12.1"
]
]
},
{
"name": "pyflakes",
"specs": [
[
"==",
"3.2.0"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.32.3"
]
]
},
{
"name": "tdqm",
"specs": [
[
"==",
"0.0.1"
]
]
},
{
"name": "tqdm",
"specs": [
[
"==",
"4.66.5"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"2.2.3"
]
]
}
],
"lcname": "ndlbulkdownload"
}