@only.<OS> decorator. raise OSError if not supported OS
Project description
Install
$ [sudo] pip install only
Usage
>>> import only
>>> @only.linux
>>> @only.osx
>>> @only.unix
>>> @only.windows
Examples
>>> @only.osx
>>> def osascript(): pass
>>> osascript() # raise OSError if not OS X
Sources
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 Distribution
only-1.0.2.tar.gz
(1.4 kB
view details)
File details
Details for the file only-1.0.2.tar.gz
.
File metadata
- Download URL: only-1.0.2.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa378ee093a565263904b73f9df1d470f44b6e31afe9919d6e7dbde28cf603e2 |
|
MD5 | 762506bf86e79a5f5ff9717dfbfcfcac |
|
BLAKE2b-256 | 86fe65f95775a17eafcead9811be05f10ad09f50bf560c0dfa642a102dcfb632 |