README.rst 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .. image:: https://img.shields.io/pypi/v/jaraco.text.svg
  2. :target: https://pypi.org/project/jaraco.text
  3. .. image:: https://img.shields.io/pypi/pyversions/jaraco.text.svg
  4. .. image:: https://github.com/jaraco/jaraco.text/actions/workflows/main.yml/badge.svg
  5. :target: https://github.com/jaraco/jaraco.text/actions?query=workflow%3A%22tests%22
  6. :alt: tests
  7. .. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
  8. :target: https://github.com/astral-sh/ruff
  9. :alt: Ruff
  10. .. image:: https://readthedocs.org/projects/jaracotext/badge/?version=latest
  11. :target: https://jaracotext.readthedocs.io/en/latest/?badge=latest
  12. .. image:: https://img.shields.io/badge/skeleton-2024-informational
  13. :target: https://blog.jaraco.com/skeleton
  14. .. image:: https://tidelift.com/badges/package/pypi/jaraco.text
  15. :target: https://tidelift.com/subscription/pkg/pypi-jaraco.text?utm_source=pypi-jaraco.text&utm_medium=readme
  16. This package provides handy routines for dealing with text, such as
  17. wrapping, substitution, trimming, stripping, prefix and suffix removal,
  18. line continuation, indentation, comment processing, identifier processing,
  19. values parsing, case insensitive comparison, and more. See the docs
  20. (linked in the badge above) for the detailed documentation and examples.
  21. Layouts
  22. =======
  23. One of the features of this package is the layouts module, which
  24. provides a simple example of translating keystrokes from one keyboard
  25. layout to another::
  26. echo qwerty | python -m jaraco.text.to-dvorak
  27. ',.pyf
  28. echo "',.pyf" | python -m jaraco.text.to-qwerty
  29. qwerty
  30. Newline Reporting
  31. =================
  32. Need to know what newlines appear in a file?
  33. ::
  34. $ python -m jaraco.text.show-newlines README.rst
  35. newline is '\n'
  36. For Enterprise
  37. ==============
  38. Available as part of the Tidelift Subscription.
  39. This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.
  40. `Learn more <https://tidelift.com/subscription/pkg/pypi-jaraco.text?utm_source=pypi-jaraco.text&utm_medium=referral&utm_campaign=github>`_.