{ "info": { "author": "Ryan Balfanz", "author_email": "ryan@ryanbalfanz.net", "bugtrack_url": null, "classifiers": [], "description": "reservoir-sampling-cli\n======================\n\nA command line tool to randomly sample k items from an input S containing n items.\n\n> Reservoir sampling is a family of randomized algorithms for randomly choosing a sample of k items from a list S containing n items, where n is either a very large or unknown number.\n> --\n\nInstallation\n------------\n\n\tpip install -e git+ssh://git@github.com/RyanBalfanz/preservoir-sampling-cli.git#egg=resamp\n\nUsage\n-----\n\nShow help message\n\n\t$ resamp -h\n\tusage: Randomly sample k items from an input S containing n items.\n\t [-h] [-k NUM_ITEMS] [--preserve-order]\n\t [infile] [outfile]\n\n\tpositional arguments:\n\t infile\n\t outfile\n\n\toptional arguments:\n\t -h, --help show this help message and exit\n\t -k NUM_ITEMS, --num-items NUM_ITEMS\n\t An integer number giving the size of the reservoir\n\t --preserve-order Preserve input ordering\n\nSample 10 words from /usr/share/dict/words preserving the original order\n\n\t$ cat /usr/share/dict/words | resamp -k10 --preserve-order\n\tParalipomenon\n\tfrankalmoign\n\thauntingly\n\thellion\n\tlaniiform\n\tlithify\n\tsemicollapsible\n\tsniveled\n\tstolkjaerre\n\tunaloud", "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/RyanBalfanz/reservoir-sampling-cli", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "reservoir-sampling-cli", "package_url": "https://pypi.org/project/reservoir-sampling-cli/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/reservoir-sampling-cli/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/RyanBalfanz/reservoir-sampling-cli" }, "release_url": "https://pypi.org/project/reservoir-sampling-cli/0.1/", "requires_dist": null, "requires_python": null, "summary": "A command line tool to randomly sample k items from an input S containing n items.", "version": "0.1" }, "last_serial": 924065, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5533ad22e4671aa82d5d72364dfc1fd7", "sha256": "c17e1239c16283420ce57f5d219e73384d42aab809e8de04332f327f677c6ea5" }, "downloads": -1, "filename": "reservoir_sampling_cli-0.1-py27-none-any.whl", "has_sig": false, "md5_digest": "5533ad22e4671aa82d5d72364dfc1fd7", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3670, "upload_time": "2013-11-19T21:48:46", "url": "https://files.pythonhosted.org/packages/2f/44/c4ecbd9528bf5f2937c3ffb133192433d3056e4af4aaddefae94c698f514/reservoir_sampling_cli-0.1-py27-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a5e0706e62b22c9bd0e9154b1cabd66a", "sha256": "e901fe41b6f9b407fa116ac8b4df38518ec8203907f5537f318d67c662a9bf12" }, "downloads": -1, "filename": "reservoir-sampling-cli-0.1.tar.gz", "has_sig": false, "md5_digest": "a5e0706e62b22c9bd0e9154b1cabd66a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1790, "upload_time": "2013-11-19T21:48:48", "url": "https://files.pythonhosted.org/packages/ee/86/fef0d5af1038e2cfa1d766da67e68ad9bc43b779fce0a0b30ee27edfd7c0/reservoir-sampling-cli-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5533ad22e4671aa82d5d72364dfc1fd7", "sha256": "c17e1239c16283420ce57f5d219e73384d42aab809e8de04332f327f677c6ea5" }, "downloads": -1, "filename": "reservoir_sampling_cli-0.1-py27-none-any.whl", "has_sig": false, "md5_digest": "5533ad22e4671aa82d5d72364dfc1fd7", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3670, "upload_time": "2013-11-19T21:48:46", "url": "https://files.pythonhosted.org/packages/2f/44/c4ecbd9528bf5f2937c3ffb133192433d3056e4af4aaddefae94c698f514/reservoir_sampling_cli-0.1-py27-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a5e0706e62b22c9bd0e9154b1cabd66a", "sha256": "e901fe41b6f9b407fa116ac8b4df38518ec8203907f5537f318d67c662a9bf12" }, "downloads": -1, "filename": "reservoir-sampling-cli-0.1.tar.gz", "has_sig": false, "md5_digest": "a5e0706e62b22c9bd0e9154b1cabd66a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1790, "upload_time": "2013-11-19T21:48:48", "url": "https://files.pythonhosted.org/packages/ee/86/fef0d5af1038e2cfa1d766da67e68ad9bc43b779fce0a0b30ee27edfd7c0/reservoir-sampling-cli-0.1.tar.gz" } ] }