@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
Example
>>> @only.osx
>>> def osascript(): pass
>>> osascript() # raise OSError if not OS X
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-0.0.13.tar.gz
(2.5 kB
view details)
File details
Details for the file only-0.0.13.tar.gz
.
File metadata
- Download URL: only-0.0.13.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a26bc2b9ab88b8c35fd12f7e0e712afd3394c46c4b7475034275786ac6cf5e7b |
|
MD5 | d5d07fc8923b2a093e8f600ba009fb77 |
|
BLAKE2b-256 | 0e2c731a37a410db3217ef5663d6f4cd4c4c330ee704f5105bd7c3c0724a3bc0 |