slumber-python 4.2.0__cp313-cp313-win_amd64.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.
slumber/__init__.py ADDED
@@ -0,0 +1,5 @@
1
+ from .slumber import *
2
+
3
+ __doc__ = slumber.__doc__
4
+ if hasattr(slumber, "__all__"):
5
+ __all__ = slumber.__all__
slumber/__init__.pyi ADDED
@@ -0,0 +1,21 @@
1
+ # Hand-written type stubs. Eventually pyo3 should be able to generate these
2
+ # https://pyo3.rs/v0.26.0/type-stub.html
3
+
4
+ class Collection:
5
+ def __init__(self, path: str | None = None) -> None: ...
6
+ async def request(
7
+ self,
8
+ recipe: str,
9
+ profile: str | None = None,
10
+ overrides: dict[str, str] = {},
11
+ trigger: bool = True,
12
+ ) -> "Response": ...
13
+ def reload(self) -> None: ...
14
+
15
+ class Response:
16
+ url: str
17
+ status_code: int
18
+ headers: dict[str, str]
19
+ content: bytes
20
+ text: str
21
+ def raise_for_status(self) -> None: ...
slumber/py.typed ADDED
File without changes
Binary file
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: slumber-python
3
+ Version: 4.2.0
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Summary: Python bindings for Slumber, the source-based REST/HTTP client
8
+ Home-Page: https://slumber.lucaspickering.me
9
+ License: MIT
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
12
+
13
+ # slumber-python
14
+
15
+ > This is not related to, or a replacement of, the [slumber](https://pypi.org/project/slumber/) package.
16
+
17
+ [**Documentation**](https://slumber.lucaspickering.me/integration/python.html)
18
+
19
+ Python bindings for [Slumber](https://slumber.lucaspickering.me/), the source-based REST API client. This library makes it easy to take your existing Slumber collection and use it in Python scripts.
20
+
21
+ This package does not yet support all the same functionality as the [Slumber CLI](https://slumber.lucaspickering.me/user_guide/cli/index.html). If you have a specific feature that you'd like to see in it, please [open an issue on GitHub](https://github.com/LucasPickering/slumber/issues/new/choose).
22
+
23
+ **This is not a general-purpose REST/HTTP client.** If you're not already using Slumber as a TUI/CLI client, then there isn't much value provided by this package.
24
+
25
+ ## Installation
26
+
27
+ ```sh
28
+ pip install slumber-python
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ First, [create a Slumber collection](https://slumber.lucaspickering.me/getting_started.html).
34
+
35
+ ```py
36
+
37
+ from slumber import Collection
38
+
39
+ collection = Collection()
40
+ response = collection.request('example_get')
41
+ print(response.text)
42
+ ```
43
+
44
+ For more usage examples, [see the docs](https://slumber.lucaspickering.me/integration/python.html).
45
+
46
+ ## Versioning
47
+
48
+ For simplicity, the version of this package is synched to the main Slumber version and follows the same [releases](https://github.com/LucasPickering/slumber/releases). That means there may be releases of this package that don't actually change anything, or version bumps that are higher than necessary (e.g. minor versions with only patch changes). The versioning **is still semver compliant**.
49
+
@@ -0,0 +1,7 @@
1
+ slumber/__init__.py,sha256=3eIULbHd1SLgUfwOE3kh8TQkdInV05pmVGF4gZ_b3cg,111
2
+ slumber/__init__.pyi,sha256=V99PiJyy2gGGde8ZFzxrQq3JyJX_CSIfn_PHHTc4-N4,597
3
+ slumber/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ slumber/slumber.cp313-win_amd64.pyd,sha256=b6GilbcuLoNG7hDs0pi-aS2HMtQMVrwb4Oc5ITAaNMw,12017664
5
+ slumber_python-4.2.0.dist-info/METADATA,sha256=quhGlI6UR1Q-W_n2Y0gsU49u19VKhHJdVgzyiB11lug,2176
6
+ slumber_python-4.2.0.dist-info/WHEEL,sha256=TJQY77QRLvXq32tEs9ATmwKO6NAOtuKOAw50eyiSmWU,96
7
+ slumber_python-4.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.9.6)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_amd64