
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
jit-open
Advanced tools
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.
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.
.. code:: python
>>> 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.
.. _PyPI: https://pypi.python.org/pypi/jit-open
.. _GitHub: https://github.com/jfjlaros/jit-open.git
FAQs
Just in time open files
We found that jit-open demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.