semvec/pypi-packages huggingface dataset:
ssh-proxy 0.1.2
Run a SOCKS proxy over an SSH dynamic forwarding connection
License: MIT
Keywords: ssh socks proxy

SSH Proxy
=========

A simple tool for temporarily configuring a SOCKS proxy over an SSH dynamic
forwarding connection.

Installation
------------

To install:

.. code-block:: bash

    $ pip install ssh-proxy

Usage
-----

Run the SSH proxy with:

.. code-block:: bash

    $ sshproxy hostname

where the hostname is a valid hostname provided to the SSH command line, e.g.
``user@domain.com``, ``100.10.100.10``. If you need to configure SSH keys etc.,
it is recommended to do so using your ``~/.ssh/config`` file, e.g.::

    Host myhost
        HostName myhost.com
        User myuser
        IdentityFile ~/.ssh/myhost

``networksetup`` requires enhanced permissions to run. To avoid entering your
password in a dialog several times, run with ``--sudo`` to run ``networksetup``
as root:

.. code-block:: bash

    $ sshproxy myhost --sudo

For other command line options, run:

.. code-block:: bash

    $ sshproxy --help

Contribute
----------

The source is hosted in GitHub at https://github.com/acroz/ssh-proxy.git. At
present the code assumes that no password needs to be entered and that the user
is on a Mac and therefore has ``networksetup`` available. Improvements,
including ridding the code of these assumptions, are welcome via pull request.
py-value-validator 0.0.1
Value validation module
License: MIT

==================
py_value_validator
==================

This is a Python module that provides an easy way to validate values in
other projects. The base class provides some generic comparisons and should
be overridden in order to define comparisons for other classes.

Installation
============

Add the source as a submodule to your project.

    $ git submodule add https://github.com/andrewseaman35/py-value-validator.git
    $ git submodule init

Usage
=====

By overriding the functions class, validation functions can be added by data type
or to the generic function list. Any function that is specified as generic may be
used by any data of any type being validated.

    class ValidatorFunctions(GenericValidatorFunctions):
        def _add_typed_functions(self):
            self._add_function(str, "contains", contains)
            self._add_function("generic", "is_not_none", is_not_none)

    def contains(mine, yours):
        return yours in mine

    def is_not_none(mine, yours=None):
        return mine is not None

Create a validator with an instance of the function class.

    _validator_functions = ValidatorFunctions()
    validator = ValueValidator(_validator_functions)

Define a list of tuples that define the validation for the given value.

    validations = [('contains', 'ell'), ('is_not_none', None)]

Run the validations against a value and keep an eye out for a ValidationError.

    try:
        validator.validate("hello, world!", validations)
    except ValidationError as validation_error:
        print("Value did not pass validation!")
pyoanda 1.22
Oanda's API python wrapper. Robust and Fast API wrapper for your Forex bot Python library that wraps Oanda API. Built on top of requests, it's easy to use and makes sense.
License: MIT
Keywords: oanda,wrapper

Oanda's API python wrapper. Robust and Fast API wrapper for your Forex bot Python library that wraps Oanda API. Built on top of requests, it's easy to use and makes sense.