跳转到主要内容

未知

项目描述

dicttools

一组字典工具,旨在使处理Python字典变得更容易。

安装

> git clone http://github.com/rlgomes/dicttools.git#egg=dicttools > cd dicttools > python setup.py install

或者使用以下命令直接从GitHub安装

> pip install -e git+git://github.com/rlgomes/dicttools.git#egg=dicttools

使用方法

`{r basicconsole} > import dicttools > dicttools.filter(lambda key, value: key > 2, { 1: None, 2:{ 3: None }, 4:{}}) {4: {}} `

`{r basicconsole} > dicttools.map(lambda key, value: (key, True), { 1: None, 2: 23, 4:{}}) {1: True, 2: True, 4: True} `

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

dicttools-0.1.0.tar.gz (2.6 kB 查看哈希值)

上传日期:

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面