@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.17.tar.gz
(2.8 kB
view details)
File details
Details for the file only-0.0.17.tar.gz
.
File metadata
- Download URL: only-0.0.17.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b38bc53e9e48c8fe7fb6a01d687842288150c64f976241eab4738ef7c9b01f82 |
|
MD5 | e7dc59ea824ca7a51659fe033a183d4e |
|
BLAKE2b-256 | ec642b39261ebc77f1ed46906862175e0a766acfb9d296a890a657e1c6cf2c4c |