slumber-python 0.0.1__tar.gz → 0.0.2__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.
- {slumber_python-0.0.1 → slumber_python-0.0.2}/Cargo.lock +1 -1
- slumber_python-0.0.2/PKG-INFO +43 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/lib.rs +0 -2
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/Cargo.toml +2 -2
- slumber_python-0.0.2/crates/python/README.md +30 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/pyproject.toml +13 -1
- slumber_python-0.0.1/PKG-INFO +0 -8
- {slumber_python-0.0.1 → slumber_python-0.0.2}/Cargo.toml +0 -0
- {slumber_python-0.0.1/crates/python → slumber_python-0.0.2}/README.md +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/Cargo.toml +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/cereal.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/lib.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/tui/input.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/tui/mime.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/tui/theme.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/tui.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/Cargo.toml +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/cereal.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/json.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/models.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/recipe_tree.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/schema.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/database/convert.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/database/migrations.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/database/tests.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/database.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http/content_type.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http/curl.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http/models.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http/tests.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/render/functions.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/render/tests.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/render/util.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/render.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/test_util.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/util.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/macros/Cargo.toml +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/macros/src/lib.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/dev.py +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/mise.toml +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/slumber.pyi +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/src/lib.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/uv.lock +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/Cargo.toml +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/proptest-regressions/parse.txt +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/cereal.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/display.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/error.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/expression.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/lib.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/parse.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/test_util.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/tests.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/value.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/Cargo.toml +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/lib.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/paths.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/test_util.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/yaml/resolve.rs +0 -0
- {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/yaml.rs +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: slumber-python
|
|
3
|
+
Version: 0.0.2
|
|
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
|
+
[**Documentation**](https://slumber.lucaspickering.me/integration/python.html)
|
|
16
|
+
|
|
17
|
+
> **Warning:** This is not related to, or a replacement of, the [slumber](https://pypi.org/project/slumber/) package.
|
|
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
|
+
```py
|
|
34
|
+
|
|
35
|
+
from slumber import Collection
|
|
36
|
+
|
|
37
|
+
collection = Collection()
|
|
38
|
+
response = collection.request('get_current_user')
|
|
39
|
+
print(response.text)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
For more usage examples, [see the docs](https://slumber.lucaspickering.me/integration/python.html).
|
|
43
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
authors = {workspace = true}
|
|
3
|
-
description = "Python bindings for Slumber"
|
|
3
|
+
description = "Python bindings for Slumber, the source-based REST/HTTP client"
|
|
4
4
|
edition = {workspace = true}
|
|
5
5
|
homepage = {workspace = true}
|
|
6
6
|
keywords = {workspace = true}
|
|
@@ -9,7 +9,7 @@ name = "slumber_python"
|
|
|
9
9
|
publish = false
|
|
10
10
|
repository = {workspace = true}
|
|
11
11
|
rust-version = {workspace = true}
|
|
12
|
-
version = "0.0.
|
|
12
|
+
version = "0.0.2"
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
|
|
15
15
|
[package.metadata.release]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# `slumber-python`
|
|
2
|
+
|
|
3
|
+
[**Documentation**](https://slumber.lucaspickering.me/integration/python.html)
|
|
4
|
+
|
|
5
|
+
> **Warning:** This is not related to, or a replacement of, the [slumber](https://pypi.org/project/slumber/) package.
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
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).
|
|
10
|
+
|
|
11
|
+
**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.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pip install slumber-python
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```py
|
|
22
|
+
|
|
23
|
+
from slumber import Collection
|
|
24
|
+
|
|
25
|
+
collection = Collection()
|
|
26
|
+
response = collection.request('get_current_user')
|
|
27
|
+
print(response.text)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
For more usage examples, [see the docs](https://slumber.lucaspickering.me/integration/python.html).
|
|
@@ -4,13 +4,25 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "slumber-python"
|
|
7
|
+
readme = "README.md"
|
|
7
8
|
requires-python = ">=3.10"
|
|
8
9
|
classifiers = [
|
|
9
10
|
"Programming Language :: Rust",
|
|
10
11
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
11
12
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
12
13
|
]
|
|
13
|
-
dynamic = [
|
|
14
|
+
dynamic = [
|
|
15
|
+
# Pull everything in from Cargo.toml
|
|
16
|
+
"version",
|
|
17
|
+
"summary",
|
|
18
|
+
"description",
|
|
19
|
+
"description_content_type",
|
|
20
|
+
"home_page",
|
|
21
|
+
"author",
|
|
22
|
+
"author_email",
|
|
23
|
+
"license",
|
|
24
|
+
"project_url",
|
|
25
|
+
]
|
|
14
26
|
|
|
15
27
|
[tool.maturin]
|
|
16
28
|
features = ["pyo3/extension-module"]
|
slumber_python-0.0.1/PKG-INFO
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: slumber-python
|
|
3
|
-
Version: 0.0.1
|
|
4
|
-
Classifier: Programming Language :: Rust
|
|
5
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
-
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
-
Home-Page: https://slumber.lucaspickering.me
|
|
8
|
-
Requires-Python: >=3.10
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/proptest-regressions/parse.txt
RENAMED
|
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
|