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
Hashes for reflink-0.2.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4787c6208faf7fc892390909cf01e34e650ea67c37bf345addefd597ed90e1 |
|
MD5 | ff0def20e7d475f26db984724e24792c |
|
BLAKE2b-256 | 88636c5adc7e4102c0a2f3bb15dd07d346e3b8cf847afda07ea5e9eabbc23c21 |
Hashes for reflink-0.2.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8435c7153af4d6e66dc8acb48a9372c8ec6f978a09cdf7b57cd6656d969e343a |
|
MD5 | aae58d5e6a966ccc3b43091a11e76b06 |
|
BLAKE2b-256 | a4125a3632165e941a7a7d29801044b8f17b4e193b5ae786c3df537aeebe6d21 |