Skip to main content

Getting started with stdopen

version: 0.2.3

This is a wrapper around Python's open (or other open methods), that will automate file-like object creation either by opening a file or from STDIN/STDOUT. It also provides the option writing to a temp file which is seamlessly copied over to the desired output directory upon successful closing, or deleted upon error. It will also pass through (back) any iterators.

All of the functionality described above is particulay useful when implementing cmd-line programs.

There is online documentation for stdopen.

Installation instructions

pip install

pip install stdopen

Installation using conda

A conda build is also available for Python v3.9 - v3.13 on linux-64/osX-64. Although please note that all development and testing is performed in linux-64.

conda install -c conda-forge -c cfin stdopen

Next steps...

If you want to run the tests after install you will need to have cloned the repo and run pytest <REPO-ROOT>/tests.

Change log

You can view the changelog here.

Release files for stdopen 0.2.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 stdopen 0.2.3
File Size Uploaded
stdopen-0.2.3.tar.gz 20.8 kB Details

Built distribution (wheel)

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

Total release size: 41.2 kB

Release files / stdopen-0.2.3.tar.gz

Download URL stdopen-0.2.3.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1b5fe7539c6abeaf49f87b1b0bc78ab3e22a399750373c5aadde561bb30f4750
BLAKE2b-256 checksum
How to use checksums
eb120f5663a38de89797a258af91dd0f5ff488cd91d5d204b48e7c88e6322b29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / stdopen-0.2.3-py3-none-any.whl

Download URL stdopen-0.2.3-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ba1fe474007b916cd704979925c274d4b2bd8b4d7083153e7edcd05ec3d3388
BLAKE2b-256 checksum
How to use checksums
80009a4fb1c903d3e4b35dcf1055341492b70ac6593a0d8d9fbe1ecf21f77965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

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