@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.15.tar.gz
(2.7 kB
view details)
File details
Details for the file only-0.0.15.tar.gz
.
File metadata
- Download URL: only-0.0.15.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58defda7b4bfcd89509f29bc6ee7e7baa3f8ce70857f7f47b5dfb9b88ebdc6f5 |
|
MD5 | 3c58f5be9fdc746d1827c9515fdbd57b |
|
BLAKE2b-256 | 3d86589c76bbd49b3212e71d10ad623e27bc0a28211fd9dcb2846ac9cde7b099 |