Skip to main content

openz

Python Testing

A strange file opener.

Usage

from openz import open_for_write, try_rollback

with open_for_write(
            path,
            text_mode=True,
            overwrite=True,
            with_atomicwrite=True,
            with_lockfile=True,
            with_exclusive=False, # unable work with `with_atomicwrite`
            with_backup=True
        ) as fp:

    fp.write('content')

Restore data from crash

Make sure set with_backup=True and backup_for_fault=True:

with open_for_write(path, with_backup=True, backup_for_fault=True) as fp:
    ...

Then you can restore it from the backup:

try_rollback(path)

Metadata

Release files for openz 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openz 0.1.2
File Size Uploaded Provenance
openz-0.1.2.tar.gz 3.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for openz 0.1.2
File Interpreter ABI Platform
openz-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / openz-0.1.2.tar.gz

Download URL openz-0.1.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fb9510690fa02cdccdc1785bb75bcb0b1b1c63795c2d1dd03f3a29531b986268
BLAKE2b-256 checksum
How to use checksums
74b1bdd3d3cdaf61930694a77b3ad3d0dc8aaab04777250a90e9c1aa9f411af9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.7 Windows/10

Release files / openz-0.1.2-py3-none-any.whl

Download URL openz-0.1.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
047153f240ea913fee81db1511302dae8f569a83e967b11c17918122bac159ab
BLAKE2b-256 checksum
How to use checksums
885d88c7cba8b33bd4985811921272aa3b07a6dcf3aaad66ccbaeb193c079205
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.7 Windows/10

Security for openz 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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