This package provides a way to delay opening files until the something is written to the file handle. This can be convenient when opening a large number of files of which most of them will not be frequently used. To deal with resource limits a queue is used from which, when full, the least frequent file is closed.
Installation
The software is distributed via PyPI, it can be installed with pip:
pip install jit_open
From source
The source is hosted on GitHub, to install the latest development version, use the following commands.
git clone https://git.lumc.nl/j.f.j.laros/jit-open cd jit_open pip install .
Usage
In the following example, only the file used.txt is created.
>>> from jit_open import Handle, Queue
>>>
>>> queue = Queue()
>>> used = Handle("used.txt", queue)
>>> unused = Handle("unused.txt", queue)
>>>
>>> used.write("line 1\n")
>>> used.write("line 2\n")
Library
The library provides the Handle and Queue classes.
Metadata
Release files for Jit-Open 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jit_open-1.0.3.tar.gz | 106.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jit_open-1.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 216.8 kB
Release files / jit_open-1.0.3.tar.gz
| Download URL | jit_open-1.0.3.tar.gz |
|---|---|
| Size | 106.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c87da65129a2306c036cb3955edf09c9b5f38157a67ed8836e5a32d07f3b35c
|
|
BLAKE2b-256 checksum How to use checksums |
47209b20fae4687486f3561037493e07eb912b6a45f0285bf0760153eb7dd920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 7, 2026.
Transparency logRelease files / jit_open-1.0.3-py2.py3-none-any.whl
| Download URL | jit_open-1.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 110.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5b2e71d22727daf4b5f45975b40e2651ff583eb3ea270bc48f601194876f4b68
|
|
BLAKE2b-256 checksum How to use checksums |
b35218c3f809030efa2f893f93d46b7c73a114baf6456d60cb8b9566b855d67c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 7, 2026.
Transparency log