用于mrjob的基于行的协议。
mr3px的Python项目详细描述
这个包是从'mr3po<;https://github.com/yelp/mr3po>;`\uu
“The 3PX-series protocol droid were third-degree protocol droids produced by Cybot Galactica in 50 BBY and based on the design of the company’s 3PO-series protocol droid.” `Wookiepedia <http://starwars.wikia.com/wiki/3PX-series_protocol_droid>`__
mr3px是基于行的库custom protocols 用于mrjob库。
安装
要使用pip安装此版本:
pip install mr3px
如果您打算在emr上使用它,则需要在 引导步骤。
贡献
mr3px是最容易参与的开源项目。 只需提交一个可以读取和写入现有行的类 格式,你做出了有益的贡献。
一些捐款指南:
- 将格式代码放入mrjob/<formatname>.py
- 协议类的名称应该以Protocol 结尾
- 如果您的协议类只处理单个值(而不是 键-值对),它们的名称应该以ValueProtocol 结尾
- 在tests/test_<format name>.py中包含测试。至少一个测试 应该继承自tests.roundtrip.RoundTripTestCase。
- 外部依赖关系很好,但应该是可选的;将它们添加到 extras_require在setup.py中。