METADATA 908 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Metadata-Version: 2.1
  2. Name: appnope
  3. Version: 0.1.4
  4. Summary: Disable App Nap on macOS >= 10.9
  5. Home-page: http://github.com/minrk/appnope
  6. Author: Min Ragan-Kelley
  7. Author-email: benjaminrk@gmail.com
  8. License: BSD
  9. Classifier: License :: OSI Approved :: BSD License
  10. Classifier: Operating System :: MacOS :: MacOS X
  11. Classifier: Programming Language :: Python :: 3
  12. Requires-Python: >=3.6
  13. Description-Content-Type: text/markdown
  14. License-File: LICENSE
  15. # `appnope`
  16. Simple package for disabling App Nap on macOS >= 10.9,
  17. which can be problematic.
  18. To disable App Nap:
  19. ```python
  20. import appnope
  21. appnope.nope()
  22. ```
  23. To reenable, for some reason:
  24. ```python
  25. appnope.nap()
  26. ```
  27. or to only disable App Nap for a particular block:
  28. ```
  29. with appnope.nope_scope():
  30. do_important_stuff()
  31. ```
  32. It uses ctypes to wrap a `[NSProcessInfo beginActivityWithOptions]` call to disable App Nap.
  33. To install:
  34. pip install appnope