Skip to main content

jit-open: Just in time open files..

Project description

# Just in time open files. 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 used.

## Installation Via [pypi](https://pypi.python.org/pypi/jit-open):

pip install jit_open

From source:

git clone https://git.lumc.nl/j.f.j.laros/jit-open.git cd jit_open pip install .

## Library The library provides the JITOpen class. Full documentation can be found [here](https://git.lumc.nl/j.f.j.laros/jit-open).

### Usage In the following example, only the file used.txt is created.

`python >>> from jit_open import JITOpen >>> >>> used = JITOpen("used.txt", "w") >>> unused = JITOpen("unused.txt", "w") >>> >>> used.write("line 1\n") >>> used.write("line 2\n") `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jit-open-0.0.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file jit-open-0.0.2.tar.gz.

File metadata

  • Download URL: jit-open-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jit-open-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f3d656816fa4fc3fb53d4751ff7d79e5862206e1a11638a0f42fe2dc1347b5e4
MD5 2467b1dd3af17a9bf664f85d61573a2e
BLAKE2b-256 244f0ba26585d7fafe6111c2c6f84436f9bf59b76bd9d0db535216aa8c9861ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page