MCPcopy Create free account
hub / github.com/Freedium-cfd/web / __init__

Method __init__

medium-parser/medium_parser/core.py:50–67  ·  view source on GitHub ↗
(
        self,
        cache: AbstractCacheBackend,
        medium_api: MediumApi,
        timeout: int,
        host_address: str,
        template_folder: str = "./templates",
    )

Source from the content-addressed store, hash-verified

48 )
49
50 def __init__(
51 self,
52 cache: AbstractCacheBackend,
53 medium_api: MediumApi,
54 timeout: int,
55 host_address: str,
56 template_folder: str = "./templates",
57 ):
58 self.timeout: int = timeout
59 self.cache: AbstractCacheBackend = cache
60 self.host_address: str = host_address
61 self.jinja_template: jinja2.Environment = jinja2.Environment(
62 loader=jinja2.FileSystemLoader(template_folder)
63 )
64 self.post_template: jinja2.Template = self.jinja_template.get_template(
65 "post.html"
66 )
67 self.medium_api: MediumApi = medium_api
68
69 async def resolve(self, unknown: str) -> str:
70 logger.debug(f"We got some unknown data: {unknown=}. Trying resolve them...///")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected