Skip to main content

@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

Examples/

Feedback github_issues gitter github_follow

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for only-0.0.16.tar.gz
Algorithm Hash digest
SHA256 9dc70f8506f48a75fba542b56ed5de5650c3b74b4c5a12ed15c163b771d12880
MD5 1062e07bb88dde349961fa7e286c0fe7
BLAKE2b-256 d45fc1a458b8053b0c641a754689f40df9e3a66eeefa72a2c4713e2a018ecc26

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