desktop-entry-lib
desktop-entry-lib allows reading and writing .desktop files according to the Desktop Entry Specification
import desktop_entry_lib
def write() -> None:
entry = desktop_entry_lib.DesktopEntry()
entry.Name.default_text = "My App"
entry.Comment.default_text = "A short description"
entry.Comment.translations["de"] = "A short german description"
entry.Type = "Application"
entry.Exec = "my-app"
entry.write_file("my_app.desktop")
def read() -> None:
entry = desktop_entry_lib.DesktopEntry.from_file("my_app.desktop")
print("Name: " + entry.Name.default_text)
print("Comment: " + entry.Comment.default_text)
print("German translation for Comment: " + entry.Comment.translations.get("de", "None"))
print("Type: " + entry.Type)
print("Exec: " + entry.Exec)
if __name__ == "__main__":
write()
read()
Features:
Metadata
Release files for desktop-entry-lib 5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| desktop_entry_lib-5.0.tar.gz | 18.6 kB | Without provenance | Details for desktop_entry_lib-5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| desktop_entry_lib-5.0-py3-none-any.whl | Python 3 | none | any | Details for desktop_entry_lib-5.0-py3-none-any.whl |
Total release size: 30.3 kB
Release files / desktop_entry_lib-5.0.tar.gz
| Download URL | desktop_entry_lib-5.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a621bac1819fe21021356e41fec0ac096ed56e6eb5dcfe0639cd8654914b864
|
|
BLAKE2b-256 checksum How to use checksums |
c6837602c4ec7c59c9d6929c0f13e6b48e733cf4772dd54b342a360bd07f4b55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / desktop_entry_lib-5.0-py3-none-any.whl
| Download URL | desktop_entry_lib-5.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e60a0c2c5e42492dbe5378e596b1de87d1b1c4dc74d1f41998a164ee27a1226f
|
|
BLAKE2b-256 checksum How to use checksums |
ca0146ec5a4780889da06f016553d1d18d804b3e0da570e4b1e50bd8d28c4a82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Security for desktop-entry-lib 5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.