@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.14.tar.gz
(2.7 kB
view details)
File details
Details for the file only-0.0.14.tar.gz
.
File metadata
- Download URL: only-0.0.14.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bca15d02336a72d813607d2ac80c9c33d448ab6f157b02df1d63dbd8408910f |
|
MD5 | 27f89c374de5b928c639014d124a57a1 |
|
BLAKE2b-256 | 9b6e95f55dedadee51a3330af1ab5f5bad6285a84b67f052c3e49677c9eaebd8 |