Python模块包含以太网TAP Config misc的数据文件。

pythondata-misc-tapcfg的Python项目详细描述


Python杂烩

打包的misc tapcfg所需的非Python文件 使它们可以与Python库和工具一起使用。在

这对于使用诸如 LiteX。在

数据文件可以在Python模块pythondata_misc_tapcfg下找到。这个 pythondata_misc_tapcfg.data_location值可用于查找文件上的文件 系统。在

直接获取数据文件的例子

importpythondata_misc_tapcfgmy_data_file="abc.txt"withopen(os.path.join(pythondata_misc_tapcfg.data_location,my_data_file))asf:print(f.read())

使用litex.data.findAPI获取数据文件的示例

^{pr2}$

数据文件来自https://github.com/enjoy-digital/tapcfg 并使用git subtrees导入到目录 pythondata_misc_tapcfg/data。在

从git存储库安装

手动

您可以手动安装软件包,但建议不要使用。在

git clone https://github.com/litex-hub/pythondata-misc-tapcfg.git
cd pythondata-misc-tapcfg
sudo python setup.py install

在git存储库中使用pip

您可以使用pip直接安装数据包 从github使用

pip install --user git+https://github.com/litex-hub/pythondata-misc-tapcfg.git

如果您想为整个系统而不是只为当前用户安装, 您需要删除--user参数并以sudo的方式运行,如下所示

sudo pip install git+https://github.com/litex-hub/pythondata-misc-tapcfg.git

您可以使用以下命令安装存储库的特定版本:

pip install --user git+https://github.com/litex-hub/pythondata-misc-tapcfg.git@<tag>
pip install --user git+https://github.com/litex-hub/pythondata-misc-tapcfg.git@<branch>
pip install --user git+https://github.com/litex-hub/pythondata-misc-tapcfg.git@<hash>

使用requirements.txt文件

使用以下命令添加到Pythonrequirements.txt文件中

-e git+https://github.com/litex-hub/pythondata-misc-tapcfg.git

要使用特定版本的存储库,请使用以下命令:

-e https://github.com/litex-hub/pythondata-misc-tapcfg.git@<hash>

PyPi安装

使用pip

pip install --user pythondata-misc-tapcfg

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何使用Java确认RabbitMQ消息?   格式化如何在Java中打印小数点后两位的浮点?   php E/JSON解析器:解析数据组织时出错。json。JSONException:java类型的值<br。无法将lang.String转换为JSONObject   java从PaintComponent中访问对象方法   java在自定义集中添加重复项   java how get会话。Mockito中的getAttribute()   java GWT、智能GWT、GWText比较   当有两个安全上下文时,JavaSpring安全性使用了错误的安全上下文   从JAVA文件调用JAVA文件时出现多线程问题   java程序中的客户机-服务器更新程序   不同类的java Log4J记录器   Java编译器错误变量已定义   java计时器和计时器任务周期错误   java如何通过webview将angular 12应用程序加载到Android应用程序中?