{ "info": { "author": "Corentin Chary", "author_email": "corentin.chary@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Database", "Topic :: Software Development", "Topic :: Software Development :: Testing" ], "description": "``testing.cassandra3`` automatically setups a cassandra instance in a temporary directory, and destroys it after testing\n\n.. image:: https://travis-ci.org/criteo-forks/testing.cassandra.svg?branch=master\n :target: https://travis-ci.org/criteo-forks/testing.cassandra\n\n.. image:: https://coveralls.io/repos/criteo-forks/testing.cassandra/badge.png?branch=master\n :target: https://coveralls.io/r/criteo-forks/testing.cassandra?branch=master\n\n.. image:: https://codeclimate.com/github/criteo-forks/testing.cassandra/badges/gpa.svg\n :target: https://codeclimate.com/github/criteo-forks/testing.cassandra\n\nThis is a fork of https://github.com/tk0miya/testing.cassandra.\n\nInstall\n=======\nUse easy_install (or pip)::\n\n $ easy_install testing.cassandra3\n\nAnd ``testing.cassandra3`` requires Cassandra server.\n\n\nUsage\n=====\nCreate Cassandra instance using ``testing.cassandra3.Cassandra``::\n\n import cassandra\n import testing.cassandra3\n\n # Launch new Cassandra server\n with testing.cassandra3.Cassandra as cassandra:\n conn = cassandra.cluster.Cluster(**cassandra.connection_params())\n #\n # do any tests using Cassandra...\n #\n\n # Cassandra server is terminated here\n\n\n``testing.cassandra3`` automatically searchs for cassandra files in ``/usr/local/``.\nIf you install cassandra to other directory, set ``cassandra_home`` keyword::\n\n # uses a copy of specified data directory of Cassandra.\n cassandra = testing.cassandra3.Cassandra(copy_data_from='/path/to/your/database')\n\n\n``testing.cassandra3.Cassandra`` executes ``cassandra`` on instantiation.\nOn deleting Cassandra object, it terminates Cassandra instance and removes temporary directory.\n\nIf you want a database including column families and any fixtures for your apps,\nuse ``copy_data_from`` keyword::\n\n # uses a copy of specified data directory of Cassandra.\n cassandra = testing.cassandra3.Cassandra(copy_data_from='/path/to/your/database')\n\n\nYou can specify parameters for Cassandra with ``cassandra_yaml`` keyword::\n\n # boot Cassandra server listens on 12345 port\n cassandra = testing.cassandra3.Cassandra(cassandra_yaml={'rpc_port': 12345})\n\n\nFor example, you can setup new Cassandra server for each testcases on setUp() method::\n\n import unittest\n import testing.cassandra3\n\n class MyTestCase(unittest.TestCase):\n def setUp(self):\n self.cassandra = testing.cassandra3.Cassandra()\n\n def tearDown(self):\n self.cassandra.stop()\n\n\nRequirements\n============\n* Cassandra 3.11.1\n* Python 2.7, 3.5, 3.6\n* cassandra-driver\n* PyYAML\n\n\nLicense\n=======\nApache License 2.0\n\n\nHistory\n=======\n\n1.3.0 (2017-12-10)\n------------------\n* Fork testing.cassandra\n* Drop support for Cassandra 2.x and Python 2.6\n* Add support for Cassandra 3.x and Python 3\n\n1.2.0 (2016-02-03)\n-------------------\n* Add timeout to server invoker\n* Support Homebrew\n* Support Cassandra 2.x\n* Refer $CASSANDRA_HOME for search cassandra home directory\n* Depend on ``testing.common.database`` package\n\n1.1.4 (2015-04-06)\n-------------------\n* Fix bugs:\n\n - Do not call os.getpid() on destructor (if not needed)\n - Use absolute path for which command\n\n1.1.3 (2014-06-19)\n-------------------\n* Add timeout on terminating cassandra\n* Fix bugs\n\n1.1.2 (2014-06-11)\n-------------------\n* Fix ImportError if caught SIGINT on py3\n\n1.1.1 (2013-12-06)\n-------------------\n* Suport Cassandra 2.0.x\n* Fix Cassandra#stop() causes OSError (at destructing object)\n\n1.1.0 (2013-12-06)\n-------------------\n* Support Cassandra 1.2.x\n* Support python 2.6\n* Add cassandra.skipIfNotInstalled decorator\n* Change behavior: Cassandra#stop() cleans workdir\n* Fix workdir does not removed if cassandra does not started\n\n1.0.0 (2013-10-17)\n-------------------\n* First release\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/criteo-forks/testing.cassandra", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "testing.cassandra3", "package_url": "https://pypi.org/project/testing.cassandra3/", "platform": "", "project_url": "https://pypi.org/project/testing.cassandra3/", "project_urls": { "Homepage": "https://github.com/criteo-forks/testing.cassandra" }, "release_url": "https://pypi.org/project/testing.cassandra3/1.3.0/", "requires_dist": null, "requires_python": "", "summary": "automatically setups a cassandra instance in a temporary directory, and destroys it after testing", "version": "1.3.0" }, "last_serial": 4188234, "releases": { "1.3.0": [ { "comment_text": "", "digests": { "md5": "6d59d1592786503fc1b4c3c81191e80c", "sha256": "a5020934bd40d675ee8ea75ec049f2a2d2120fd4660873a36347426f298ee010" }, "downloads": -1, "filename": "testing.cassandra3-1.3.0.tar.gz", "has_sig": false, "md5_digest": "6d59d1592786503fc1b4c3c81191e80c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9480, "upload_time": "2017-12-14T15:32:10", "url": "https://files.pythonhosted.org/packages/5e/d0/1d30295bfe82959c46a934856427ebb48642a3db5060aaff365bd1a716bf/testing.cassandra3-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6d59d1592786503fc1b4c3c81191e80c", "sha256": "a5020934bd40d675ee8ea75ec049f2a2d2120fd4660873a36347426f298ee010" }, "downloads": -1, "filename": "testing.cassandra3-1.3.0.tar.gz", "has_sig": false, "md5_digest": "6d59d1592786503fc1b4c3c81191e80c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9480, "upload_time": "2017-12-14T15:32:10", "url": "https://files.pythonhosted.org/packages/5e/d0/1d30295bfe82959c46a934856427ebb48642a3db5060aaff365bd1a716bf/testing.cassandra3-1.3.0.tar.gz" } ] }