syncup
Synchronizers for lazy iterators.
pip install syncup
Example
Iterate though a complete FASTX file and a filtered FASTX file, synchronizing on records present in both:
with (
FastxFile(in_source) as source,
FastxFile(in_subseq) as subseq,
):
for count, (fq, fq_subseq) in enumerate(
sync(
iter1=source,
iter2=subseq,
key1=lambda rec: rec.name,
key2=lambda rec: rec.name,
cmp_func=lambda x, y: (x == y) - 1, # only advance iter1 when non-equal
),
start=1,
):
assert fq.name == fq_subseq.name, f"Names for record {count} should be equal!"
Development and Testing
See the contributing guide for more information.
Metadata
Release files for syncup 0.1.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 | |
|---|---|---|---|
| syncup-0.1.0.tar.gz | 31.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| syncup-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.0 kB
Release files / syncup-0.1.0.tar.gz
| Download URL | syncup-0.1.0.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5157d161c7f02a7ee5395ba39dc4b0e0a270fee7dc50415ea5fe7acc8e88845
|
|
BLAKE2b-256 checksum How to use checksums |
ebe8e818609ee22a905b998079aec46864283fe0e5541c90f4e25c5d786ceb6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2025.
Transparency logRelease files / syncup-0.1.0-py3-none-any.whl
| Download URL | syncup-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3993e1ea4806b44d07b422a11b2b4711bf84fa48d5b31765d444f403678c57c3
|
|
BLAKE2b-256 checksum How to use checksums |
ca8420efcf1a456baa48e0396fcb598b8a6c90af1db1e7de528a564e4f6772cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2025.
Transparency log