A metalink library for Python
Project description
Project: pyMetalink URL: https://github.com/metalink-dev/pymetalink E-mail: nabber00@gmail.com
Copyright: (C) 2007-2016, Neil McNab, Hampus Wessman License: MIT
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Description: pyMetalink is a library for python to support advanced download features
Example:
import metalink.download
files = metalink.download.get("file.metalink", os.getcwd())
CHANGELOG:
Version 6.2
- Tested
- Initial Python 3.x support
- License change to MIT approved by all authors, can still be combined with GPL software
- Catches GPG NEWSIG response
Version 6.1
- Packaged as pure Python package for easy_install and pip
Version 6.0
- Support for RFC 3230 - Instance Digests in HTTP
- Support for RFC 6249 - Metalink/HTTP: Mirrors and Hashes
Version 5.1
- Bugfixes for segmented downloads
- Native Jigdo download support
- Added download time
- Now requires Python 2.5 or newer because Metalink RFC requires SHA-256
Version 5.0
- Added support for Metalink v4 (IETF RFC)
Version 4.4
- Bugfix for when HTTP 302 redirect code is issued during download
Version 4.3
- Added custom HTTP header support
- Added option to parse an HTML file for .metalink files to check
- Added a beta feature for media streaming
- Various bugfixes
Version 4.2
- PGP bugfix
- Jigdo to Metalink convertor
- Other bugfixes
Version 4.1
- XML parsing speed and memory improvements
- Checking function is now multithreaded for speed improvements
- Displays download bitrates
- Grabs proxy info from environment variables and Windows registry
- Fix for faulty file locking, this causes corrupted downloads
Version 4.0
- Uses gzip compression when available on server (non-segmented downloads only)
- Fixed memory leak when computing a checksum
- Bugfixes for download resuming
Version 3.8
- Will now download any file type and auto-detect metalink files
- Added support for metalink "Accept" HTTP header
Version 3.7.4
- Fixed default key import directory
Version 3.7.3
- Fixes for use with UNIX/Linux
- bugfixes in checker code
Version 3.7.2
- Modified to remove the pyme dependency
Version 3.7.1
- Removed missing imports
Version 3.7
- Added first attempt at PGP signature checking
- Minor bugfixes
Version 3.6
- Support for resuming segmented downloads
- Modified for better Python 2.4 support
Version 3.5
- Code cleanup
- FTP close connection speed improvement
- Added documentation for how to use as a library
- Sort by country pref first (if set), then pref value in metalink
Version 3.4
- segmented download FTP size support
- support for user specified OS and language preferences
- finished FTP proxy support
Version 3.3
- Bugfix for when type attr not present
- Support for FTP segmented downloads
Version 3.2
- If type="dynamic", client checks origin location
Version 3.1
- Now handles all SHA hash types and MD5
- Minor bug fixes
Version 3.0
- Speed and bandwidth improvements for checking mode
- Added checking of chunk checksums
- If chunk checksums are present, downloads are resumed
- Proxy support (experimental, HTTP should work, FTP and HTTPS not likely)
Version 2.0.1
- Bugfix when doing size check on HTTP servers, more reliable now
Version 2.0
- Support for segmented downloads! (HTTP urls only, falls back to old method if only FTP urls)
Version 1.4
- Added support for checking the file size on FTP servers
Version 1.3.1
- Made error when XML parse fails a little clearer.
Version 1.3
- Fixed bug when no "size" attribute is present
Version 1.2
- Added totals output
Version 1.1
- Bugfixes for FTP handling, bad URL handling
- rsync doesn't list as a URL Error
- reduced timeout value
Version 1.0
This is the initial release.
TODO
- resume download support for non-segmented downloads
- download priority based on speed
- use maxconnections
- dump FTP data chunks directly to file instead of holding in memory
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
File details
Details for the file pymetalink-6.5.2.tar.gz
.
File metadata
- Download URL: pymetalink-6.5.2.tar.gz
- Upload date:
- Size: 46.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e9090b9a889825abf33ccc5239c1a1cc0bca4c55ff57025b7bbf5555c334d79 |
|
MD5 | e8d12748b62ee4919ad2a2fe4e1326ea |
|
BLAKE2b-256 | 3c4e578bd377b389e697b5b1e041ddfc4044a7be284a182aa833532f3a1d37ea |
File details
Details for the file pymetalink-6.5.2-py3-none-any.whl
.
File metadata
- Download URL: pymetalink-6.5.2-py3-none-any.whl
- Upload date:
- Size: 48.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a08926f702c1eaca53d252c7928c660f9ffdd87c6b58e31653c46134b4fc34bb |
|
MD5 | 42560160b7f33424097ef82a9d48ddbe |
|
BLAKE2b-256 | ba57c9760e05817a7ba6a0645a2f414bd4600d6f70e11018be0ecf54802fe6a5 |