Skip to main content

Access the MacOS defaults via the `defaults` command.

Project description

Access the MacOS defaults via the defaults command.

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

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 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-20241122.tar.gz (3.7 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-20241122-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cs_app_osx_defaults-20241122.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for cs_app_osx_defaults-20241122.tar.gz
Algorithm Hash digest
SHA256 2cfbbe97c01daaf314d090f607b2a51c19f06bd2cd05c17c436873d821633e0b
MD5 741c640607c5e2922c133aa4320ec3ac
BLAKE2b-256 d1959ae598555c2b5e2fafa9c3e3833abe214d0f0545c8421b378335b75f1728

See more details on using hashes here.

File details

Details for the file cs_app_osx_defaults-20241122-py3-none-any.whl.

File metadata

File hashes

Hashes for cs_app_osx_defaults-20241122-py3-none-any.whl
Algorithm Hash digest
SHA256 9298c21b4da5ecb3342395b284cb48e15bd811b5b2b199b8e8d8941218950c4f
MD5 2850a61c3f69f36d346ed2817e80a170
BLAKE2b-256 c8d2e5f2d66654d7d62d7db100a4d1cf53493bd120522b73fb1d1c4fcf705e53

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