desktop-parser-0.1.1
توضیحات
Parse .desktop files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | desktop-parser-0.1.1 |
| نام | desktop-parser |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | ['0xMRTT'] |
| ایمیل نگهدارنده | ['0xMRTT@tuta.io'] |
| نویسنده | 0xMRTT |
| ایمیل نویسنده | 0xMRTT@tuta.io |
| آدرس صفحه اصلی | https://desktopcreatorteam.github.io/ |
| آدرس اینترنتی | https://pypi.org/project/desktop-parser/ |
| مجوز | GPL-3.0-or-later |
# Desktop Parser
This is a parser for the [`.desktop` file format](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html). It's used in [Desktop Creator](https://github.com/DesktopCreatorTeam/DesktopCreator).
## Installation
### From pypi
```bash
pip install desktop-parser
```
### From source
```bash
git clone https://github.com/DesktopCreatorTeam/desktop-parser
cd desktop-parser
poetry install
```
### From the AUR
```bash
yay -S python-desktop-parser
```
## Usage
```python
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](https://desktopcreatorteam.github.io/desktop-parser/).
## License
This project is licensed under the GNU GPLv3 license - see the [LICENSE.md](LICENSE.md) file for details.
## Acknowledgments
* [Desktop Entry Specification](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html)
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Authors and Contributors
* [Desktop Creator Team](https://github.com/DesktopCreatorTeam/DesktopCreator)
- **[0xMRTT](https://github.com/0xMRTT)**
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl desktop-parser-0.1.1:
pip install desktop-parser-0.1.1.whl
نصب پکیج tar.gz desktop-parser-0.1.1:
pip install desktop-parser-0.1.1.tar.gz