Skip to main content

Desktop Parser

This is a parser for the .desktop file format. It's used in Desktop Creator.

Installation

From pypi

pip install desktop-parser

From source

git clone https://github.com/DesktopCreatorTeam/desktop-parser
cd desktop-parser
poetry install

From the AUR

yay -S python-desktop-parser

Usage

from desktop_parser import DesktopFile

# Parse a file
desktop_file = DesktopFile.from_file("path/to/file.desktop")

desktop_file.data["Name"] = "New Name"
desktop_file.data["Exec"] = "new-exec"

# Save the file
desktop_file.save("path/to/file.desktop")

Documentation

The documentation is available here.

License

This project is licensed under the GNU GPLv3 license - see the LICENSE.md file for details.

Acknowledgments

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors and Contributors

Metadata

Release files for desktop-parser 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for desktop-parser 0.1.1
File Size Uploaded
desktop-parser-0.1.1.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for desktop-parser 0.1.1
File Interpreter ABI Platform
desktop_parser-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 30.6 kB

Release files / desktop-parser-0.1.1.tar.gz

Download URL desktop-parser-0.1.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5b5622521343480d5175b369e72af894332a7c663baa08afd1d26edfe0111971
BLAKE2b-256 checksum
How to use checksums
1fd5325d97cdcee29849d2fef8f11fee1358e07e848c605c144b766e325b4a58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / desktop_parser-0.1.1-py3-none-any.whl

Download URL desktop_parser-0.1.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9e15799d6d79284239be5f6ee69d919c997c1c3e5646536daef16455780561c
BLAKE2b-256 checksum
How to use checksums
5f018b13350d611989378c6c4d08ace8a7e0d8fb51c49ea52800262799a43a55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page