A Python library for reading uarc
files. uarc
files contain aliases and information for common Urban Airship data such as apps, secrets, and device identifiers. Tools may use these aliases to avoid making users remember randomly generated identifiers.
uarc
files are simple ini-style files (SafeConfigParser compatible) such as:
ini
[MyApp] key=... secret=... device.foo=apid:... device.bar=pin:... device.baz=token:...
The section name MyApp
is the alias for an app. Each app may specify its key and secrets as well as any number of device aliases.
Files are loaded in the following order:
/etc/ua/uarc
- System-wide$HOME/.uarc
- User-specific$PWD/.uarc
- Directory-specific$UARC
- Custom
Files loaded last overwrite earlier read files.