Skip to main content

A simple CLI tool to diff two text files.

Project description

peter-diff

A simple Python CLI tool to compare two text files and output their differences, similar to the Unix diff command.

Installation

pip install -e .
pip uninstall peter-diff

OR

pip install peter-diff

Usage

pydiff file1.txt file2.txt

Publishing to PyPI

pip install build twine
python -m build
twine upload dist/*

When prompted, use __token__ as the username and your PyPI API token as the password.

To skip the prompt, create a ~/.pypirc file:

[pypi]
username = __token__
password = pypi-YOUR-TOKEN-HERE

Note: Bump the version in pyproject.toml before each upload — PyPI rejects duplicate version numbers.

Requirements

  • Python >= 3.9
  • No external dependencies

License

MIT

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

peter_diff-0.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peter_diff-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file peter_diff-0.1.2.tar.gz.

File metadata

  • Download URL: peter_diff-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for peter_diff-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aa447eb11657cc886fae05b2c844d02abd40063980b00f285f88c19106acf4f9
MD5 39b2c67221c32bd5815b738655541461
BLAKE2b-256 119f4abc6d159efd5540ceaf2d7fde2815a14f65beb14785c0d753246bbd004c

See more details on using hashes here.

File details

Details for the file peter_diff-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: peter_diff-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for peter_diff-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4561fe4d1e2978051fa94bea6ade7b76745d8611cde10c24c004dfe474ba10c1
MD5 c5db9fe62f31d94511671d277fd29f42
BLAKE2b-256 bc3b5882a9a6cb0a0498a0bf24516591af17522d595f1acf69e0944ce4fadd54

See more details on using hashes here.

Supported by

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