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 hashes)

Uploaded Python 3

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