Skip to content
 
 

Repository files navigation

Project: Image Processing Package

Project Author: Karina Kato

Challenge: Creating an Image Processing Package with Python - Data Engineering Bootcamp with Python

(click here to see my profile on the platform)

Technology: Python

Date: 10/25/2024


Description

The "image_processing-test" package is used for:

  • Processing module:

    • Histogram matching;
    • Structural similarity;
    • Resize image;
  • Utils module:

    • Read image;
    • Save image;
    • Plot image;
    • Graph result;
    • Plot histogram;

Step-by-step configuration for hosting a Python package in the Test Pypi test environment

  • Installing the latest versions of "setuptools" and "wheel"
py -m pip install --user --upgrade setuptools wheel
  • Make sure the directory in the terminal is the same as the "setup.py" file
C:\User\anas\image-processing-package> py setup.py sdist bdist_wheel
  • After completing the installation, check if the following folders have been added to the project:

  • build;

  • dist;

  • image_processing_test.egg-info.

  • Just upload the files, using Twine, to Test Pypi:

py -m twine upload --repository testpypi dist/*
  • After running the above command in the terminal, you will be asked to enter your username and password. Once this is done, the project will be hosted on Test Pypi. Host it on Pypi directly.

The goal here is not to use Karina's project to post on my personal Pypi profile, since the project is hers. I don't have any projects that can be used as a package yet.

However, keep in mind that Test Pypi, as its name suggests, is just a testing environment. In order for the project to be available as a package for public use, it is necessary to host it on the official Pypi website. ----------------------------------------------------

Local installation, after hosting on Test Pypi

  • Installing dependencies
pip install -r requirements.txt
  • Installing the package

Use the package manager pip install -i https://test.pypi.org/simple/ image-processing-test to install image_processing-test

pip install image-processing-test (Test Pypi)

Author (who hosted the project on Test Pypi)

Ana Cunha

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages