Skip to main content

@only.<OS> decorator. raise OSError if not supported OS

Project description

https://img.shields.io/badge/Language-Python-blue.svg?style=plastic https://img.shields.io/pypi/pyversions/only.svg https://img.shields.io/pypi/v/only.svg

https://api.codacy.com/project/badge/Grade/fe6a6f03f9354ae391a907cdff85e47b https://codeclimate.com/github/russianidiot/only.py/badges/gpa.svg https://landscape.io/github/russianidiot/only.py/master/landscape.svg?style=flat https://scrutinizer-ci.com/g/russianidiot/only.py/badges/quality-score.png?b=master

Install

`[sudo] pip install only`

Usage

>>> import only

>>> @only.linux
>>> @only.osx
>>> @only.unix
>>> @only.windows

Examples

>>> @only.osx
>>> def osascript(): pass

>>> osascript() # raise OSError if not OS X

Feedback github_follow github_issues

Project details


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.30.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file only-0.0.30.tar.gz.

File metadata

  • Download URL: only-0.0.30.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for only-0.0.30.tar.gz
Algorithm Hash digest
SHA256 bc82851079f6fbfe63192abf85105a2f80cf9f9b7bde59be081e24975acb7605
MD5 308ca447445e428e7dbd6de355972bdc
BLAKE2b-256 54911b8c22789fd6062e54a49b8b16ed62b6978d02653df298dd4e52ba3d34b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page