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.
Files changed (62) hide show
  1. {slumber_python-0.0.1 → slumber_python-0.0.2}/Cargo.lock +1 -1
  2. slumber_python-0.0.2/PKG-INFO +43 -0
  3. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/lib.rs +0 -2
  4. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/Cargo.toml +2 -2
  5. slumber_python-0.0.2/crates/python/README.md +30 -0
  6. {slumber_python-0.0.1 → slumber_python-0.0.2}/pyproject.toml +13 -1
  7. slumber_python-0.0.1/PKG-INFO +0 -8
  8. {slumber_python-0.0.1 → slumber_python-0.0.2}/Cargo.toml +0 -0
  9. {slumber_python-0.0.1/crates/python → slumber_python-0.0.2}/README.md +0 -0
  10. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/Cargo.toml +0 -0
  11. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/cereal.rs +0 -0
  12. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/lib.rs +0 -0
  13. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/tui/input.rs +0 -0
  14. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/tui/mime.rs +0 -0
  15. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/tui/theme.rs +0 -0
  16. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/config/src/tui.rs +0 -0
  17. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/Cargo.toml +0 -0
  18. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/cereal.rs +0 -0
  19. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/json.rs +0 -0
  20. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/models.rs +0 -0
  21. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/recipe_tree.rs +0 -0
  22. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection/schema.rs +0 -0
  23. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/collection.rs +0 -0
  24. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/database/convert.rs +0 -0
  25. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/database/migrations.rs +0 -0
  26. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/database/tests.rs +0 -0
  27. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/database.rs +0 -0
  28. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http/content_type.rs +0 -0
  29. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http/curl.rs +0 -0
  30. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http/models.rs +0 -0
  31. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http/tests.rs +0 -0
  32. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/http.rs +0 -0
  33. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/render/functions.rs +0 -0
  34. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/render/tests.rs +0 -0
  35. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/render/util.rs +0 -0
  36. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/render.rs +0 -0
  37. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/test_util.rs +0 -0
  38. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/core/src/util.rs +0 -0
  39. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/macros/Cargo.toml +0 -0
  40. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/macros/src/lib.rs +0 -0
  41. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/dev.py +0 -0
  42. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/mise.toml +0 -0
  43. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/slumber.pyi +0 -0
  44. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/src/lib.rs +0 -0
  45. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/python/uv.lock +0 -0
  46. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/Cargo.toml +0 -0
  47. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/proptest-regressions/parse.txt +0 -0
  48. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/cereal.rs +0 -0
  49. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/display.rs +0 -0
  50. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/error.rs +0 -0
  51. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/expression.rs +0 -0
  52. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/lib.rs +0 -0
  53. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/parse.rs +0 -0
  54. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/test_util.rs +0 -0
  55. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/tests.rs +0 -0
  56. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/template/src/value.rs +0 -0
  57. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/Cargo.toml +0 -0
  58. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/lib.rs +0 -0
  59. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/paths.rs +0 -0
  60. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/test_util.rs +0 -0
  61. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/yaml/resolve.rs +0 -0
  62. {slumber_python-0.0.1 → slumber_python-0.0.2}/crates/util/src/yaml.rs +0 -0
@@ -3611,7 +3611,7 @@ dependencies = [
3611
3611
 
3612
3612
  [[package]]
3613
3613
  name = "slumber_python"
3614
- version = "0.0.1"
3614
+ version = "0.0.2"
3615
3615
  dependencies = [
3616
3616
  "anyhow",
3617
3617
  "async-trait",
@@ -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
+
@@ -4,8 +4,6 @@
4
4
  //! `slumber` crate version. If you choose to depend directly on this crate, you
5
5
  //! do so at your own risk of breakage.
6
6
 
7
- // TODO reorganize these
8
-
9
7
  pub mod collection;
10
8
  pub mod database;
11
9
  pub mod http;
@@ -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.1"
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 = ["version"]
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"]
@@ -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