falyx 0.1.17__tar.gz → 0.1.18__tar.gz

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.
Files changed (39) hide show
  1. {falyx-0.1.17 → falyx-0.1.18}/PKG-INFO +1 -1
  2. falyx-0.1.18/falyx/.coverage +0 -0
  3. {falyx-0.1.17 → falyx-0.1.18}/falyx/http_action.py +19 -19
  4. falyx-0.1.18/falyx/version.py +1 -0
  5. {falyx-0.1.17 → falyx-0.1.18}/pyproject.toml +1 -1
  6. falyx-0.1.17/falyx/version.py +0 -1
  7. {falyx-0.1.17 → falyx-0.1.18}/LICENSE +0 -0
  8. {falyx-0.1.17 → falyx-0.1.18}/README.md +0 -0
  9. {falyx-0.1.17 → falyx-0.1.18}/falyx/.pytyped +0 -0
  10. {falyx-0.1.17 → falyx-0.1.18}/falyx/__init__.py +0 -0
  11. {falyx-0.1.17 → falyx-0.1.18}/falyx/__main__.py +0 -0
  12. {falyx-0.1.17 → falyx-0.1.18}/falyx/action.py +0 -0
  13. {falyx-0.1.17 → falyx-0.1.18}/falyx/bottom_bar.py +0 -0
  14. {falyx-0.1.17 → falyx-0.1.18}/falyx/command.py +0 -0
  15. {falyx-0.1.17 → falyx-0.1.18}/falyx/config.py +0 -0
  16. {falyx-0.1.17 → falyx-0.1.18}/falyx/context.py +0 -0
  17. {falyx-0.1.17 → falyx-0.1.18}/falyx/debug.py +0 -0
  18. {falyx-0.1.17 → falyx-0.1.18}/falyx/exceptions.py +0 -0
  19. {falyx-0.1.17 → falyx-0.1.18}/falyx/execution_registry.py +0 -0
  20. {falyx-0.1.17 → falyx-0.1.18}/falyx/falyx.py +0 -0
  21. {falyx-0.1.17 → falyx-0.1.18}/falyx/hook_manager.py +0 -0
  22. {falyx-0.1.17 → falyx-0.1.18}/falyx/hooks.py +0 -0
  23. {falyx-0.1.17 → falyx-0.1.18}/falyx/init.py +0 -0
  24. {falyx-0.1.17 → falyx-0.1.18}/falyx/io_action.py +0 -0
  25. {falyx-0.1.17 → falyx-0.1.18}/falyx/menu_action.py +0 -0
  26. {falyx-0.1.17 → falyx-0.1.18}/falyx/options_manager.py +0 -0
  27. {falyx-0.1.17 → falyx-0.1.18}/falyx/parsers.py +0 -0
  28. {falyx-0.1.17 → falyx-0.1.18}/falyx/prompt_utils.py +0 -0
  29. {falyx-0.1.17 → falyx-0.1.18}/falyx/retry.py +0 -0
  30. {falyx-0.1.17 → falyx-0.1.18}/falyx/retry_utils.py +0 -0
  31. {falyx-0.1.17 → falyx-0.1.18}/falyx/select_files_action.py +0 -0
  32. {falyx-0.1.17 → falyx-0.1.18}/falyx/selection.py +0 -0
  33. {falyx-0.1.17 → falyx-0.1.18}/falyx/selection_action.py +0 -0
  34. {falyx-0.1.17 → falyx-0.1.18}/falyx/signal_action.py +0 -0
  35. {falyx-0.1.17 → falyx-0.1.18}/falyx/signals.py +0 -0
  36. {falyx-0.1.17 → falyx-0.1.18}/falyx/tagged_table.py +0 -0
  37. {falyx-0.1.17 → falyx-0.1.18}/falyx/themes/colors.py +0 -0
  38. {falyx-0.1.17 → falyx-0.1.18}/falyx/utils.py +0 -0
  39. {falyx-0.1.17 → falyx-0.1.18}/falyx/validators.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: falyx
3
- Version: 0.1.17
3
+ Version: 0.1.18
4
4
  Summary: Reliable and introspectable async CLI action framework.
5
5
  License: MIT
6
6
  Author: Roland Thomas Jr
Binary file
@@ -105,28 +105,28 @@ class HTTPAction(Action):
105
105
  session = aiohttp.ClientSession()
106
106
  context.set("http_session", session)
107
107
  context.set("_session_should_close", True)
108
-
109
108
  else:
110
109
  session = aiohttp.ClientSession()
111
110
 
112
- async with session.request(
113
- self.method,
114
- self.url,
115
- headers=self.headers,
116
- params=self.params,
117
- json=self.json,
118
- data=self.data,
119
- ) as response:
120
- body = await response.text()
121
- return {
122
- "status": response.status,
123
- "url": str(response.url),
124
- "headers": dict(response.headers),
125
- "body": body,
126
- }
127
-
128
- if not self.shared_context:
129
- await session.close()
111
+ try:
112
+ async with session.request(
113
+ self.method,
114
+ self.url,
115
+ headers=self.headers,
116
+ params=self.params,
117
+ json=self.json,
118
+ data=self.data,
119
+ ) as response:
120
+ body = await response.text()
121
+ return {
122
+ "status": response.status,
123
+ "url": str(response.url),
124
+ "headers": dict(response.headers),
125
+ "body": body,
126
+ }
127
+ finally:
128
+ if not self.shared_context:
129
+ await session.close()
130
130
 
131
131
  async def preview(self, parent: Tree | None = None):
132
132
  label = [
@@ -0,0 +1 @@
1
+ __version__ = "0.1.18"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "falyx"
3
- version = "0.1.17"
3
+ version = "0.1.18"
4
4
  description = "Reliable and introspectable async CLI action framework."
5
5
  authors = ["Roland Thomas Jr <roland@rtj.dev>"]
6
6
  license = "MIT"
@@ -1 +0,0 @@
1
- __version__ = "0.1.17"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes