Skip to main content

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)

Source distribution for Jit-Open 1.0.3
File Size Uploaded
jit_open-1.0.3.tar.gz 106.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Jit-Open 1.0.3
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page