{ "info": { "author": "Kevin Seelbach", "author_email": "kevin.seelbach@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Utilities" ], "description": "========\nOverview\n========\n\n.. start-badges\n\n.. list-table::\n :stub-columns: 1\n\n * - package\n - |version|\n\n\n.. |version| image:: https://img.shields.io/pypi/v/generic_utils.svg?style=flat\n :alt: PyPI Package latest release\n :target: https://pypi.python.org/pypi/generic_utils\n\n.. end-badges\n\nA set of generic utility classes and helper functions for Python development.\n\ngeneric_utils is a set of generic Python utilities which currently target\nPython 2.7.X environments with no other required dependencies. The code\ntargets both general production code as well as test utilities to facilitate\neasier test generation, management and complexity.\n\nThis library is not currently intended to be generally useful to the community at\nlarge as there is work to be done to provide greater Python support as well as\ngeneral documentation and upkeep, but has been used successfully in production\nenvironments within the prescribed environments.\n\n\n\nInstallation\n============\n\n::\n\n pip install generic_utils\n\n\nDevelopment\n===========\n\n\nInstall requirements into a local virtualenv::\n\n virtualenv env\n env/bin/pip install -e \".[html,cassandra,celery_test,test_utils]\"\n\n\nThis project requires available cassandra and redis hosts in order to run the full test-suite.\n\nRedis Setup::\n\n docker run -d --name test-redis -p 6379:6379 -v /path/to/storage/redis:/data redis\n\nConnect to the container::\n\n $ docker exec -i -t test-redis /bin/bash\n $ root@7a3377df67f0:/data# redis-cli\n 127.0.0.1:6379> SET __THIS_IS_A_TEST_INSTANCE__ True\n OK\n 127.0.0.1:6379> exit\n\nCassandra Setup::\n\n $ docker run --name test-cassandra -d -p 9042:9042 -p 7000:7000 -v /path/to/storage/cassandra:/var/lib/cassandra cassandra:3.0\n\nConnect to the container::\n\n $ docker exec -i -t test-cassandra /bin/bash\n\nOpen cqlsh and create the python_utils_test keyspace::\n\n $ cqlsh\n > CREATE KEYSPACE python_utils_test WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1} AND DURABLE_WRITES = true;\n\n\nConfigure Cassandra cluster in `tests/local_settings.py` (not in version-control). Replace the values with appropriate\nvalues for your environment::\n\n CQLENGINE = {\n \"TEST_CLUSTER\": {\n ConfigKey.CONTACT_POINTS: get_config_value(\"TEST_CASSANDRA_CONTACT_POINTS\", default=[\"localhost\"]),\n ConfigKey.KEYSPACE: get_config_value(\"TEST_CASSANDRA_KEYSPACE\", \"python_utils_test\"),\n ConfigKey.PORT: get_config_value(\"TEST_CASSANDRA_PORT\", default=9042),\n ConfigKey.USERNAME: get_config_value(\"TEST_CASSANDRA_USERNAME\", default=\"\"),\n ConfigKey.PASSWORD: get_config_value(\"TEST_CASSANDRA_PASSWORD\", default=\"\"),\n ConfigKey.DEFAULT_TIMEOUT: EXPLICTLY_NOT_10_SECONDS_TIMEOUT\n }\n }\n\nRun the test suite::\n\n nosetests tests\n\nOr, using tox::\n\n tox", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kevinseelbach/generic_utils", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "generic-utils", "package_url": "https://pypi.org/project/generic-utils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/generic-utils/", "project_urls": { "Homepage": "https://github.com/kevinseelbach/generic_utils" }, "release_url": "https://pypi.org/project/generic-utils/0.20.0/", "requires_dist": [ "future", "setuptools", "six", "cassandra-driver; extra == 'cassandra'", "celery (>=3.1.20); extra == 'celery_test'", "celery-testutils; extra == 'celery_test'", "celery[threads]; extra == 'celery_test'", "redis; extra == 'celery_test'", "elasticsearch; extra == 'elasticsearch'", "beautifulsoup4 (>=4.3.2); extra == 'html'", "lxml; extra == 'html'", "requests; extra == 'html'", "statsd; extra == 'statsd'", "ddt; extra == 'test_utils'", "freezegun; extra == 'test_utils'", "mock; extra == 'test_utils'" ], "requires_python": "", "summary": "A set of generic utility classes and helper functions for Python development.", "version": "0.20.0" }, "last_serial": 2527267, "releases": { "0.19.1": [ { "comment_text": "", "digests": { "md5": "08852fd0609ac5c74c9318fbdc2021d2", "sha256": "5e31d14ba6b886dbffec4ca237ef404993f35fa07d95e08ea11cc6de6c9fa144" }, "downloads": -1, "filename": "generic_utils-0.19.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "08852fd0609ac5c74c9318fbdc2021d2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 114902, "upload_time": "2016-12-18T06:18:10", "url": "https://files.pythonhosted.org/packages/be/e3/bab93a1102d1021cba91664b77de5fe21bf2fc5e58ad380903c5907b1996/generic_utils-0.19.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e115fdadddb0f44d2ce9f17cb256619b", "sha256": "ad26a289f9fc2868d52bc9a01f7ce14cf2163b037e9cd4e093d82da3f71dd2a8" }, "downloads": -1, "filename": "generic_utils-0.19.1.tar.gz", "has_sig": false, "md5_digest": "e115fdadddb0f44d2ce9f17cb256619b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 120320, "upload_time": "2016-12-18T06:18:12", "url": "https://files.pythonhosted.org/packages/77/b3/992e958d4ee32e6482f43de135e7dd7240287f199d4ac37b0ede78283079/generic_utils-0.19.1.tar.gz" } ], "0.20.0": [ { "comment_text": "", "digests": { "md5": "88b5dc115761880fdc64ae79f9a83787", "sha256": "87977c332841ae30013dffd807b8d2f7bbfd65a066f0f8b931da20e94b93b498" }, "downloads": -1, "filename": "generic_utils-0.20.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "88b5dc115761880fdc64ae79f9a83787", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 128602, "upload_time": "2016-12-19T02:10:34", "url": "https://files.pythonhosted.org/packages/42/db/5d5c9956745a343895ddee93d79d686216cf9550d46452b5950c9f820f7e/generic_utils-0.20.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5779a1b0cbfeb25235cdadd31e776546", "sha256": "bae1de39da3d98fc2ebf390ed1034945772da41866953f236590e6ad4a8e2cf6" }, "downloads": -1, "filename": "generic_utils-0.20.0.tar.gz", "has_sig": false, "md5_digest": "5779a1b0cbfeb25235cdadd31e776546", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 122712, "upload_time": "2016-12-19T02:10:27", "url": "https://files.pythonhosted.org/packages/69/02/e6461ee90cb98b0341e1412d3179f6c0990c738ca5114bbcf2b4fbbe0d4d/generic_utils-0.20.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "88b5dc115761880fdc64ae79f9a83787", "sha256": "87977c332841ae30013dffd807b8d2f7bbfd65a066f0f8b931da20e94b93b498" }, "downloads": -1, "filename": "generic_utils-0.20.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "88b5dc115761880fdc64ae79f9a83787", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 128602, "upload_time": "2016-12-19T02:10:34", "url": "https://files.pythonhosted.org/packages/42/db/5d5c9956745a343895ddee93d79d686216cf9550d46452b5950c9f820f7e/generic_utils-0.20.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5779a1b0cbfeb25235cdadd31e776546", "sha256": "bae1de39da3d98fc2ebf390ed1034945772da41866953f236590e6ad4a8e2cf6" }, "downloads": -1, "filename": "generic_utils-0.20.0.tar.gz", "has_sig": false, "md5_digest": "5779a1b0cbfeb25235cdadd31e776546", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 122712, "upload_time": "2016-12-19T02:10:27", "url": "https://files.pythonhosted.org/packages/69/02/e6461ee90cb98b0341e1412d3179f6c0990c738ca5114bbcf2b4fbbe0d4d/generic_utils-0.20.0.tar.gz" } ] }