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

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有没有工具可以将zephyr转换为velocity模板?   java在安卓 studio中从JSON响应中获取值   jvm如何在Java中设计一个好的permgen空间字符串?   java如何防止Rest webservice使用被盗令牌进行身份验证   java无法遍历列表JSTL   找不到用于ResourceServerTokenServices的java Bean SpringSecurityOauth2   java子字符串替换问题   爪哇玻璃鱼3。十、 以编程方式处理任意HTTPSession的终止   java如何检查输入是否为整数,并在最后添加一个命令来重新启动while循环?   引发java ical4j 1.0.6不可解析日期异常   Java等价于Delphi的DBCtrlGrid?   如果发生错误,java将查找下一个预期标记ANTLR 3   java自打开应用程序(创建锁屏)   java为什么netty有自己的ConcurrentHashMap?   Gradle任务中的java拉取和运行依赖项   继承与Java继承的混淆   java使用shell脚本中的版本执行jar   java我无法让Sqlite数据库与带有Maven的JavaFX应用程序IDE Eclipse包正确通信   java控制台日志未通过org打印。阿帕奇。hadoop。mapreduce。作业的waitForCompletion(true)方法   JAVAlang.NoSuchMethodError:apachestorm螺栓中的spring getrequest