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
zensols.showfile-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.1.0

2 release files

0.0.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