mrt-downloader


Namemrt-downloader JSON
Version 0.0.4 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2025-07-20 06:05:50
maintainerNone
docs_urlNone
authorTies de Kock
requires_python>=3.11
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Download MRT updates

Download MRT updates. Just from RIPE RIS for now.

```
# install the tool using pipx
pipx install git+https://github.com/ties/mrt-downloader.git
# Now the command should be available as `mrt-downloader`

# let's assume the 'mrt' directory exists
mkdir mrt

# And download a day's worth of mrt files to this directory
mrt-downloader mrt 2025-01-16T00:50 2025-01-17T00:00
```

# Installation

This project requires python 3.11 or higher. Some operating systems may not
include this python version. In turn, this means that you may need to use
install a higher python version first. An example of this on Rocky Linux 9 is
given below.

There are two ways to use this project:

  * Install the command-line tool using pipx
  * As a checked out python project, using uv
  * Or as a library (there is no documentation for this at the moment).

### pipx

```
pipx install git+https://github.com/ties/mrt-downloader.git
# Now the command should be available as `mrt-downloader`
mrt-downloader mrt 2025-01-16T00:50 2025-01-17T00:00
```
### uv

**Only recommended when editing the project**
```
# install dependencies
uv install
# download a day's MRT files into the mrt directory.
uv run python -m mrt_downloader.cli mrt 2025-01-16T00:50 2025-01-17T00:00
```

## Full example: Running on Rocky Linux 9

These steps were done on a clean Rocky Linux 9 VM (Red Hat 9 equivalent):
  * Install `git` and `python3.12` and `pip` for python 3.12
  * Install `pipx`
  * Install and run `mrt-downloader`.

```
[root@rocky-32gb-fsn1-1 ~]# dnf install -y git python3.12 python3.12-pip
...
  python3.12-pip-23.2.1-4.el9.noarch                   python3.12-pip-wheel-23.2.1-4.el9.noarch
  python3.12-setuptools-68.2.2-4.el9.noarch

Complete!
[root@rocky-32gb-fsn1-1 ~]# pip3.12 install pipx
...
Installing collected packages: platformdirs, packaging, click, argcomplete, userpath, pipx
Successfully installed argcomplete-3.5.3 click-8.1.8 packaging-24.2 pipx-1.7.1 platformdirs-4.3.6 userpath-1.9.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[root@rocky-32gb-fsn1-1 ~]# pipx install git+https://github.com/ties/mrt-downloader.git
  installed package mrt-downloader 0.0.1, installed using Python 3.12.5
  These apps are now globally available
    - mrt-downloader
done! ✨ 🌟 ✨
[root@rocky-32gb-fsn1-1 ~]# mkdir /tmp/mrt
[root@rocky-32gb-fsn1-1 ~]# mrt-downloader /tmp/mrt 2025-01-16T00:50 2025-01-17T00:00
Downloading updates from 2025-01-16 00:50:00 to 2025-01-17 00:00:00 to /tmp/mrt
Skipping https://data.ris.ripe.net/rrc27/2025.01/ due to HTTP error 404
Skipping https://data.ris.ripe.net/rrc08/2025.01/ due to HTTP error 404
Skipping https://data.ris.ripe.net/rrc09/2025.01/ due to HTTP error 404
Skipping https://data.ris.ripe.net/rrc02/2025.01/ due to HTTP error 404
Skipping https://data.ris.ripe.net/rrc17/2025.01/ due to HTTP error 404
Downloading 6486 files on 16 workers

Downloaded 316 files
Downloaded 349 files
Downloaded 314 files
Downloaded 345 files
Downloaded 422 files
Downloaded 562 files
Downloaded 475 files
Downloaded 392 files
Downloaded 560 files
Downloaded 443 files
Downloaded 408 files
Downloaded 455 files
Downloaded 256 files
Downloaded 269 files
Downloaded 521 files
Downloaded 399 files
[root@rocky-32gb-fsn1-1 ~]#
[root@rocky-32gb-fsn1-1 ~]# ls /tmp/mrt/
rrc00-bview.20250116.0800.gz    rrc10-updates.20250116.1615.gz  rrc19-updates.20250116.0825.gz
rrc00-bview.20250116.1600.gz    rrc10-updates.20250116.1620.gz  rrc19-updates.20250116.0830.gz
rrc00-bview.20250117.0000.gz    rrc10-updates.20250116.1625.gz  rrc19-updates.20250116.0835.gz
rrc00-updates.20250116.0050.gz  rrc10-updates.20250116.1630.gz  rrc19-updates.20250116.0840.gz
...
rrc10-updates.20250116.1555.gz  rrc19-updates.20250116.0805.gz  rrc26-updates.20250116.2345.gz
rrc10-updates.20250116.1600.gz  rrc19-updates.20250116.0810.gz  rrc26-updates.20250116.2350.gz
rrc10-updates.20250116.1605.gz  rrc19-updates.20250116.0815.gz  rrc26-updates.20250116.2355.gz
rrc10-updates.20250116.1610.gz  rrc19-updates.20250116.0820.gz  rrc26-updates.20250117.0000.gz
[root@rocky-32gb-fsn1-1 ~]#
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mrt-downloader",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ties de Kock",
    "author_email": "Ties de Kock <ties@tiesdekock.nl>",
    "download_url": "https://files.pythonhosted.org/packages/8e/14/78e8ecb23f0e25f71fd78963226f30f678d692eb98c21468eb579bb7b0a6/mrt_downloader-0.0.4.tar.gz",
    "platform": null,
    "description": "# Download MRT updates\n\nDownload MRT updates. Just from RIPE RIS for now.\n\n```\n# install the tool using pipx\npipx install git+https://github.com/ties/mrt-downloader.git\n# Now the command should be available as `mrt-downloader`\n\n# let's assume the 'mrt' directory exists\nmkdir mrt\n\n# And download a day's worth of mrt files to this directory\nmrt-downloader mrt 2025-01-16T00:50 2025-01-17T00:00\n```\n\n# Installation\n\nThis project requires python 3.11 or higher. Some operating systems may not\ninclude this python version. In turn, this means that you may need to use\ninstall a higher python version first. An example of this on Rocky Linux 9 is\ngiven below.\n\nThere are two ways to use this project:\n\n  * Install the command-line tool using pipx\n  * As a checked out python project, using uv\n  * Or as a library (there is no documentation for this at the moment).\n\n### pipx\n\n```\npipx install git+https://github.com/ties/mrt-downloader.git\n# Now the command should be available as `mrt-downloader`\nmrt-downloader mrt 2025-01-16T00:50 2025-01-17T00:00\n```\n### uv\n\n**Only recommended when editing the project**\n```\n# install dependencies\nuv install\n# download a day's MRT files into the mrt directory.\nuv run python -m mrt_downloader.cli mrt 2025-01-16T00:50 2025-01-17T00:00\n```\n\n## Full example: Running on Rocky Linux 9\n\nThese steps were done on a clean Rocky Linux 9 VM (Red Hat 9 equivalent):\n  * Install `git` and `python3.12` and `pip` for python 3.12\n  * Install `pipx`\n  * Install and run `mrt-downloader`.\n\n```\n[root@rocky-32gb-fsn1-1 ~]# dnf install -y git python3.12 python3.12-pip\n...\n  python3.12-pip-23.2.1-4.el9.noarch                   python3.12-pip-wheel-23.2.1-4.el9.noarch\n  python3.12-setuptools-68.2.2-4.el9.noarch\n\nComplete!\n[root@rocky-32gb-fsn1-1 ~]# pip3.12 install pipx\n...\nInstalling collected packages: platformdirs, packaging, click, argcomplete, userpath, pipx\nSuccessfully installed argcomplete-3.5.3 click-8.1.8 packaging-24.2 pipx-1.7.1 platformdirs-4.3.6 userpath-1.9.2\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\n[root@rocky-32gb-fsn1-1 ~]# pipx install git+https://github.com/ties/mrt-downloader.git\n  installed package mrt-downloader 0.0.1, installed using Python 3.12.5\n  These apps are now globally available\n    - mrt-downloader\ndone! \u2728 \ud83c\udf1f \u2728\n[root@rocky-32gb-fsn1-1 ~]# mkdir /tmp/mrt\n[root@rocky-32gb-fsn1-1 ~]# mrt-downloader /tmp/mrt 2025-01-16T00:50 2025-01-17T00:00\nDownloading updates from 2025-01-16 00:50:00 to 2025-01-17 00:00:00 to /tmp/mrt\nSkipping https://data.ris.ripe.net/rrc27/2025.01/ due to HTTP error 404\nSkipping https://data.ris.ripe.net/rrc08/2025.01/ due to HTTP error 404\nSkipping https://data.ris.ripe.net/rrc09/2025.01/ due to HTTP error 404\nSkipping https://data.ris.ripe.net/rrc02/2025.01/ due to HTTP error 404\nSkipping https://data.ris.ripe.net/rrc17/2025.01/ due to HTTP error 404\nDownloading 6486 files on 16 workers\n\nDownloaded 316 files\nDownloaded 349 files\nDownloaded 314 files\nDownloaded 345 files\nDownloaded 422 files\nDownloaded 562 files\nDownloaded 475 files\nDownloaded 392 files\nDownloaded 560 files\nDownloaded 443 files\nDownloaded 408 files\nDownloaded 455 files\nDownloaded 256 files\nDownloaded 269 files\nDownloaded 521 files\nDownloaded 399 files\n[root@rocky-32gb-fsn1-1 ~]#\n[root@rocky-32gb-fsn1-1 ~]# ls /tmp/mrt/\nrrc00-bview.20250116.0800.gz    rrc10-updates.20250116.1615.gz  rrc19-updates.20250116.0825.gz\nrrc00-bview.20250116.1600.gz    rrc10-updates.20250116.1620.gz  rrc19-updates.20250116.0830.gz\nrrc00-bview.20250117.0000.gz    rrc10-updates.20250116.1625.gz  rrc19-updates.20250116.0835.gz\nrrc00-updates.20250116.0050.gz  rrc10-updates.20250116.1630.gz  rrc19-updates.20250116.0840.gz\n...\nrrc10-updates.20250116.1555.gz  rrc19-updates.20250116.0805.gz  rrc26-updates.20250116.2345.gz\nrrc10-updates.20250116.1600.gz  rrc19-updates.20250116.0810.gz  rrc26-updates.20250116.2350.gz\nrrc10-updates.20250116.1605.gz  rrc19-updates.20250116.0815.gz  rrc26-updates.20250116.2355.gz\nrrc10-updates.20250116.1610.gz  rrc19-updates.20250116.0820.gz  rrc26-updates.20250117.0000.gz\n[root@rocky-32gb-fsn1-1 ~]#\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.0.4",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9ddb1fc70bda16a1269bbf7ac7e209f299d20b662ad56abe1502c37ac5ed7a03",
                "md5": "16cd415e57b825ec5937825768bc0c20",
                "sha256": "c40606e57fdfa59ea0ba91c12493e4416ad2d8b16cee4451d31749e600c0d142"
            },
            "downloads": -1,
            "filename": "mrt_downloader-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "16cd415e57b825ec5937825768bc0c20",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 14076,
            "upload_time": "2025-07-20T06:05:49",
            "upload_time_iso_8601": "2025-07-20T06:05:49.773604Z",
            "url": "https://files.pythonhosted.org/packages/9d/db/1fc70bda16a1269bbf7ac7e209f299d20b662ad56abe1502c37ac5ed7a03/mrt_downloader-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8e1478e8ecb23f0e25f71fd78963226f30f678d692eb98c21468eb579bb7b0a6",
                "md5": "baabed8e0f452b7f20236708f1bde01f",
                "sha256": "7824eac6fff20a985fe10bcff33eb90ecbb1f93ab299aafc2f492ad05261d925"
            },
            "downloads": -1,
            "filename": "mrt_downloader-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "baabed8e0f452b7f20236708f1bde01f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 10629,
            "upload_time": "2025-07-20T06:05:50",
            "upload_time_iso_8601": "2025-07-20T06:05:50.980952Z",
            "url": "https://files.pythonhosted.org/packages/8e/14/78e8ecb23f0e25f71fd78963226f30f678d692eb98c21468eb579bb7b0a6/mrt_downloader-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-20 06:05:50",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mrt-downloader"
}
        
Elapsed time: 1.30514s