flcpy 0.2.4__tar.gz → 0.2.6__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.
@@ -0,0 +1 @@
1
+ prune test
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flcpy
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Python control interface for Flare Live / Flare Real
5
5
  Author-email: Jiwei Wang <zmh78879@gmail.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -26,7 +26,7 @@ pip install --upgrade flcpy
26
26
  ```
27
27
  import flcpy
28
28
 
29
- c = flcpy.Controller()
30
- obj = c.get_object(...)
29
+ s = flcpy.Simulator()
30
+ obj = s.get_object(...)
31
31
  ...
32
32
  ```
@@ -13,7 +13,7 @@ pip install --upgrade flcpy
13
13
  ```
14
14
  import flcpy
15
15
 
16
- c = flcpy.Controller()
17
- obj = c.get_object(...)
16
+ s = flcpy.Simulator()
17
+ obj = s.get_object(...)
18
18
  ...
19
19
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flcpy"
3
- version = "0.2.4"
3
+ version = "0.2.6"
4
4
  authors = [
5
5
  { name="Jiwei Wang", email="zmh78879@gmail.com" },
6
6
  ]
@@ -0,0 +1 @@
1
+ from .flcpy import connect
@@ -64,7 +64,7 @@ class MessagingClient:
64
64
  def close(self):
65
65
  self.socket.close()
66
66
 
67
- class Controller:
67
+ class Simulator:
68
68
  def __init__(self, host : str = 'localhost', port : int = 25556, recover_world = True):
69
69
  self.messaging = MessagingClient(host, port)
70
70
  if recover_world:
@@ -339,4 +339,7 @@ class Controller:
339
339
  if recover_world:
340
340
  self.clear()
341
341
  self.recover_world()
342
- self.messaging.close()
342
+ self.messaging.close()
343
+
344
+ def connect(host : str = 'localhost', port : int = 25556, recover_world = True) -> Simulator:
345
+ return Simulator(host, port, recover_world)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flcpy
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Python control interface for Flare Live / Flare Real
5
5
  Author-email: Jiwei Wang <zmh78879@gmail.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -26,7 +26,7 @@ pip install --upgrade flcpy
26
26
  ```
27
27
  import flcpy
28
28
 
29
- c = flcpy.Controller()
30
- obj = c.get_object(...)
29
+ s = flcpy.Simulator()
30
+ obj = s.get_object(...)
31
31
  ...
32
32
  ```
@@ -1,4 +1,5 @@
1
1
  LICENSE
2
+ MANIFEST.in
2
3
  README.md
3
4
  pyproject.toml
4
5
  src/flcpy/__init__.py
@@ -1 +0,0 @@
1
- from .flcpy import Controller
File without changes
File without changes