本地测试吉诃德模型的脚本

dulcinee的Python项目详细描述


杜尔西尼亚

允许在本地测试吉诃德模型的脚本。

安装

pip install -r requirements.txt

如何使用Dulcinea

usage:dulcinea.py[-h]-cCONFIG_FILE-iINFO_FILE[-rROOT_DIR]moulinette_directorypositionalarguments:moulinette_directoryoptionalarguments:-h,--helpshowthishelpmessageandexit-cCONFIG_FILE,--config-fileCONFIG_FILEjsonfilecontainingtheuserinformations-iINFO_FILE,--info-fileINFO_FILEjsonfilecontainingtheinformationofthejobstoexecute-rROOT_DIR,--root-dirROOT_DIRdirectorywherethejobswillbeexecuted

conf文件示例

conf文件必须使用-c选项给出,并且包含要插入到上下文中的有用元数据,如用户信息

{"intra_user":"login_z","intra_password":"superPassSecure","gitlab_token":"superCuteToken"}

蓝图

为了在本地测试moulinette,脚本必须能够获取一些要测试的虚拟传递。

通常,这是通过使用内置的fetch.copy将获取步骤替换为“本地”获取来实现的:

importquixote.fetch.copyasfetch@quixote.fetcherdeffetch_by_copying():fetch.copy(path_to_the_dummy_delivery_folder)

The dummy delivery folder must contain a directory for each group_id specified in the info file which will act as dummy delivery for the specific job. See the documentation for fetch.copy.

信息文件示例

信息文件必须使用-i选项给出,并且应该包含所有虚拟传递的元数据。

[
    {
        "module_id": 1,
        "activity_id": 1,
        "group_id": 1
    },
    {
        "module_id": 1,
        "activity_id": 1,
        "group_id": 2
    }
]

The values for module_id and activity_id don't really matter, they are just dummy values to insert into the context. group_id however must match the directory name inside the dummy delivery folder.

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

推荐PyPI第三方库


热门话题
字典java cassandra对象映射注释   java定制Solr TokenFilter lemmatizer   字符串从Java文件中读取windows文件名   java如何在Windows上设置StanfordCorenlp服务器以返回文本   java axis2“意外的子元素值”   java使用POI HSSF获取错误   多线程Java等待计时器线程完成   java ForkJoinPool BuffereImage处理风格   从java代码运行Python脚本   java将字节[]转换为短[],使每个短元素包含13位数据   java如何为swing jframe应用程序将代码划分为类   java使用okhttp更改baseurl   java AlertDialog。建设者setView导致堆栈溢出错误   java如何在特定的radius 安卓 studio中接收地址列表?