{ "info": { "author": "YUCHI", "author_email": "wei.chensh@ele.me", "bugtrack_url": null, "classifiers": [], "description": "PkGen\n=====\n\nIntroduction\n------------\n\n**PkGen** is a pk generator implemented using Python, who's core algorithm\nderives from `Mongo's `_ generation of ``ObjectId``.\n\n**Basic Concept of ObjectId**\n\n A BSON ObjectId is a 12-byte value consisting of a 4-byte timestamp\n (seconds since epoch), a 3-byte machine id, a 2-byte process id(PID)\n and a 3-byte counter. Note tha the timestamp and counter fields must\n be stored big endian unlike the rest of BSON.\n\n `More `_\n\nInstall\n-------\n\n2 ways to install **PkGen**:\n\n1. clone the repo to your machine, run ``setup.py``\n\n.. code:: bash\n\n $ cd ~ && git@github.com:streethacker/pkgen.git\n $ python setup.py install\n\n2. using pip\n\n.. code:: bash\n\n $ pip install -e git+https://github.com/streethacker/pkgen@0.1#egg=pkgen\n\nStart\n-----\n\n.. code:: python\n\n >>> from pkgen import PkGen\n >>> pkg = PkGen()\n >>> pk = pkg.pkgen()\n >>> pk.pk\n '5735ae95c14e2435aa000000'\n >>>\n", "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/streethacker/pkgen", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pkgen", "package_url": "https://pypi.org/project/pkgen/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pkgen/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/streethacker/pkgen" }, "release_url": "https://pypi.org/project/pkgen/0.1/", "requires_dist": null, "requires_python": null, "summary": "Primary Key Generator Implemented In Python", "version": "0.1" }, "last_serial": 2459346, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "93797a9b835ee0651e013c021912cad2", "sha256": "fea91c28f07be9c9f6cc502161629cbbe22def42c3e80a14b81b331d4f7ac1a2" }, "downloads": -1, "filename": "pkgen-0.1.tar.gz", "has_sig": false, "md5_digest": "93797a9b835ee0651e013c021912cad2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2521, "upload_time": "2016-11-14T13:04:14", "url": "https://files.pythonhosted.org/packages/a7/e5/a5fcb2de2f8726b748d3ce8f48ab9954fb458de403788f0e6e2535daa809/pkgen-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "93797a9b835ee0651e013c021912cad2", "sha256": "fea91c28f07be9c9f6cc502161629cbbe22def42c3e80a14b81b331d4f7ac1a2" }, "downloads": -1, "filename": "pkgen-0.1.tar.gz", "has_sig": false, "md5_digest": "93797a9b835ee0651e013c021912cad2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2521, "upload_time": "2016-11-14T13:04:14", "url": "https://files.pythonhosted.org/packages/a7/e5/a5fcb2de2f8726b748d3ce8f48ab9954fb458de403788f0e6e2535daa809/pkgen-0.1.tar.gz" } ] }