File: __init__.py

package info (click to toggle)
python-cheroot 10.0.1%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,048 kB
  • sloc: python: 6,222; makefile: 15
file content (14 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""High-performance, pure-Python HTTP server used by CherryPy."""

try:
    from importlib import metadata
except ImportError:
    import importlib_metadata as metadata  # noqa: WPS440


try:
    __version__ = metadata.version('cheroot')
    if __version__.find('+ds') != -1:
        __version__ = __version__[:__version__.find('+ds')]
except Exception:
    __version__ = 'unknown'