jdReplace


NamejdReplace JSON
Version 4.2 PyPI version JSON
download
home_page
SummaryWith jdReplace you can replace a text in all files of a directory
upload_time2023-12-13 10:50:31
maintainer
docs_urlNone
author
requires_python>=3.9
licenseGPL-3
keywords jakobdev pyqt6
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">jdReplace</h1>

<h3 align="center">With jdReplace you can replace a text in all files of a directorys</h3>

<p align="center">
    <img alt="jdReplace" src="screenshots/MainWindow_en.png"/>
</p>

jdReplace is a simple mass search and replace tool.
You set a directory, a text to replace, the replacement and click OK.
jdReplace will do the rest.

## Install

### Flatpak
You can get jdReplace from [Flathub](https://flathub.org/apps/page.codeberg.JakobDev.jdReplace)

### AUR
Arch Users can get jdReplace from the [AUR](https://aur.archlinux.org/packages/jdreplace)

### pip
You can install jdReplace from [PyPI](https://pypi.org/project/jdReplace) using `pip`:
```shell
pip install jdReplace
```
Using this Method, it will not include a Desktop Entry or any other Data file, so you need to run jdReplace from the Command Line.
Use this only, when nothing else works.

### From source
This is only for experienced Users and someone, who wants to package jdReplace for a Distro.
jdReplaceshould be installed as a Python package.
You can use `pip` or any other tool that can handle Python packages.
You need to have `lrelease` installed to build the Package.
After that, you should run `install-unix-datafiles.py` which wil install things like the Desktop Entry or the Icon in the correct place.
It defaults to `/usr`, but you can change it with the `--prefix` argument.
It also applies the translation to this files.
You need gettext installed to run `install-unix-datafiles.py`.

Here's a example of installing jdReplace into `/usr/local`:
```shell
sudo pip install --prefix /usr/local .
sudo ./install-unix-datafiles.py --prefix /usr/local
```

## Translate
You can help translating jdReplace on [Codeberg Translate](https://translate.codeberg.org/projects/jdReplace)

## Develop
jdReplaceis written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both.
You can run `jdReplace.py`to start jdReplace from source and test your local changes.
It ships with a few scripts in the tools directory that you need to develop.

#### BuildTranslations.py
This script takes all `.ts` files and compiles it to `.qm` files.
The `.ts` files are containing the translation source and are being used during the translation process.
The `.qm` contains the compiled translation and are being used by the Program.
You need to compile a `.ts` file to a `.qm` file to see the translations in the Program.

#### UpdateTranslations.py
This regenerates the `.ts` files. You need to run it, when you changed something in the source code.
The `.ts` files are contains the line in the source, where the string to translate appears,
so make sure you run it even when you don't changed a translatable string, so the location is correct.

####  UpdateUnixDataTranslations.py
This regenerates the translation files in `deploy/translations`. these files contains the translations for the Desktop Entry and the AppStream File.
It uses gettext, as it is hard to translate this using Qt.
These files just exists to integrate the translation with Weblate, because Weblate can't translate the Desktop Entry and the AppStream file.
Make sure you run this when you edited one of these files.
You need to have gettext installed to use it.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "jdReplace",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "JakobDev,PyQt6",
    "author": "",
    "author_email": "JakobDev <jakobdev@gmx.de>",
    "download_url": "https://files.pythonhosted.org/packages/b7/27/6cdd93cdd6400f3230a38f1fddbfb88560cf8317c8f18ce51179e641242a/jdReplace-4.2.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">jdReplace</h1>\n\n<h3 align=\"center\">With jdReplace you can replace a text in all files of a directorys</h3>\n\n<p align=\"center\">\n    <img alt=\"jdReplace\" src=\"screenshots/MainWindow_en.png\"/>\n</p>\n\njdReplace is a simple mass search and replace tool.\nYou set a directory, a text to replace, the replacement and click OK.\njdReplace will do the rest.\n\n## Install\n\n### Flatpak\nYou can get jdReplace from [Flathub](https://flathub.org/apps/page.codeberg.JakobDev.jdReplace)\n\n### AUR\nArch Users can get jdReplace from the [AUR](https://aur.archlinux.org/packages/jdreplace)\n\n### pip\nYou can install jdReplace from [PyPI](https://pypi.org/project/jdReplace) using `pip`:\n```shell\npip install jdReplace\n```\nUsing this Method, it will not include a Desktop Entry or any other Data file, so you need to run jdReplace from the Command Line.\nUse this only, when nothing else works.\n\n### From source\nThis is only for experienced Users and someone, who wants to package jdReplace for a Distro.\njdReplaceshould be installed as a Python package.\nYou can use `pip` or any other tool that can handle Python packages.\nYou need to have `lrelease` installed to build the Package.\nAfter that, you should run `install-unix-datafiles.py` which wil install things like the Desktop Entry or the Icon in the correct place.\nIt defaults to `/usr`, but you can change it with the `--prefix` argument.\nIt also applies the translation to this files.\nYou need gettext installed to run `install-unix-datafiles.py`.\n\nHere's a example of installing jdReplace into `/usr/local`:\n```shell\nsudo pip install --prefix /usr/local .\nsudo ./install-unix-datafiles.py --prefix /usr/local\n```\n\n## Translate\nYou can help translating jdReplace on [Codeberg Translate](https://translate.codeberg.org/projects/jdReplace)\n\n## Develop\njdReplaceis written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both.\nYou can run `jdReplace.py`to start jdReplace from source and test your local changes.\nIt ships with a few scripts in the tools directory that you need to develop.\n\n#### BuildTranslations.py\nThis script takes all `.ts` files and compiles it to `.qm` files.\nThe `.ts` files are containing the translation source and are being used during the translation process.\nThe `.qm` contains the compiled translation and are being used by the Program.\nYou need to compile a `.ts` file to a `.qm` file to see the translations in the Program.\n\n#### UpdateTranslations.py\nThis regenerates the `.ts` files. You need to run it, when you changed something in the source code.\nThe `.ts` files are contains the line in the source, where the string to translate appears,\nso make sure you run it even when you don't changed a translatable string, so the location is correct.\n\n####  UpdateUnixDataTranslations.py\nThis regenerates the translation files in `deploy/translations`. these files contains the translations for the Desktop Entry and the AppStream File.\nIt uses gettext, as it is hard to translate this using Qt.\nThese files just exists to integrate the translation with Weblate, because Weblate can't translate the Desktop Entry and the AppStream file.\nMake sure you run this when you edited one of these files.\nYou need to have gettext installed to use it.\n",
    "bugtrack_url": null,
    "license": "GPL-3",
    "summary": "With jdReplace you can replace a text in all files of a directory",
    "version": "4.2",
    "project_urls": {
        "Donation": "https://ko-fi.com/jakobdev",
        "Issues": "https://codeberg.org/JakobDev/jdReplace/issues",
        "Source": "https://codeberg.org/JakobDev/jdReplace",
        "Translate": "https://translate.codeberg.org/projects/jdReplace"
    },
    "split_keywords": [
        "jakobdev",
        "pyqt6"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c30a2ec07e4d70db967f95084a5e455dd8c0a7be8e6734b2f3613f37e4fbcf28",
                "md5": "7765033928203c024879cc14a9e4395d",
                "sha256": "ce12b7b57fd6b375ffb13f7a6a78e52b34274bed806c8bc3cfd3f9a10f1eab49"
            },
            "downloads": -1,
            "filename": "jdReplace-4.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7765033928203c024879cc14a9e4395d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 28136,
            "upload_time": "2023-12-13T10:50:29",
            "upload_time_iso_8601": "2023-12-13T10:50:29.781302Z",
            "url": "https://files.pythonhosted.org/packages/c3/0a/2ec07e4d70db967f95084a5e455dd8c0a7be8e6734b2f3613f37e4fbcf28/jdReplace-4.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b7276cdd93cdd6400f3230a38f1fddbfb88560cf8317c8f18ce51179e641242a",
                "md5": "b1cdacabab4c44538a8795a87ec57dfe",
                "sha256": "cf682c2c5004f986dd34be7bd4deab721ed2980e8711b4486b0838542f1c3577"
            },
            "downloads": -1,
            "filename": "jdReplace-4.2.tar.gz",
            "has_sig": false,
            "md5_digest": "b1cdacabab4c44538a8795a87ec57dfe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 27891,
            "upload_time": "2023-12-13T10:50:31",
            "upload_time_iso_8601": "2023-12-13T10:50:31.949517Z",
            "url": "https://files.pythonhosted.org/packages/b7/27/6cdd93cdd6400f3230a38f1fddbfb88560cf8317c8f18ce51179e641242a/jdReplace-4.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-13 10:50:31",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "JakobDev",
    "codeberg_project": "jdReplace",
    "lcname": "jdreplace"
}
        
Elapsed time: 0.16379s