• 大小: 0.18M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-03
  • 语言: Python
  • 标签: python  py  解析  文件  

资源简介

Python解析A2L文件

资源截图

代码片段和文件信息

#!/bin/env/python

from distutils.core import setup Extension
import os
import sys
from setuptools import find_packages
from glob import glob

ANTLR_VERSION = ‘4.7.2‘
ANTLR_RT = “antlr4-python3-runtime=={}“.format(ANTLR_VERSION) if sys.version_info.major == 3 else “antlr4-python2-runtime=={}“.format(ANTLR_VERSION)


install_reqs = [ANTLR_RT ‘mako‘ ‘six‘ ‘SQLAlchemy‘ ‘sortedcontainers‘]

if sys.version_info.major == 2 or (sys.version_info.major == 3 and sys.version_info.minor < 4):
    install_reqs.extend([‘enum34‘ ‘mock‘])

with open(os.path.join(‘pya2l‘ ‘version.py‘) ‘r‘) as f:
    for line in f:
        if line.startswith(‘__version__‘):
            version = line.split(‘=‘)[-1].strip().strip(‘“‘)
            break

with open(“README.md“ “r“) as fh:
    long_description = fh.read()

setup(
    name = ‘pya2l‘
    version=version
    description = “A2L for Python“
    long_description=long_description
    long_description_content_type=“text/markdown“
    author = ‘Christo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-11-16 10:52  pyA2L-master\
     文件         145  2019-11-16 10:52  pyA2L-master\.bumpversion.cfg
     文件         843  2019-11-16 10:52  pyA2L-master\.codeclimate.yml
     文件          46  2019-11-16 10:52  pyA2L-master\.coveralls.yml
     目录           0  2019-11-16 10:52  pyA2L-master\.github\
     文件          23  2019-11-16 10:52  pyA2L-master\.github\FUNDING.yml
     文件         638  2019-11-16 10:52  pyA2L-master\.github\PULL_REQUEST_TEMPLATE.md
     文件       18221  2019-11-16 10:52  pyA2L-master\.pylintrc
     文件         764  2019-11-16 10:52  pyA2L-master\.travis.yml
     文件        3222  2019-11-16 10:52  pyA2L-master\CODE_OF_CONDUCT.md
     文件       18092  2019-11-16 10:52  pyA2L-master\LICENSE
     文件        1153  2019-11-16 10:52  pyA2L-master\README.md
     文件        3282  2019-11-16 10:52  pyA2L-master\appveyor.yml
     文件         838  2019-11-16 10:52  pyA2L-master\build.cmd
     目录           0  2019-11-16 10:52  pyA2L-master\docs\
     文件         603  2019-11-16 10:52  pyA2L-master\docs\Makefile
     文件          47  2019-11-16 10:52  pyA2L-master\docs\apidoc.sh
     文件        5760  2019-11-16 10:52  pyA2L-master\docs\conf.py
     文件          36  2019-11-16 10:52  pyA2L-master\docs\configuration.rst
     文件          71  2019-11-16 10:52  pyA2L-master\docs\howto.rst
     文件         521  2019-11-16 10:52  pyA2L-master\docs\index.rst
     文件         251  2019-11-16 10:52  pyA2L-master\docs\installation.rst
     文件          59  2019-11-16 10:52  pyA2L-master\docs\modules.rst
     文件        2624  2019-11-16 10:52  pyA2L-master\docs\pya2l.rst
     文件          24  2019-11-16 10:52  pyA2L-master\docs\tutorial.rst
     目录           0  2019-11-16 10:52  pyA2L-master\examples\
     文件        2318  2019-11-16 10:52  pyA2L-master\examples\AMLTemplate.aml
     文件      157606  2019-11-16 10:52  pyA2L-master\examples\ASAP2_Demo_V161.a2l
     文件       71941  2019-11-16 10:52  pyA2L-master\examples\ASAP2_Demo_V161.aml
     文件        3087  2019-11-16 10:52  pyA2L-master\examples\ASAP2_Demo_V161_ifdata_section.a2l
     文件       13358  2019-11-16 10:52  pyA2L-master\examples\engine_ecu.a2l
............此处省略56个文件信息

评论

共有 条评论