Python reflink wraps around platform specific reflink implementations
Project description
Python reflink
Python wrapper around the reflink system calls. Note: Python is implementing this natively upstream, cfr. https://bugs.python.org/issue37157.
Free software: MIT license
Documentation: https://reflink.readthedocs.io.
Documentation for master branch: https://rubdos.gitlab.io/pyreflink/docs
Features
Btrfs, XFS, OCFS2 reflink support. Btrfs is tested the most.
Apple macOS APFS clonefile support. Little testing, be careful. It might eat data.
A convenience method that checks support for reflinks within a specific directory.
Installation
This library is available on pypi:
pip install reflink
Quick start example
To use Python reflink in a project:
from reflink import reflink # Reflink copy 'large_file.img' to 'copy_of_file.img' reflink("large_file.img", "copy_of_file.img")
Help wanted
Someone to implement a Windows/ReFS implementation
Support
Support on the GitLab repository, feel free to file an issue.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.2.0 (2018-03-09)
New features:
APFS/Darwin support
Filenames outside ascii are supported (thank you, Kriskras99)
Bug fixes:
Building on newer glibc (thank you, Frankie Dintino)
Better error handling for ENOENT
Other changes:
Continuous integration for Windows (AppVeyor), integrated in the GitLab pipeline
0.1.0 (2017-07-27)
First release on PyPI.
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 Distributions
File details
Details for the file reflink-0.2.2.tar.gz
.
File metadata
- Download URL: reflink-0.2.2.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 882375ee7319275ae5f6a6a1287406365dac1e9643b91ad10e5187d3f84253bd |
|
MD5 | 5ca7432f31c16411e4bae75d0922295f |
|
BLAKE2b-256 | 6347b503f286378336aa6d2fd3caad10633bb79f3bc6256f1f2f9102dacb3c98 |
File details
Details for the file reflink-0.2.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: reflink-0.2.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 13.4 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4787c6208faf7fc892390909cf01e34e650ea67c37bf345addefd597ed90e1 |
|
MD5 | ff0def20e7d475f26db984724e24792c |
|
BLAKE2b-256 | 88636c5adc7e4102c0a2f3bb15dd07d346e3b8cf847afda07ea5e9eabbc23c21 |
File details
Details for the file reflink-0.2.2-cp36-cp36m-win32.whl
.
File metadata
- Download URL: reflink-0.2.2-cp36-cp36m-win32.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8435c7153af4d6e66dc8acb48a9372c8ec6f978a09cdf7b57cd6656d969e343a |
|
MD5 | aae58d5e6a966ccc3b43091a11e76b06 |
|
BLAKE2b-256 | a4125a3632165e941a7a7d29801044b8f17b4e193b5ae786c3df537aeebe6d21 |