Skip to main content

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

Project description

https://img.shields.io/pypi/pyversions/only.svg

https://api.codacy.com/project/badge/Grade/fe6a6f03f9354ae391a907cdff85e47b https://www.codefactor.io/repository/github/looking-for-a-job/only.py/badge https://codeclimate.com/github/looking-for-a-job/only.py/badges/gpa.svg https://img.shields.io/scrutinizer/g/looking-for-a-job/only.py.svg https://bettercodehub.com/edge/badge/looking-for-a-job/only.py?branch=master https://sonarcloud.io/api/project_badges/measure?project=only.py&metric=code_smells

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

https://img.shields.io/github/issues/looking-for-a-job/only.py.svg https://img.shields.io/github/stars/looking-for-a-job/only.py.svg?style=social&label=Stars https://img.shields.io/github/issues/looking-for-a-job/only.py.svg

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for only-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b1ed108a85d1d6d406bb3d7ca6a99e397e38eb977073cf5947e48dde4fd89fed
MD5 babdb8020f56ab22af64404d8fb1be4d
BLAKE2b-256 90cd0e9155942d9af6d4217977df366a2680072b7b5e313bd0ea27a501ae61ae

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