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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e2aef1f119883f6ebfd92938faecab9fd759433b8306296575bd4aa56fea5d5
|
|
| MD5 |
c75638469f13cf96dbe673b3edd4e54a
|
|
| BLAKE2b-256 |
3f2e922014da179fc12f9a121b90db8afde20377865867186b09dcf77ded5bcc
|
File details
Details for the file cs_app_osx_defaults-20250108-py2.py3-none-any.whl.
File metadata
- Download URL: cs_app_osx_defaults-20250108-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a25c3ed72caffc6b5ba40d5cdac0c2cdb0f7b629a5d3525bfefca976deddcbcc
|
|
| MD5 |
36826b5b5f336cec7d48626293c7074a
|
|
| BLAKE2b-256 |
df96ba9c2de79bb61424f5638a94980d98ccf07289db1fc7fa43996b401a9ad4
|