nwmetalinks
Introduction
This packages consists of the following modules:
nwmetalinksis a library that creates MetaLink v4 strings from user-provided URLs and their corresponding filenames.
Getting Started
I'll use Debian as operating system, but the concept is similar for Windows or Mac.
Procedure:
- Install
pipandvenv:
sudo apt install python3-pip python3.12-venv
- Create a virtual environment:
python3 -m venv /tmp/nwmetalinks
source /tmp/nwmetalinks/bin/activate
- Download and install the package:
pip install nwmetalinks
- Enter in the interactive Python environment:
python3
Python 3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
- Try out if the library works:
from nwmetalinks import MetaLinkFactory
metalink_factory : MetaLinkFactory = MetaLinkFactory()
- Exit from the interactive Python environment:
exit()
- Deactivate and delete the virtual environment:
deactivate
rm -rf /tmp/nwmetalinks
- Done!
The Typical Use Case
In order to use the library, the first thing we need to do is to create a list of download URLs and a list containing their corresponding filenames, and then pass them to the CreateMetaLink4 method of a MetaLinkFactory object, as shown in the following example:
from nwmetalinks import MetaLinkFactory
package_name : str = "nwmetalinks"
tuples : list[tuple[str, str]] = [
("https://numbworks.github.io/nwmetalinks.zip", "nwmetalinks.zip"),
("https://numbworks.github.io/nwmetalinks.tar.gz", "NW.nwmetalinks.tar.gz")
]
metalink : str = MetaLinkFactory().create_metalink4("nwmetalinks", tuples)
with open("nwmetalinks.metalink", "w", encoding="utf-8") as f:
f.write(metalink)
MetaLink v4
Here is a minimal example of a MetaLink v4 file:
<?xml version="1.0" encoding="UTF-8"?>
<metalink xmlns="urn:ietf:params:xml:ns:metalink" version="4.0">
<identity>My Package Name</identity>
<file name="example.bin">
<url>https://example.com/example.bin</url>
</file>
</metalink>
Even if it's a XML file under the hood, a MetaLink file is expected to have the .metalink extension (instead of .xml).
MetaLink v4 and JDownloader
JDownloader has full support for the MetaLink v4 format, but it's worth mentioning that by default, once the user imports a MetaLink file, JDownloader will ping all the files inside it, to check for their online status.
When importing a MetaLink file with hundreds or thousands of links inside, could flood the website and bring the provider to blacklist your IP address.
Before importing a MetaLink file, it could be a good practice to disable the Do Link Check feature:
- Open JDownloader 2.
- Go to
Settings->Advanced Settings. - Locate the setting:
LinkCollector: Do Link Check - Untick (disable) this option.
- Done!
Links
- Source: https://github.com/numbworks/nwmetalinks
- License: https://github.com/numbworks/nwmetalinks/blob/master/LICENSE
Total Downloads (PyPi)
Metadata
Release files for nwmetalinks 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nwmetalinks-1.0.0.tar.gz | 4.5 kB | Without provenance | Details for nwmetalinks-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nwmetalinks-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for nwmetalinks-1.0.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / nwmetalinks-1.0.0.tar.gz
| Download URL | nwmetalinks-1.0.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fd47be26e065b4d5f5f5c1cced170dd12896ab95f53d8fd074a30197583b9d9
|
|
BLAKE2b-256 checksum How to use checksums |
ef8a624b186ca04f99baea1c0de8dd2e9f0dcfee40aeaa58980363192b680b3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.5
|
Release files / nwmetalinks-1.0.0-py3-none-any.whl
| Download URL | nwmetalinks-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
980f537227961d61d605ffe0b687e4613b407a392177583340eca32c899c4484
|
|
BLAKE2b-256 checksum How to use checksums |
d88af31b20463115e91bae880d70430ed832d27c975c922cf50bfe3ace061f2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.5
|
Security for nwmetalinks 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.