python多处理的包装器,提供对tqdm进度条和共享参数的支持

enhanced-multiprocessing的Python项目详细描述


python多处理的包装器,为tqdm提供支持 进度条和共享参数。

提供简单、熟悉的与额外超能力的接口。

安装

pip install enhanced_multiprocessing

示例用法

fromenhanced_multiprocessingimportPooldefadd_n(x,n):returnx+n# the number of processes will be set to number of cores - 1 by defaultp=Pool()# will apply add_n to the element list of length three with n=5, showing a nice progress bar alongresult=p.imap(add_n,[1,2,3],shared_args=(5,))assertlist(result)==[6,7,8]

历史记录

最初发表于 kn-bibs/pathways-analysis, 然后进一步发展 krassowski/drug-disease-profile-matching

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

推荐PyPI第三方库


热门话题
如何下载多个。java中的PDF文件   linux Java打开文件,形成实际用户主页~/   java如何在时间线内维护TableView选择?   java Hibernate注释@Where vs@WhereJoinTable   Java读/写访问异常FileNotFoundException(访问被拒绝)   继承在Java中是否可以扩展最后一个类?   Android HttpClient使用java使应用程序崩溃。lang.OutOfMemoryError:pthread_create   java为什么即使我在proguardproject中添加了jar文件,也会出现这种错误。txt?   如果添加JButton,swing Java FocusListener和KeyListener将无法工作   java使用solrj检索json格式的SolrDocument   使用Microsoft Visual Studio代码进行Java编程   java NoClassDefFoundError:org/apache/log4j/Logger   哈希集中包含相等对象的java   java中的参数化构造函数是否需要有一个主体?   java类似于NetBeans不必要的代码检测器   Java实践问题   java Blackberry“[projectname].调试文件丢失”和“I/O错误:找不到程序”jar