desktop-parser 0.1.1

Creator: bradpython12

Last updated:

Add to Cart

Description:

desktopparser 0.1.1

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

Desktop Entry Specification

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

Desktop Creator Team

0xMRTT

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.