semvec/pypi-packages huggingface dataset:
rds-host 0.1.2
Get hostname from Amazon RDS instance name
License: MIT
Keywords: amazon,aws,psql,cloud,boto,rds

RDS-HOST
========

A simple command line utility, allowing you to find the hostname associated with
your Amazon RDS instance name.

Also has a simple wrapper for PostgreSQL's psql utility. If you want a similar
script for MySQL or Oracle, patches are welcome.

A few examples::

    # w/o arg: prints all active instances
    % rds-host
    mydbinstance    mydbinstance.c6ulnjwxjm.us-west-2.rds.amazonaws.com:5432
    myotherdbinstance  myotherdbinstance.d5ulnswdjyf.us-west-2.rds.amazonaws.com:5432

    # w/ arg: prints host name of matching instance
    % rds-host mydbinstance
    mydbinstance.c6ulnjwxjm.us-west-2.rds.amazonaws.com:5432

    # connect to the instance with psql
    % rds-psql mydbinstance -U mydbuser mydbname
    Connecting to mydbinstance.c6ulnjwxjm.us-west-2.rds.amazonaws.com...
    Password for user mydbuser:
    psql (9.0.5, server 9.3.1)
    WARNING: psql version 9.0, server version 9.3.
    Some psql features might not work.
    SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
    Type "help" for help.

    mydbname=>
parameterizedtestcase 0.1.0
Parameterized tests for Python's unittest module
License: MIT
Keywords: unittest

python_unittest_parameterized_test_case
=======================================

.. image:: https://secure.travis-ci.org/msabramo/python_unittest_parameterized_test_case.png?branch=master
   :target: http://travis-ci.org/msabramo/python_unittest_parameterized_test_case

Parameterized tests for Python's unittest module

This was inspired by the `parameterized tests
feature <http://pytest.org/latest/example/parametrize.html>`_ in
`py.test <http://pytest.org/>`_. I had been using py.test for the
particular test that motivated this, but my colleague had some
reservations about using py.test and all I really needed was the
parameterized tests so I whipped this up with a bit of metaclass
hackery.


Example usage
-------------

.. code-block:: python

    from parameterizedtestcase import ParameterizedTestCase

    class MyTests(ParameterizedTestCase):
        @ParameterizedTestCase.parameterize(
            ("input", "expected_output"),
            [
                ("2+4", 6),
                ("3+5", 8),
                ("6*9", 54),
            ]
        )
        def test_eval(self, input, expected_output):
            self.assertEqual(eval(input), expected_output)

Result of running this::

    ~/dev/git-repos/python_unittest_parameterized_test_case$ python -m unittest -v tests
    test_eval_input_2+4_expected_output_6 (tests.MyTests) ... ok
    test_eval_input_3+5_expected_output_8 (tests.MyTests) ... ok
    test_eval_input_6*9_expected_output_54 (tests.MyTests) ... ok

    ----------------------------------------------------------------------
    Ran 3 tests in 0.001s

    OK


Supported Python versions
-------------------------

- Python 2.5
- Python 2.6
- Python 2.7
- Python 3.1
- Python 3.2
- Python 3.3
- PyPy 1.9
- Jython 2.5

or says `tox <http://tox.testrun.org/>`_::

    ~/dev/git-repos/python_unittest_parameterized_test_case$ tox
    ...
      py25: commands succeeded
      py26: commands succeeded
      py27: commands succeeded
      py31: commands succeeded
      py32: commands succeeded
      py33: commands succeeded
      jython: commands succeeded
      pypy: commands succeeded
      congratulations :)

You also can check the `latest Travis CI results
<http://travis-ci.org/msabramo/python_unittest_parameterized_test_case>`_, but
Travis doesn't build all of the above platforms.


Issues
------

Send your bug reports and feature requests to https://github.com/msabramo/python_unittest_parameterized_test_case/issues