__init__.py 1.1 KB

1234567891011121314151617181920212223242526272829
  1. """
  2. Wcwidth module.
  3. https://github.com/jquast/wcwidth
  4. """
  5. # re-export all functions & definitions, even private ones, from top-level
  6. # module path, to allow for 'from wcwidth import _private_func'. Of course,
  7. # user beware that any _private function may disappear or change signature at
  8. # any future version.
  9. # local
  10. from .wcwidth import ZERO_WIDTH # noqa
  11. from .wcwidth import (WIDE_EASTASIAN,
  12. VS16_NARROW_TO_WIDE,
  13. wcwidth,
  14. wcswidth,
  15. _bisearch,
  16. list_versions,
  17. _wcmatch_version,
  18. _wcversion_value)
  19. # The __all__ attribute defines the items exported from statement,
  20. # 'from wcwidth import *', but also to say, "This is the public API".
  21. __all__ = ('wcwidth', 'wcswidth', 'list_versions')
  22. # We also used pkg_resources to load unicode version tables from version.json,
  23. # generated by bin/update-tables.py, but some environments are unable to
  24. # import pkg_resources for one reason or another, yikes!
  25. __version__ = '0.2.14'