@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
Sources:
russianidiot.github.io/python/ - Python packages
russianidiot.github.io/cli/ - command line scripts
README.rst - generated with readmemako.py (python+ mako templates) and .README dotfiles
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.10.tar.gz
(7.0 kB
view details)
File details
Details for the file only-0.0.10.tar.gz
.
File metadata
- Download URL: only-0.0.10.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4ea8efda75e45395d4d84aeff79b93353f2ada7a26f00d20c950aba08893c8 |
|
MD5 | 33f4e1324313e9b6cc238e9cc9f9433c |
|
BLAKE2b-256 | 939cb27a04d9543f12bafb5e620c62016eb007da7835d31267cfb33e5fc74191 |