@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.5.tar.gz
(8.5 kB
view details)
File details
Details for the file only-0.0.5.tar.gz
.
File metadata
- Download URL: only-0.0.5.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61d1fbce70145de1c8d061d8de16a12bd6ef74501e899bb7545fee295cc563a |
|
MD5 | 53f049bfbce61b4c158df942f6d4bf1e |
|
BLAKE2b-256 | 5a6887ebf151d09091addbb2a595c2f5bfbba1c0e1ac6001365acd3f819f531a |