{"id":15187310,"url":"https://github.com/criteo-forks/testing.cassandra","last_synced_at":"2025-10-02T01:31:27.334Z","repository":{"id":57474468,"uuid":"113339708","full_name":"criteo-forks/testing.cassandra","owner":"criteo-forks","description":"testing.cassandra3: fork of testing.cassandra with Python 3 and Cassandra 3 support","archived":false,"fork":true,"pushed_at":"2017-12-14T15:32:29.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T12:46:32.091Z","etag":null,"topics":["cassandra","python3","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"tk0miya/testing.cassandra","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/criteo-forks.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-06T16:21:00.000Z","updated_at":"2021-02-18T04:58:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/criteo-forks/testing.cassandra","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criteo-forks%2Ftesting.cassandra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criteo-forks%2Ftesting.cassandra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criteo-forks%2Ftesting.cassandra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criteo-forks%2Ftesting.cassandra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/criteo-forks","download_url":"https://codeload.github.com/criteo-forks/testing.cassandra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234922815,"owners_count":18907828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cassandra","python3","testing"],"created_at":"2024-09-27T18:10:23.852Z","updated_at":"2025-10-02T01:31:22.064Z","avatar_url":"https://github.com/criteo-forks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"``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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcriteo-forks%2Ftesting.cassandra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcriteo-forks%2Ftesting.cassandra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcriteo-forks%2Ftesting.cassandra/lists"}