{ "info": { "author": "Alexandr Shurigin", "author_email": "alexandr.shurigin@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Information Technology", "Intended Audience :: Legal Industry", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries" ], "description": "Version 0.1.0\n\nLimited Ordered Set\n-------------------\n\nData type for storing sorted list of objects with sort order and list length limit. Useful for storing data like\nhistory of user interactions on site.\n\nOnce added object to list overflow set length, it pop items from set beginning of set. You always have only last X\nentries limited b `length` property.\n\nInstallation\n------------\n\nYou can simple install library with `pip install limited-ordered-set`.\n\nExample\n-------\n\nYou can add as many as you want objects to LimitedOrderedSet, it will pop first items once items count hit limit.\n\nFor example you can go to tests.::\n\n limit = 10\n objcts = LimitedOrderedSet(limit)\n\n print 'Adding chars: ',\n for x in xrange(0, 50):\n c = choice(string.ascii_letters)\n print c,\n objcts.add(c)\n print\n\n print 'Resulting set items: %s' % \",\".join(objcts)\n\nExecution result\n\nAdding chars: B Z V N F k j j o v t M k j P v A Y O h E v f A g e F T Q b f r j t W q r C C S m P V m o B z a L w\n\nResulting set items: S,m,P,V,o,B,z,a,L,w\n\nContribution\n------------\n\nYou always are welcome if you have any ideas. You can push request at github project page.\n\nhttps://github.com/phpdude/limited-ordered-set", "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/phpdude/limited-ordered-set", "keywords": "collection library type set list limited", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "limited-ordered-set", "package_url": "https://pypi.org/project/limited-ordered-set/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/limited-ordered-set/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/phpdude/limited-ordered-set" }, "release_url": "https://pypi.org/project/limited-ordered-set/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Limited Ordered Set object. Data type for storing actions history lists.", "version": "0.1.0" }, "last_serial": 1313830, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e059404f55d78f58fd0aa0ffe6e546ec", "sha256": "ec40f1298d569ee705368e9c0531e8aecd55dbfeeca0c0e9ccb65da0faf10955" }, "downloads": -1, "filename": "limited-ordered-set-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e059404f55d78f58fd0aa0ffe6e546ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2357, "upload_time": "2014-11-20T00:02:34", "url": "https://files.pythonhosted.org/packages/31/9b/881640b952bdef5203a77d23ac113ac0d69f5c5b54ffe60c2700bdc6d0ec/limited-ordered-set-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e059404f55d78f58fd0aa0ffe6e546ec", "sha256": "ec40f1298d569ee705368e9c0531e8aecd55dbfeeca0c0e9ccb65da0faf10955" }, "downloads": -1, "filename": "limited-ordered-set-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e059404f55d78f58fd0aa0ffe6e546ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2357, "upload_time": "2014-11-20T00:02:34", "url": "https://files.pythonhosted.org/packages/31/9b/881640b952bdef5203a77d23ac113ac0d69f5c5b54ffe60c2700bdc6d0ec/limited-ordered-set-0.1.0.tar.gz" } ] }