Skip to main content

Command line tools for images processing, generating pixel art, adding logo to images and many more.

Project description

mdsanima-cli

Command line tools for images processing, generating pixel art, adding logo to images and many more.

Installation

Install latest version:

python3 -m pip install mdsanima-cli

Terminal Commands

Now you can use this command in terminal:

mdsanima

The response is printing help how to use this command line tools.

CLI

Avaiable command for this package.

mdsanima pixelart

This command works in folder that have only .png images and convert this image to pixel art with creating new file with append suffix pixelart to original file name.

Development Setup

Instruction step how to setup development environent is here on this workflow instruction.

Creating isolated environment with specific pip version then activate and install requirements, type in terminal:

virtualenv --pip 23.0 .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt

Build Package

Install buil tools for creating distribution, type in terminal:

pip install --upgrade build

Now you can run:

python -m build

Install Package

Now you can run:

pip install --force-reinstall dist/mdsanima_cli-0.1.0-py3-none-any.whl

Testing Package

Finally you can run this command:

python -m mdsanima_cli.pixelart

Also you can run this command before you build and install:

python3 src/mdsanima_cli/pixelart.py

Extracts Version Package

This setuptools-scm tools allow to extract Python package version from git instead declaring them as the version argument.

Check the pyproject.toml file and this instruction for more info.

If you need to confirm which version string is being generated or debug the configuration, you can install setuptools-scm directly in your working environment pip install setuptools-scm and run:

python -m setuptools_scm

Creating Release

This is a steps for creating release version.

First add new code to the package and test this. Second steps is commit change like this command git commit -m "feat: new feature generating pixelart" and next is type this in terminal:

standard-version

This command create the new version and generate CHANGELOG.md file.

Next is a add this changes to git, type in terminal:

git commit -am "chore(release): 0.1.2"

The version abowe is a from standard-version command and this is a only example version. The version must always be changed when a new version is released.

The next steps is a creating a tag and pushing the change to origin with tag, type in terminal:

git tag 0.1.2
git push origin --tag

Checking the extracts version, type in terminal:

python -m setuptools_scm

Finally create the build and update to test.pypi.org and pypi.org first you can check and then update.

python -m build
twine check dist/*
twine upload -r testpypi dist/*
twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdsanima_cli-0.1.2.tar.gz (20.7 kB view hashes)

Uploaded Source

Built Distribution

mdsanima_cli-0.1.2-py3-none-any.whl (13.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page