File: __init__.py

package info (click to toggle)
python-weblogo 3.7.12-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,700 kB
  • sloc: xml: 14,455; python: 10,327; sh: 140; makefile: 61
file content (17 lines) | stat: -rwxr-xr-x 466 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# TODO: replace with direct calls to pkg_resources

from typing import TextIO

from weblogo.utils import resource_filename, resource_stream, resource_string


def data_string(name: str) -> bytes:
    return resource_string(__name__, "data/" + name, __file__)


def data_stream(name: str) -> TextIO:
    return resource_stream(__name__, "data/" + name, __file__)


def data_filename(name: str) -> str:
    return resource_filename(__name__, "data/" + name, __file__)