Skip to content

Commit 2a01c9c

Browse files
committed
Change neobot of package name to neopia
1 parent 5dfe8b9 commit 2a01c9c

15 files changed

+42
-35
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
# neobot
1+
# Python library for Neopia neobot (NEO SoCo)
22

33
## Overview
44
Part of the RoboticsWare project - https://roboticsware.uz
55
Copyright (C) 2022 RoboticsWare ([email protected])
66

7+
Currently only NEO SoCo support
8+
79
## Installation
8-
``pip install -U neobot`` should work for most users.
10+
``pip install -U neopia`` should work for most users.
11+
12+
## API documentation
13+
Refer to the [Wiki](https://github.com/roboticsware/pylib_neobot/wiki/List-of-APIs)

neobot/__init__.py renamed to neopia/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
import signal
2020

21-
from neobot.scanner import Scanner
22-
from neobot.mode import Mode
23-
from neobot.keyboard import Keyboard
24-
from neobot.runner import Runner
25-
from neobot.model import DeviceType
26-
from neobot.model import DataType
27-
from neobot.neosoco import Neosoco
21+
from neopia.scanner import Scanner
22+
from neopia.mode import Mode
23+
from neopia.keyboard import Keyboard
24+
from neopia.runner import Runner
25+
from neopia.model import DeviceType
26+
from neopia.model import DataType
27+
from neopia.neosoco import Neosoco
2828

2929
__version__ = "0.1.0"
3030

File renamed without changes.
File renamed without changes.

neobot/linker.py renamed to neopia/linker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
from timeit import default_timer as timer
2323
import websocket
2424
import json
25-
from neobot.runner import Runner
26-
from neobot.connector import State
25+
from neopia.runner import Runner
26+
from neopia.connector import State
2727

2828

2929
class Link(object):

neobot/mode.py renamed to neopia/mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
1717
# Boston, MA 02111-1307 USA
1818

19-
from neobot.linker import Linker
19+
from neopia.linker import Linker
2020

2121

2222
class Mode(object):
File renamed without changes.

neobot/neosoco.py renamed to neopia/neosoco.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
import time
2121

22-
from neobot.runner import Runner
23-
from neobot.util import Util
24-
from neobot.model import Robot
25-
from neobot.mode import Mode
22+
from neopia.runner import Runner
23+
from neopia.util import Util
24+
from neopia.model import Robot
25+
from neopia.mode import Mode
2626

2727

2828
class Neosoco(Robot):
@@ -327,10 +327,10 @@ def reset(self):
327327

328328
def _init(self, port_name):
329329
if Mode.is_link_mode():
330-
from neobot.neosoco_neobot import NeosocoLinkNeobot
330+
from neopia.neosoco_neobot import NeosocoLinkNeobot
331331
self._roboid = NeosocoLinkNeobot(self.get_index())
332332
else:
333-
from neobot.neosoco_neobot import NeosocoNeobot
333+
from neopia.neosoco_neobot import NeosocoNeobot
334334
self._roboid = NeosocoNeobot(self.get_index())
335335
self._add_roboid(self._roboid)
336336
Runner.register_robot(self)

neobot/neosoco_neobot.py renamed to neopia/neosoco_neobot.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
import time
2020
import threading
2121

22-
from neobot.runner import Runner
23-
from neobot.util import Util
24-
from neobot.model import DeviceType
25-
from neobot.model import DataType
26-
from neobot.model import Neobot
27-
from neobot.connector import Result
28-
from neobot.neosoco import Neosoco
29-
from neobot.serial_connector import SerialConnector
30-
from neobot.linker import Linker
22+
from neopia.runner import Runner
23+
from neopia.util import Util
24+
from neopia.model import DeviceType
25+
from neopia.model import DataType
26+
from neopia.model import Neobot
27+
from neopia.connector import Result
28+
from neopia.neosoco import Neosoco
29+
from neopia.serial_connector import SerialConnector
30+
from neopia.linker import Linker
3131

3232
START_BYTES = 'CDAB'
3333

@@ -115,7 +115,7 @@ def _set_model_code(self, code):
115115
self._model_code = code
116116

117117
def _create_model(self):
118-
from neobot.neosoco import Neosoco
118+
from neopia.neosoco import Neosoco
119119
dict = self._device_dict = {}
120120
dict[Neosoco.OUTPUT_1] = self._output_1_device = self._add_device(Neosoco.OUTPUT_1, "Output1", DeviceType.EFFECTOR, DataType.INTEGER, 1, 0, 255, 0)
121121
dict[Neosoco.OUTPUT_2] = self._output_2_device = self._add_device(Neosoco.OUTPUT_2, "Output2", DeviceType.EFFECTOR, DataType.INTEGER, 1, 0, 255, 0)
File renamed without changes.

0 commit comments

Comments
 (0)