@@ -6,7 +6,7 @@ The aim of the project is to support the most common parts of the CiA 301
66standard in a simple Pythonic interface. It is mainly targeted for testing and
77automation tasks rather than a standard compliant master implementation.
88
9- The library supports Python 3.6+ .
9+ The library supports Python 3.8 or newer .
1010
1111
1212Features
@@ -36,26 +36,30 @@ Incomplete support for creating slave nodes also exists.
3636Installation
3737------------
3838
39- Install from PyPI _ using pip::
39+ Install from PyPI _ using :program: ` pip ` ::
4040
4141 $ pip install canopen
4242
43- Install from latest master on GitHub::
43+ Install from latest `` master `` on GitHub::
4444
45- $ pip install https://github.com/christiansandberg /canopen/archive/master.zip
45+ $ pip install https://github.com/canopen-python /canopen/archive/master.zip
4646
4747If you want to be able to change the code while using it, clone it then install
4848it in `develop mode `_::
4949
50- $ git clone https://github.com/christiansandberg /canopen.git
50+ $ git clone https://github.com/canopen-python /canopen.git
5151 $ cd canopen
5252 $ pip install -e .
5353
5454Unit tests can be run using the pytest _ framework::
5555
56- $ pip install pytest
56+ $ pip install -r requirements-dev.txt
5757 $ pytest -v
5858
59+ You can also use :mod: `unittest ` standard library module::
60+
61+ $ python3 -m unittest discover test -v
62+
5963Documentation
6064-------------
6165
@@ -65,7 +69,8 @@ http://canopen.readthedocs.io/en/latest/
6569
6670It can also be generated from a local clone using Sphinx _::
6771
68- $ python setup.py build_sphinx
72+ $ pip install -r doc/requirements.txt
73+ $ make -C doc html
6974
7075
7176Hardware support
@@ -107,12 +112,12 @@ The :code:`n` is the PDO index (normally 1 to 4). The second form of access is f
107112 # Arguments are passed to python-can's can.Bus() constructor
108113 # (see https://python-can.readthedocs.io/en/latest/bus.html).
109114 network.connect()
110- # network.connect(bustype ='socketcan', channel='can0')
111- # network.connect(bustype ='kvaser', channel=0, bitrate=250000)
112- # network.connect(bustype ='pcan', channel='PCAN_USBBUS1', bitrate=250000)
113- # network.connect(bustype ='ixxat', channel=0, bitrate=250000)
114- # network.connect(bustype ='vector', app_name='CANalyzer', channel=0, bitrate=250000)
115- # network.connect(bustype ='nican', channel='CAN0', bitrate=250000)
115+ # network.connect(interface ='socketcan', channel='can0')
116+ # network.connect(interface ='kvaser', channel=0, bitrate=250000)
117+ # network.connect(interface ='pcan', channel='PCAN_USBBUS1', bitrate=250000)
118+ # network.connect(interface ='ixxat', channel=0, bitrate=250000)
119+ # network.connect(interface ='vector', app_name='CANalyzer', channel=0, bitrate=250000)
120+ # network.connect(interface ='nican', channel='CAN0', bitrate=250000)
116121
117122 # Read a variable using SDO
118123 device_name = node.sdo[' Manufacturer device name' ].raw
0 commit comments