{ "info": { "author": "Joe Jevnik", "author_email": "joe@quantopian.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Utilities" ], "description": "cnamedtuple 0.1.6\n=================\n\nAn implementation of namedtuple written in c for warp speed.\n\nTested against Python 3.4 and 3.5, and 3.6 as of ``3084914245d2``\n\nWarp Speed\n----------\n\nTime to go fast.\n\nSetup\n~~~~~\n\nUse qualified imports so that we can tell which namedtuple we are using.\n\n.. code:: python\n\n >>> from namedtuple import namedtuple as cnamedtuple\n >>> from collections import namedtuple as stdnamedtuple\n >>> from pickle import dumps, loads\n\nLittle numbers\n~~~~~~~~~~~~~~\n\nCute graphs\n```````````\n\nThese operations scale with the number of fields.\n\n.. figure:: https://raw.githubusercontent.com/llllllllll/cnamedtuple/master/prof/type_creation_string.png\n :alt: Type creation from a string of field names.\n\n Type creation from a string of field names.\n.. figure:: https://raw.githubusercontent.com/llllllllll/cnamedtuple/master/prof/type_creation_seq.png\n :alt: Type creation from a sequence of field names.\n\n Type creation from a sequence of field names.\n.. figure:: https://raw.githubusercontent.com/llllllllll/cnamedtuple/master/prof/instance_creation.png\n :alt: Instance creation.\n\n Instance creation.\n\n\nLess cute numbers\n`````````````````\n\nThese operations do not scale with number of fields.\n\n``std_inst`` is an instance of a ``collections.namedtuple`` created type\nwith six named fields: a, b, c, d, e, and f.\n\n``c_inst`` is an instance of a ``cnamedtuple.namedtuple`` created type\nwith six named fields: a, b, c, d, e, and f.\n\nField Access\n''''''''''''\n\n.. code:: python\n\n In [1]: %timeit std_inst.c\n 10000000 loops, best of 3: 71.9 ns per loop\n\n In [2]: %timeit c_inst.c\n 10000000 loops, best of 3: 38.4 ns per loop\n\n\nPickle Roundtrip\n''''''''''''''''\n\n.. code:: python\n\n In [3]: %timeit loads(dumps(std_inst))\n 100000 loops, best of 3: 6.28 \u00b5s per loop\n\n In [4]: %timeit loads(dumps(c_inst))\n 100000 loops, best of 3: 4.72 \u00b5s per loop\n\n\nContributing\n------------\n\nThe project is hosted on\n`github `__.\n\nBefore submitting a patch, please make sure your Python code is\n`PEP8 `__ compliant and your\nc code is `PEP7 `__\ncompliant.\n\nContact\n-------\n\nPlease file all bug reports on\n`github `__.\n\nFor questions or comments, feel free to email me at joe@quantopian.com", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/llllllllll/cnamedtuple", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "cnamedtuple", "package_url": "https://pypi.org/project/cnamedtuple/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cnamedtuple/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/llllllllll/cnamedtuple" }, "release_url": "https://pypi.org/project/cnamedtuple/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "collections.namedtuple implemented in c.", "version": "0.1.6" }, "last_serial": 1953982, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "dde8582d4342a761730f306d57a6d488", "sha256": "bc6ed5d1b7e8d76990f265792e5c758d3310eda0fd2fb6b1b89b945bb5d3c8a7" }, "downloads": -1, "filename": "cnamedtuple-0.1.0.tar.gz", "has_sig": false, "md5_digest": "dde8582d4342a761730f306d57a6d488", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10550, "upload_time": "2015-01-16T04:31:34", "url": "https://files.pythonhosted.org/packages/b3/06/b860a5ca2e8f93add78285f3ab08fa0ee45d9fcdd2eb14bcf19a81752320/cnamedtuple-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e172d48f23008aff6b0d6e6280f72192", "sha256": "386eb8f2ebace825766107204283b961952f738284d411806eb6487bcce281d1" }, "downloads": -1, "filename": "cnamedtuple-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e172d48f23008aff6b0d6e6280f72192", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10470, "upload_time": "2015-01-16T23:37:35", "url": "https://files.pythonhosted.org/packages/f1/96/35dab04ac37093b9650109a427a2fd5d4c20a262e80c5c975122f85076c2/cnamedtuple-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f30bf9e807a5118c6226ba2e8ac5b2ba", "sha256": "2910deed07b430b84352ca0c922801d2114d6688f3f0c0ff2c74fde9db54fc3d" }, "downloads": -1, "filename": "cnamedtuple-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f30bf9e807a5118c6226ba2e8ac5b2ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10518, "upload_time": "2015-01-17T00:32:51", "url": "https://files.pythonhosted.org/packages/fe/39/3356304c59f1b5e4559f7a1cf9d82f187aaa3208ce7ff1eb49eac0c9f238/cnamedtuple-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d820f613dabebe2d5551b3c75e672b45", "sha256": "b041b13b5c4e06378eb86e45df0c0c32668eacdc3cfd4d75ecac955271e7fed3" }, "downloads": -1, "filename": "cnamedtuple-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d820f613dabebe2d5551b3c75e672b45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10404, "upload_time": "2015-01-20T01:10:35", "url": "https://files.pythonhosted.org/packages/8e/83/ad55ab8eb4d80bedd8380b217dd1ce705799d91f67e78273f3ea674b30bd/cnamedtuple-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "c114622541561080b2b7ba0308ec1c26", "sha256": "0051de0a0037f7bdd3719fd43baed07f1a71ce424905b862467132137db40cb7" }, "downloads": -1, "filename": "cnamedtuple-0.1.4.tar.gz", "has_sig": false, "md5_digest": "c114622541561080b2b7ba0308ec1c26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10577, "upload_time": "2015-01-20T03:49:34", "url": "https://files.pythonhosted.org/packages/04/76/b7e2db8e3490ed3f75e275473d0ac6c5e15ac24749f52cc20f9bb2fe88bf/cnamedtuple-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "4d90cd5f5fbc541f7b91655099165a79", "sha256": "da9a46d96c31b6cb98289db76a5c85a68fe0d961be96d97e03eeab0fb0c17151" }, "downloads": -1, "filename": "cnamedtuple-0.1.5.tar.gz", "has_sig": false, "md5_digest": "4d90cd5f5fbc541f7b91655099165a79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10523, "upload_time": "2015-03-08T06:05:52", "url": "https://files.pythonhosted.org/packages/af/43/05170e645077f1d4c29b50144d98d55d895740f37d7a6b5cd7af9327871d/cnamedtuple-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "5e7980295934e49d7e11252797a827c6", "sha256": "b7d8ea7c9135eb30ac098578a712be4c58c812214e281d4585c56a19d5f48aed" }, "downloads": -1, "filename": "cnamedtuple-0.1.6.tar.gz", "has_sig": false, "md5_digest": "5e7980295934e49d7e11252797a827c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10849, "upload_time": "2016-02-13T00:06:30", "url": "https://files.pythonhosted.org/packages/7e/2b/204e958c214a28cccaae73831469859731bd47a201c614142eb19378bca7/cnamedtuple-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e7980295934e49d7e11252797a827c6", "sha256": "b7d8ea7c9135eb30ac098578a712be4c58c812214e281d4585c56a19d5f48aed" }, "downloads": -1, "filename": "cnamedtuple-0.1.6.tar.gz", "has_sig": false, "md5_digest": "5e7980295934e49d7e11252797a827c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10849, "upload_time": "2016-02-13T00:06:30", "url": "https://files.pythonhosted.org/packages/7e/2b/204e958c214a28cccaae73831469859731bd47a201c614142eb19378bca7/cnamedtuple-0.1.6.tar.gz" } ] }