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.
Release files for cs-app-osx-defaults 20250108
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs_app_osx_defaults-20250108.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cs_app_osx_defaults-20250108-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.4 kB
Release files / cs_app_osx_defaults-20250108.tar.gz
| Download URL | cs_app_osx_defaults-20250108.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e2aef1f119883f6ebfd92938faecab9fd759433b8306296575bd4aa56fea5d5
|
|
BLAKE2b-256 checksum How to use checksums |
3f2e922014da179fc12f9a121b90db8afde20377865867186b09dcf77ded5bcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Release files / cs_app_osx_defaults-20250108-py2.py3-none-any.whl
| Download URL | cs_app_osx_defaults-20250108-py2.py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a25c3ed72caffc6b5ba40d5cdac0c2cdb0f7b629a5d3525bfefca976deddcbcc
|
|
BLAKE2b-256 checksum How to use checksums |
df96ba9c2de79bb61424f5638a94980d98ccf07289db1fc7fa43996b401a9ad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|