Package: pprint3x
pprint3xVersion v3.10.4.6 as of 2023-07-14 seeChangelogBackport of pprint from Python 3.10.1 to Python 3.7-3.9**The pertinent changes from Python 3.7 to Python 3.9 are:pprintcan now pretty-printtypes.SimpleNamespace.
Contributed by Carl Bordum Hansenin Python 3.9.pprint.pphas been added to pretty-print objects with dictionary
keys being sorted with their insertion order by default. Parametersort_dictshas been added topprint.pprint,pprint.pformatandpprint.PrettyPrinter. Contributed by Rémi Lapeyre in Python 3.8.automated tests, Github Actions, Documentation, Badges, etc. are managed withPizzaCutter(cookiecutter on steroids)Python version required: 3.8.0 or newertested on recent linux with python 3.8, 3.9, 3.10, 3.11, 3.12-dev, pypy-3.9, pypy-3.10 - architectures: amd64100% code coverage, flake8 style checking ,mypy static type checking ,tested underLinux, macOS, Windows, automatic daily builds and monitoringTry it OnlineUsageUsage from CommandlineInstallation and UpgradeRequirementsAcknowledgementsContributeReport IssuesPull RequestCode of ConductLicenseChangelogTry it OnlineYou might try it right away in Jupyter Notebook by using the “launch binder” badge, or clickhereUsageto be compatible with the builtin module, just import pprint3x as follows:>>>frompprint3ximportpprint>>>pprint('test')'test'or, if You need the full scope of the pprint namespace :>>>importpprint3xaspprint>>>pprint.pprint('test')'test'>>>pprint.isreadable('test')Truefor documentation of pprint itself, see :https://docs.python.org/3/library/pprint.html(select Python Version 3.10.1)Usage from Commandlinethere are no cli commandsInstallation and UpgradeBefore You start, its highly recommended to update pip and setup tools:python -m pip --upgrade pip
python -m pip --upgrade setuptoolsto install the latest release from PyPi via pip (recommended):python -m pip install --upgrade pprint3xto install the latest release from PyPi via pip, including test dependencies:python -m pip install --upgrade pprint3x[test]to install the latest version from github via pip:python -m pip install --upgrade git+https://github.com/bitranox/pprint3x.gitinclude it into Your requirements.txt:# Insert following line in Your requirements.txt:
# for the latest Release on pypi:
pprint3x

# for the latest development version :
pprint3x @ git+https://github.com/bitranox/pprint3x.git

# to install and upgrade all modules mentioned in requirements.txt:
python -m pip install --upgrade -r /<path>/requirements.txtto install the latest development version, including test dependencies from source code:# cd ~
$ git clone https://github.com/bitranox/pprint3x.git
$ cd pprint3x
python -m pip install -e .[test]via makefile:
makefiles are a very convenient way to install. Here we can do much more,
like installing virtual environments, clean caches and so on.# from Your shell's homedirectory:$gitclonehttps://github.com/bitranox/pprint3x.git$cdpprint3x# to run the tests:$maketest# to install the package$makeinstall# to clean the package$makeclean# uninstall the package$makeuninstallRequirementsfollowing modules will be automatically installed :## Project Requirementsdataclasses;python_version<'3.7'Acknowledgementsspecial thanks to “uncle bob” Robert C. Martin, especially for his books on “clean code” and “clean architecture”ContributeI would love for you to fork and send me pull request for this project.
-please ContributeLicenseThis software is licensed under theMIT license—Changelognew MAJOR version for incompatible API changes,new MINOR version for added functionality in a backwards compatible mannernew PATCH version for backwards compatible bug fixesv3.10.4.62023-07-14:flake8remove some tests for underscore numbersv3.10.4.52023-07-14:add codeql badgemove 3rd_party_stubs outside the src directoryadd pypy 3.10 testsadd python 3.12-dev testsv3.10.4.42023-07-13:require minimum python 3.8remove python 3.7 testsv3.10.4.32023-07-13:introduce PEP517 packaging standardintroduce pyproject.toml build-systemremove setup.cfgremove setup.pyupdate black configclean ./tests/test_cli.pyremove travis configremove bettercodehub configremove “better code” badgesremove python 3.6 testsadding python 3.11 testsupdate pypy tests to 3.9v3.10.4.22022-06-02: update to github actionscheckout@v3andsetup-python@v3v3.10.4.12022-06-01: update github actions test matrixv3.10.42022-03-25: fix github actions windows testv3.10.32022-01-21: update documentation, again thanks to Ritvik Nag,https://github.com/rnagv3.10.22022-01-20: remove unnecessary dependencies, thanks to Ritvik Nag,https://github.com/rnagv3.10.12021-12-30: initial release