Skip to main content

Invoke native applications to view files

PyPI Python 3.9 Python 3.10 Build Status

Invoke native applications to view files. On macOS, the default web browser and Preview.app are used to view HTML and PDF files respectively. On all other operating systems the default web browser is used to view files.

Usage

Create a configuration file with the dimensions of each of the screens you work with and where you want Preview.app to be displayed. You can validate these configurations by having the application echo them back at you:

$ showfile config

Command Line

Invoke the application to show the file and display it:

$ showfile show example.pdf

See the configuration file example.

From Python

The package is designed to be easy invoke from Python as well:

from zensols.showfile import ApplicationFactory
app = ApplicationFactory().get_instance()
app('test-resources/showfile.conf')

Obtaining

The easiest way to install the command line program is via the pip installer:

pip3 install zensols.showfile

Binaries are also available on pypi.

Documentation

See the full documentation. The API reference is also available.

Changelog

An extensive changelog is available here.

License

MIT License

Copyright (c) 2022 Paul Landes

Metadata

Release files for zensols.showfile 0.3.0

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

Built distribution (wheel)

Table of built distributions (wheels) for zensols.showfile 0.3.0
File Interpreter ABI Platform Actions
zensols.showfile-0.3.0-py3-none-any.whl Python 3 none any Details for zensols.showfile-0.3.0-py3-none-any.whl

Release files / zensols.showfile-0.3.0-py3-none-any.whl

Download URL zensols.showfile-0.3.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1192e7bd7b0fe174aab3fc7277a08d188e3036aff310a3f5d5d7c2618e6fef3
BLAKE2b-256 checksum
How to use checksums
efc455dbead95014049f37381f6ebd206fb2e3a2099e94e1e29c1ff8cdce7663
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Security for zensols.showfile 0.3.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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