Skip to main content

Access the MacOS defaults via the `defaults` command.

Project description

Access the MacOS defaults via the defaults command.

Latest release 20250108: Moved @cachedmethod from cs.deco to cs.cache.

Class Defaults

A view of the defaults.

Defaults.domains: Return a list of the domains present in the defaults.

Defaults.run(self, argv, doit=True) -> str: Run a defaults subcommand, return the output decoded from UTF-8.

defaults(argv, *, host=None, doit=True, **subp)

Run the defaults command with the arguments argv. If the optional host parameter is supplied, a value of '.' uses the -currentHost option and other values are used with the -host option. Return the CompletedProcess result or None if doit is false.

Class DomainDefaults

A view of the defaults for a particular domain.

DomainDefaults.as_dict(self): Return the current defaults as a dict.

DomainDefaults.flush(self): Forget any cached information.

Release Log

Release 20250108: Moved @cachedmethod from cs.deco to cs.cache.

Release 20241122: run: drop quiet=False parameter, the run() inside defaults() will pick things up.

Release 20240316: Fixed release upload artifacts.

Release 20240201: Initial PyPI release.

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

cs_app_osx_defaults-20250108.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cs_app_osx_defaults-20250108-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cs_app_osx_defaults-20250108.tar.gz.

File metadata

  • Download URL: cs_app_osx_defaults-20250108.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for cs_app_osx_defaults-20250108.tar.gz
Algorithm Hash digest
SHA256 5e2aef1f119883f6ebfd92938faecab9fd759433b8306296575bd4aa56fea5d5
MD5 c75638469f13cf96dbe673b3edd4e54a
BLAKE2b-256 3f2e922014da179fc12f9a121b90db8afde20377865867186b09dcf77ded5bcc

See more details on using hashes here.

File details

Details for the file cs_app_osx_defaults-20250108-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cs_app_osx_defaults-20250108-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a25c3ed72caffc6b5ba40d5cdac0c2cdb0f7b629a5d3525bfefca976deddcbcc
MD5 36826b5b5f336cec7d48626293c7074a
BLAKE2b-256 df96ba9c2de79bb61424f5638a94980d98ccf07289db1fc7fa43996b401a9ad4

See more details on using hashes here.

Supported by

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