Invoke macOS applications to view files
Project description
Invoke native applications to view files
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
Copyright (c) 2022 Paul Landes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file zensols.showfile-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: zensols.showfile-0.3.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1192e7bd7b0fe174aab3fc7277a08d188e3036aff310a3f5d5d7c2618e6fef3 |
|
MD5 | 084bce6a790307fde3bbdf40023e1ccb |
|
BLAKE2b-256 | efc455dbead95014049f37381f6ebd206fb2e3a2099e94e1e29c1ff8cdce7663 |