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.
Metadata
Release files for reflink 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reflink-0.2.2.tar.gz | 22.0 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reflink-0.2.2-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| reflink-0.2.2-cp36-cp36m-win32.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-32 | Details |
Total release size: 47.9 kB
Release files / reflink-0.2.2.tar.gz
| Download URL | reflink-0.2.2.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
882375ee7319275ae5f6a6a1287406365dac1e9643b91ad10e5187d3f84253bd
|
|
BLAKE2b-256 checksum How to use checksums |
6347b503f286378336aa6d2fd3caad10633bb79f3bc6256f1f2f9102dacb3c98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / reflink-0.2.2-cp36-cp36m-win_amd64.whl
| Download URL | reflink-0.2.2-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 13.4 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
be4787c6208faf7fc892390909cf01e34e650ea67c37bf345addefd597ed90e1
|
|
BLAKE2b-256 checksum How to use checksums |
88636c5adc7e4102c0a2f3bb15dd07d346e3b8cf847afda07ea5e9eabbc23c21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / reflink-0.2.2-cp36-cp36m-win32.whl
| Download URL | reflink-0.2.2-cp36-cp36m-win32.whl |
|---|---|
| Size | 12.5 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
8435c7153af4d6e66dc8acb48a9372c8ec6f978a09cdf7b57cd6656d969e343a
|
|
BLAKE2b-256 checksum How to use checksums |
a4125a3632165e941a7a7d29801044b8f17b4e193b5ae786c3df537aeebe6d21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|