Skip to main content

Invoke macOS applications to view files

Project description

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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zensols.showfile-0.3.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file zensols.showfile-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zensols.showfile-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1192e7bd7b0fe174aab3fc7277a08d188e3036aff310a3f5d5d7c2618e6fef3
MD5 084bce6a790307fde3bbdf40023e1ccb
BLAKE2b-256 efc455dbead95014049f37381f6ebd206fb2e3a2099e94e1e29c1ff8cdce7663

See more details on using hashes here.

Supported by

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