webutils-df/README.md

16 lines
640 B
Markdown
Raw Normal View History

2021-11-27 11:56:15 +01:00
# Miscellaneous web utilities
2021-11-28 19:55:27 +01:00
Stuff I frequently use in various unrelated projects that deal with web requests.
## Decorators
### in_async_session
Handles starting and closing of a temporary `aiohttp.ClientSession` instance around any async function that makes use of such an object to perform requests.
## Building
Clone this repo, install `build` via pip, then run `python -m build` from the repository's root directory. This should produce a `dist/` subdirectory with a wheel (build) and archive (source) distribution.
The resulting `whl`-file can be installed in the environment of choice via `pip install <path>/dist/***.whl`.