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.
- flcpy-0.2.6/MANIFEST.in +1 -0
- {flcpy-0.2.4 → flcpy-0.2.6}/PKG-INFO +3 -3
- {flcpy-0.2.4 → flcpy-0.2.6}/README.md +2 -2
- {flcpy-0.2.4 → flcpy-0.2.6}/pyproject.toml +1 -1
- flcpy-0.2.6/src/flcpy/__init__.py +1 -0
- {flcpy-0.2.4 → flcpy-0.2.6}/src/flcpy/flcpy.py +5 -2
- {flcpy-0.2.4 → flcpy-0.2.6}/src/flcpy.egg-info/PKG-INFO +3 -3
- {flcpy-0.2.4 → flcpy-0.2.6}/src/flcpy.egg-info/SOURCES.txt +1 -0
- flcpy-0.2.4/src/flcpy/__init__.py +0 -1
- {flcpy-0.2.4 → flcpy-0.2.6}/LICENSE +0 -0
- {flcpy-0.2.4 → flcpy-0.2.6}/setup.cfg +0 -0
- {flcpy-0.2.4 → flcpy-0.2.6}/src/flcpy.egg-info/dependency_links.txt +0 -0
- {flcpy-0.2.4 → flcpy-0.2.6}/src/flcpy.egg-info/top_level.txt +0 -0
flcpy-0.2.6/MANIFEST.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
prune test
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flcpy
|
|
3
|
-
Version: 0.2.
|
|
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
|
-
|
|
30
|
-
obj =
|
|
29
|
+
s = flcpy.Simulator()
|
|
30
|
+
obj = s.get_object(...)
|
|
31
31
|
...
|
|
32
32
|
```
|
|
@@ -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
|
|
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.
|
|
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
|
-
|
|
30
|
-
obj =
|
|
29
|
+
s = flcpy.Simulator()
|
|
30
|
+
obj = s.get_object(...)
|
|
31
31
|
...
|
|
32
32
|
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .flcpy import Controller
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|