The Python examples for GroupDocs.Comparison are hosted on GitHub at GroupDocs.Comparison-for-Python-via-.NET. Every code snippet on this site has a corresponding runnable script in that repository.
run_all_examples.py discovers every example script in the Examples/ tree, executes each one in its own directory, and reports pass/fail counts. It exits with a non-zero status if any example fails.
To run a single example, change to its directory and execute it directly:
cd Examples/developer-guide/comparing-documents/compare-documents
python compare_documents.py
Apply a license before running
By default, examples run in evaluation mode (two-page cap + trial badges). To run them with a license:
run_all_examples.py picks up the GROUPDOCS_LIC_PATH environment variable and applies the license before running any example.
Run in Docker
The repository ships a Dockerfile that builds an image with the .NET runtime, native dependencies, and a recent Python pre-installed. To build and run the full example suite in a container:
On Windows with Git Bash, run export MSYS_NO_PATHCONV=1 before docker run to prevent MSYS from mangling the GROUPDOCS_LIC_PATH value.
Contribute
If you would like to add or improve an example, the repository is open source. Fork it, edit the code, and submit a pull request — the GroupDocs team will review the change and merge it if it fits the documentation.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.