swarmauri_state_clipboard 0.7.0.dev12__tar.gz → 0.7.1.dev1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: swarmauri_state_clipboard
3
- Version: 0.7.0.dev12
3
+ Version: 0.7.1.dev1
4
4
  Summary: Swarmauri Community Clipboard State
5
5
  License: Apache-2.0
6
6
  Author: Jacob Stewart
@@ -14,16 +14,21 @@ Requires-Dist: swarmauri_base
14
14
  Requires-Dist: swarmauri_core
15
15
  Description-Content-Type: text/markdown
16
16
 
17
- ![Swarmauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
18
17
 
19
- <div align="center">
20
-
21
- ![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_state_clipboard)
22
- ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri_state_clipboard)
23
- ![PyPI - License](https://img.shields.io/pypi/l/swarmauri_state_clipboard)
24
- ![PyPI - Version](https://img.shields.io/pypi/v/swarmauri_state_clipboard?label=swarmauri_state_clipboard&color=green)
25
-
26
- </div>
18
+ ![Swamauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
19
+
20
+ <p align="center">
21
+ <a href="https://pypi.org/project/swarmauri_state_clipboard/">
22
+ <img src="https://img.shields.io/pypi/dm/swarmauri_state_clipboard" alt="PyPI - Downloads"/></a>
23
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/community/swarmauri_state_clipboard/README.md">
24
+ <img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/community/swarmauri_state_clipboard/README.md&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
25
+ <a href="https://pypi.org/project/swarmauri_state_clipboard/">
26
+ <img src="https://img.shields.io/pypi/pyversions/swarmauri_state_clipboard" alt="PyPI - Python Version"/></a>
27
+ <a href="https://pypi.org/project/swarmauri_state_clipboard/">
28
+ <img src="https://img.shields.io/pypi/l/swarmauri_state_clipboard" alt="PyPI - License"/></a>
29
+ <a href="https://pypi.org/project/swarmauri_state_clipboard/">
30
+ <img src="https://img.shields.io/pypi/v/swarmauri_state_clipboard?label=swarmauri_state_clipboard&color=green" alt="PyPI - swarmauri_state_clipboard"/></a>
31
+ </p>
27
32
 
28
33
  ---
29
34
 
@@ -0,0 +1,61 @@
1
+
2
+ ![Swamauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
3
+
4
+ <p align="center">
5
+ <a href="https://pypi.org/project/swarmauri_state_clipboard/">
6
+ <img src="https://img.shields.io/pypi/dm/swarmauri_state_clipboard" alt="PyPI - Downloads"/></a>
7
+ <a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/community/swarmauri_state_clipboard/README.md">
8
+ <img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/community/swarmauri_state_clipboard/README.md&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
9
+ <a href="https://pypi.org/project/swarmauri_state_clipboard/">
10
+ <img src="https://img.shields.io/pypi/pyversions/swarmauri_state_clipboard" alt="PyPI - Python Version"/></a>
11
+ <a href="https://pypi.org/project/swarmauri_state_clipboard/">
12
+ <img src="https://img.shields.io/pypi/l/swarmauri_state_clipboard" alt="PyPI - License"/></a>
13
+ <a href="https://pypi.org/project/swarmauri_state_clipboard/">
14
+ <img src="https://img.shields.io/pypi/v/swarmauri_state_clipboard?label=swarmauri_state_clipboard&color=green" alt="PyPI - swarmauri_state_clipboard"/></a>
15
+ </p>
16
+
17
+ ---
18
+
19
+ # Swarmauri State Clipboard
20
+
21
+ A concrete implementation of StateBase that uses the system clipboard to store and retrieve state data.
22
+
23
+ ## Installation
24
+
25
+ ```bash
26
+ pip install swarmauri_state_clipboard
27
+ ```
28
+
29
+ ## Usage
30
+ Basic usage examples with code snippets
31
+ ```python
32
+ from swarmauri.states.ClipboardState import ClipboardState
33
+
34
+ # Create an instance of ClipboardState
35
+ clipboard_state = ClipboardState()
36
+
37
+ # Write data to the clipboard
38
+ clipboard_state.write({"key1": "value1", "key2": 42})
39
+
40
+ # Read data from the clipboard
41
+ data = clipboard_state.read()
42
+ print(data) # Output: {'key1': 'value1', 'key2': 42}
43
+
44
+ # Update data on the clipboard
45
+ clipboard_state.update({"key3": "value3"})
46
+
47
+ # Read updated data from the clipboard
48
+ updated_data = clipboard_state.read()
49
+ print(updated_data) # Output: {'key1': 'value1', 'key2': 42, 'key3': 'value3'}
50
+
51
+ # Reset the clipboard state
52
+ clipboard_state.reset()
53
+
54
+ # Verify the clipboard is reset
55
+ reset_data = clipboard_state.read()
56
+ print(reset_data) # Output: {}
57
+ ```
58
+
59
+ ## Want to help?
60
+
61
+ If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "swarmauri_state_clipboard"
3
- version = "0.7.0.dev12"
3
+ version = "0.7.1.dev1"
4
4
  description = "Swarmauri Community Clipboard State"
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
@@ -38,7 +38,7 @@ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
38
38
  log_cli_date_format = "%Y-%m-%d %H:%M:%S"
39
39
  asyncio_default_fixture_loop_scope = "function"
40
40
 
41
- [tool.project.entry-points."swarmauri.states"]
41
+ [project.entry-points.'swarmauri.states']
42
42
  ClipboardState = "swarmauri_state_clipboard.ClipboardState:ClipboardState"
43
43
  [build-system]
44
44
  requires = ["poetry-core>=1.0.0"]
@@ -1,56 +0,0 @@
1
- ![Swarmauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
2
-
3
- <div align="center">
4
-
5
- ![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_state_clipboard)
6
- ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri_state_clipboard)
7
- ![PyPI - License](https://img.shields.io/pypi/l/swarmauri_state_clipboard)
8
- ![PyPI - Version](https://img.shields.io/pypi/v/swarmauri_state_clipboard?label=swarmauri_state_clipboard&color=green)
9
-
10
- </div>
11
-
12
- ---
13
-
14
- # Swarmauri State Clipboard
15
-
16
- A concrete implementation of StateBase that uses the system clipboard to store and retrieve state data.
17
-
18
- ## Installation
19
-
20
- ```bash
21
- pip install swarmauri_state_clipboard
22
- ```
23
-
24
- ## Usage
25
- Basic usage examples with code snippets
26
- ```python
27
- from swarmauri.states.ClipboardState import ClipboardState
28
-
29
- # Create an instance of ClipboardState
30
- clipboard_state = ClipboardState()
31
-
32
- # Write data to the clipboard
33
- clipboard_state.write({"key1": "value1", "key2": 42})
34
-
35
- # Read data from the clipboard
36
- data = clipboard_state.read()
37
- print(data) # Output: {'key1': 'value1', 'key2': 42}
38
-
39
- # Update data on the clipboard
40
- clipboard_state.update({"key3": "value3"})
41
-
42
- # Read updated data from the clipboard
43
- updated_data = clipboard_state.read()
44
- print(updated_data) # Output: {'key1': 'value1', 'key2': 42, 'key3': 'value3'}
45
-
46
- # Reset the clipboard state
47
- clipboard_state.reset()
48
-
49
- # Verify the clipboard is reset
50
- reset_data = clipboard_state.read()
51
- print(reset_data) # Output: {}
52
- ```
53
-
54
- ## Want to help?
55
-
56
- If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.