easyhttp-python 0.3.2__tar.gz → 0.3.3__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.4
2
2
  Name: easyhttp-python
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Simple HTTP-based P2P framework for IoT
5
5
  Author-email: slpuk <yarik6052@gmail.com>
6
6
  License: MIT
@@ -36,7 +36,7 @@ Dynamic: license-file
36
36
  # EasyHTTP
37
37
 
38
38
  [![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/slpuk/easyhttp-python)
39
- ![Protocol Version](https://img.shields.io/badge/version-0.3.2-blue?style=for-the-badge)
39
+ ![Protocol Version](https://img.shields.io/badge/version-0.3.3-blue?style=for-the-badge)
40
40
  ![Development Status](https://img.shields.io/badge/status-beta-orange?style=for-the-badge)
41
41
  ![License](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)
42
42
  ![Python](https://img.shields.io/badge/python-3.7+-blue?style=for-the-badge&logo=python&logoColor=white)
@@ -86,7 +86,7 @@ EasyHTTP uses a simple JSON-based command system:
86
86
  ### Basic Example with Callbacks (synchronous)
87
87
  ```python
88
88
  import time
89
- from easyhttp import EasyHTTP
89
+ from easyhttp_python import EasyHTTP
90
90
 
91
91
  # Callback function
92
92
  def handle_data(sender_id, data, timestamp):
@@ -2,57 +2,32 @@
2
2
  [EN README](README.md) | [RU README](README_RU.md)
3
3
  > **A lightweight HTTP-based P2P framework for IoT and device-to-device communication**
4
4
 
5
- ![Protocol Version](https://img.shields.io/badge/version-0.3.2-blue?style=for-the-badge)
5
+ ![Protocol Version](https://img.shields.io/badge/version-0.3.3-blue?style=for-the-badge)
6
6
  ![Development Status](https://img.shields.io/badge/status-beta-orange?style=for-the-badge)
7
7
  ![License](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)
8
8
  ![Python](https://img.shields.io/badge/python-3.7+-blue?style=for-the-badge&logo=python&logoColor=white)
9
9
 
10
10
  > [!WARNING]
11
- > **Breaking Changes from 0.2.0**
11
+ > **Breaking Changes from 0.3.2**
12
12
  >
13
13
  > ### API Changes
14
- > | 0.2.0 | 0.3.2 | Notes |
15
- > |--------|--------|-------|
16
- > | `get()` | `fetch()` | Same functionality |
17
- > | `pull()` | `push()` | Same functionality |
18
- > | `'on_get'` | `'on_fetch'` | Callback name |
19
- > | `'on_data_response'` | `'on_data'` | Callback name |
20
- > | `'on_pull'` | `'on_push'` | Callback name |
21
- >
22
- > ### Migration Example
23
14
  > ```python
24
- > # 0.2.0 (OLD):
25
- > easy = EasyHTTP()
26
- > easy.get("ABC123")
27
- > easy.pull("ABC123", data)
28
- >
29
- > # 0.3.2 (NEW):
30
- > # Sync
31
- > easy = EasyHTTP()
32
- > easy.fetch("ABC123")
33
- > easy.push("ABC123", data)
15
+ > # 0.3.2 (OLD)
16
+ > from easyhttp import ...
34
17
  >
35
- > # Async
36
- > easy = EasyHTTPAsync() # Async!
37
- > await easy.fetch("ABC123") # Await!
38
- > await easy.push("ABC123", data)
39
- > ```
40
-
18
+ > # 0.3.3 (NEW)
19
+ > from easyhttp_python import ...
20
+ >```
41
21
 
42
22
  ## 🚀 Quick Start
43
23
 
44
24
  ### Installation
45
- > [!NOTE]
46
- > Both methods require **Git** to be installed.<br>
47
- > PyPI upload is **preparing**
48
25
 
49
26
  ```bash
50
- # Clone and install
51
- git clone https://github.com/slpuk/easyhttp-python.git
52
- cd easyhttp-python
53
- pip install -e .
27
+ # Install by PyPI
28
+ pip install easyhttp-python
54
29
 
55
- # Or directly from GitHub
30
+ # Or from GitHub
56
31
  pip install git+https://github.com/slpuk/easyhttp-python.git
57
32
  ```
58
33
 
@@ -60,7 +35,7 @@ pip install git+https://github.com/slpuk/easyhttp-python.git
60
35
  Syntax with context managers and full code is supported
61
36
 
62
37
  ```python
63
- from easyhttp import EasyHTTP
38
+ from easyhttp_python import EasyHTTP
64
39
 
65
40
  def main():
66
41
  # Initialize a device with context manager
@@ -93,7 +68,7 @@ if __name__ == "__main__":
93
68
 
94
69
  ```python
95
70
  import asyncio
96
- from easyhttp import EasyHTTPAsync
71
+ from easyhttp_python import EasyHTTPAsync
97
72
 
98
73
  async def main():
99
74
  # Initialize a device
@@ -143,7 +118,7 @@ easyhttp-python/
143
118
  ├── docs/
144
119
  │ ├── EasyHTTP.md # Sync API reference
145
120
  │ └── EasyHTTPAsync.md # Async API reference
146
- ├── easyhttp/
121
+ ├── easyhttp_python/
147
122
  │ ├── __init__.py
148
123
  │ ├── core.py # Main framework file/core
149
124
  │ └── wrapper.py # Synchronous wrapper
@@ -163,6 +138,7 @@ easyhttp-python/
163
138
  ├── .gitignore
164
139
  ├── LICENSE # MIT license
165
140
  ├── pyproject.toml # Project config
141
+ ├── README_PY.md # Documentation for PyPI
166
142
  ├── README_RU.md # Russian documentation
167
143
  ├── README.md # This file
168
144
  └── requirements.txt # Project dependencies
@@ -209,25 +185,20 @@ sequenceDiagram
209
185
 
210
186
  ## 📦 Installation & Setup
211
187
 
212
- ### Python Installation
213
- > [!NOTE]
214
- > Both methods require **Git** to be installed.<br>
215
- > PyPI upload is **preparing**
188
+ ### Installation
216
189
 
217
190
  ```bash
218
- # Install directly from GitHub
219
- pip install git+https://github.com/slpuk/easyhttp-python.git
191
+ # Install from PyPI
192
+ pip install easyhttp-python
220
193
 
221
- # Or install from source
222
- git clone https://github.com/slpuk/easyhttp-python
223
- cd easyhttp-python
224
- pip install -e .
194
+ # Or from GitHub
195
+ pip install git+https://github.com/slpuk/easyhttp-python.git
225
196
  ```
226
197
 
227
198
  ### Basic Example with Callbacks(Synchronous)
228
199
  ```python
229
200
  import time
230
- from easyhttp import EasyHTTP
201
+ from easyhttp_python import EasyHTTP
231
202
 
232
203
  # Callback function
233
204
  def handle_data(sender_id, data, timestamp):
@@ -1,7 +1,7 @@
1
1
  # EasyHTTP
2
2
 
3
3
  [![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/slpuk/easyhttp-python)
4
- ![Protocol Version](https://img.shields.io/badge/version-0.3.2-blue?style=for-the-badge)
4
+ ![Protocol Version](https://img.shields.io/badge/version-0.3.3-blue?style=for-the-badge)
5
5
  ![Development Status](https://img.shields.io/badge/status-beta-orange?style=for-the-badge)
6
6
  ![License](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)
7
7
  ![Python](https://img.shields.io/badge/python-3.7+-blue?style=for-the-badge&logo=python&logoColor=white)
@@ -51,7 +51,7 @@ EasyHTTP uses a simple JSON-based command system:
51
51
  ### Basic Example with Callbacks (synchronous)
52
52
  ```python
53
53
  import time
54
- from easyhttp import EasyHTTP
54
+ from easyhttp_python import EasyHTTP
55
55
 
56
56
  # Callback function
57
57
  def handle_data(sender_id, data, timestamp):
@@ -1,7 +1,7 @@
1
1
  from .core import EasyHTTPAsync
2
2
  from .wrapper import EasyHTTP
3
3
 
4
- __version__ = "0.3.2"
4
+ __version__ = "0.3.3"
5
5
  __author__ = "slpuk"
6
6
  __all__ = [
7
7
  "EasyHTTPAsync",
@@ -17,7 +17,7 @@ import uvicorn
17
17
  from fastapi import FastAPI, Request
18
18
  from fastapi.responses import JSONResponse
19
19
 
20
- __version__ = "0.3.2"
20
+ __version__ = "0.3.3"
21
21
 
22
22
  class EasyHTTPAsync:
23
23
  """Simple asynchronous HTTP-based core of P2P framework for IoT."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easyhttp-python
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Simple HTTP-based P2P framework for IoT
5
5
  Author-email: slpuk <yarik6052@gmail.com>
6
6
  License: MIT
@@ -36,7 +36,7 @@ Dynamic: license-file
36
36
  # EasyHTTP
37
37
 
38
38
  [![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/slpuk/easyhttp-python)
39
- ![Protocol Version](https://img.shields.io/badge/version-0.3.2-blue?style=for-the-badge)
39
+ ![Protocol Version](https://img.shields.io/badge/version-0.3.3-blue?style=for-the-badge)
40
40
  ![Development Status](https://img.shields.io/badge/status-beta-orange?style=for-the-badge)
41
41
  ![License](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)
42
42
  ![Python](https://img.shields.io/badge/python-3.7+-blue?style=for-the-badge&logo=python&logoColor=white)
@@ -86,7 +86,7 @@ EasyHTTP uses a simple JSON-based command system:
86
86
  ### Basic Example with Callbacks (synchronous)
87
87
  ```python
88
88
  import time
89
- from easyhttp import EasyHTTP
89
+ from easyhttp_python import EasyHTTP
90
90
 
91
91
  # Callback function
92
92
  def handle_data(sender_id, data, timestamp):
@@ -2,9 +2,9 @@ LICENSE
2
2
  README.md
3
3
  README_PY.md
4
4
  pyproject.toml
5
- easyhttp/__init__.py
6
- easyhttp/core.py
7
- easyhttp/wrapper.py
5
+ easyhttp_python/__init__.py
6
+ easyhttp_python/core.py
7
+ easyhttp_python/wrapper.py
8
8
  easyhttp_python.egg-info/PKG-INFO
9
9
  easyhttp_python.egg-info/SOURCES.txt
10
10
  easyhttp_python.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ easyhttp_python
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "easyhttp-python"
7
- version = "0.3.2"
7
+ version = "0.3.3"
8
8
  authors = [
9
9
  {name = "slpuk", email = "yarik6052@gmail.com"},
10
10
  ]
@@ -48,4 +48,4 @@ dev = [
48
48
  ]
49
49
 
50
50
  [tool.setuptools]
51
- packages = ["easyhttp"]
51
+ packages = ["easyhttp_python"]
File without changes