[2018.05.09 Python learning and practice] Python library memo used in personal projects - continuous update

Whether you use C/C++, Python, or Matlab in scientific research, if you can find a suitable library, you can get twice the result with half the effort;

Sometimes it takes a long time to find out that there are mature libraries available, and the functions, performance, and security implemented by myself are far behind. Although I have exercised my abilities, there is a risk of slowing down the pace of the project.

So often browse the Python Software Foundation's

https://pypi.org

https://www.python.org

Or other developer forums to see what interesting libraries you can use.

1. xlwt

https://pypi.org/project/xlwt/

xlwt is used to process Microsoft Exel files, the package is pure python and only depends on python's standard distribution.

Online installation sudo pip install xlwt

 

2. canmatrix

https://pypi.org/project/canmatrix/

I found this package when I parsed the dbc file two days ago. Of course, this package is not used to parse dbc, but to convert between various representations of the can communication matrix or edit the can communication matrix. The function is quite powerful. of.

Currently supported input file formats and output file formats:

input file format

.dbc candb / Vector

.dbf Busmaster (open source!)

.kcd kayak (open source!)

.arxml autosar system description

.yaml dump of the python object

.xls(x) excel xls-import, works with .xls-file generated by this lib

.sym peak pcan can description

output file format

.dbc

.dbf

.kcd

.xls(x)

.json Canard (open source!)

.arxml (very basic implementation)

.yaml (dump of the python object)

.sym

.xml (fibex)

There is source code on github, you can refer to it.

https://github.com/ebroecker/canmatrix

Online installation

sudo pip install canmatrix

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325950842&siteId=291194637