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.1.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.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: peter_diff-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7fb7ec6da58d23e50b5c2378caa2e3fd3f2516c3bfea67ad9401a5c366a3667e
MD5 8366bd8dcb637ee16262500579b5de7d
BLAKE2b-256 9c760441e9d9c0384c427b4815b342075d320f74fb783b100d6f2c0a6ec8e178

See more details on using hashes here.

File details

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

File metadata

  • Download URL: peter_diff-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce9923772dd0b7c3c38fca86c41b3e0e607ed243701c1014fdacbd001219962
MD5 8a9c0205c5360c4da8fd3eac8b87a936
BLAKE2b-256 9e63bc9a8a2920ada2620c22e238f2fbe506a1150d7517945466531d5d5fae5d

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