@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.12.tar.gz
(7.2 kB
view details)
File details
Details for the file only-0.0.12.tar.gz
.
File metadata
- Download URL: only-0.0.12.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d62f68fd449ad4fa380d7dea255ff5ef3f44a6179367fb883586cf202381c11 |
|
MD5 | c5dd520ab857e6bcb56d28983f45e19d |
|
BLAKE2b-256 | b0a771298034f4dac33d03589463f397e6e5572fe275a895fa3aaf01d17f5d97 |