This release is a pre-release and may not be stable for production use.
pgimp
Interacting with gimp in python3.
Use Cases:
- Autocompletion for writing gimp scripts.
- Batch creation or update of gimp files or data extraction from gimp files.
- Workflows where machine learning data has to be annotated. Raw data can be converted to gimp files where the annotation process can happen (gimp's thresholding tools etc. make it easy to do annotation for pixelwise segmentation). After the masks are created, they can be converted back to e.g. numpy files.
Read the documentation for details on what pgimp can do for you and how it is achieved. Every single public method comes with a short working example!
Skeletons for autocompleting gimp scripts
On setup, the GimpDocumentationGenerator will generate python skeletons for the methods that gimp
exposes to the interpreter through the procedural database (pdb). This enables autocompletion in your IDE.
Run a python script within gimp
Running python code within gimp is performed by the GimpScriptRunner. Have a look at the corresponding test
GimpScriptRunnerTest to see how this works.
You may import convenience functions from pgimp.gimp in your gimp python scripts.
See pgimp.GimpScriptRunnerTest.test_import_from_pgimp_library.
Installation
The package manager pip and the python packages setuptools and psutil are required in order
to install the package. As gimp uses a python2 interpreter,
the pip packages numpy and typing for python2 need to be installed.
Operating system dependent infos
Linux
On Linux, install the gimp package, e.g. sudo apt-get install gimp for Debian/Ubuntu. In order to run headless,
install xfvb, e.g. sudo apt-get install xvfb.
Mac OS
Install gimp from gimp.org or via homebrew.
Windows
Windows is not supported.
Using pip
pip3 install pgimp
Using conda
Using a conda environment.yml file:
name: <NAME_OF_THE_ENV>
channels:
- defaults
dependencies:
- python=<3.6+>
- pip:
- pgimp
From github
Using pip:
pip3 install git+https://github.com/mabu-github/pgimp
Using a conda environment.yml file:
name: <NAME_OF_THE_ENV>
channels:
- defaults
dependencies:
- python=<3.6+>
- pip:
- "git+https://github.com/mabu-github/pgimp"
Local
Install using symlink to checked out code (for development):
pip3 install -e .
Contributing and Publishing
See CONTRIBUTING.md.
License
This project is licensed under the MIT license. See the LICENSE file for more info.
Metadata
Release files for pgimp 1.0.0a22
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 |
|---|---|---|---|---|
| pgimp-1.0.0a22.tar.gz | 140.4 kB | Without provenance | Details for pgimp-1.0.0a22.tar.gz |
Release files / pgimp-1.0.0a22.tar.gz
| Download URL | pgimp-1.0.0a22.tar.gz |
|---|---|
| Size | 140.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a6b95a1b839c1f8154415496dd5f8ec5649c4315b3e1acfe517793a2e733bbc
|
|
BLAKE2b-256 checksum How to use checksums |
2166249107f07f3cec05bf1bc138f32a9d7673addb9be61171c51bf6c7da50fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Security for pgimp 1.0.0a22
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.