semvec/pypi-packages huggingface dataset:
pypo4sel.core 0.0.2
page object wrapper for selenium webdriver
License: MIT
Keywords: selenium,webdriver,automated,testing,page object

pypo4sel.core
--------------------------------------------------------

Wrapper for selenium webdriver to make page objects easy::

    class SomePageBlock(PageElement):
        filed = PageElement("#filed_id", timeout=10)
        button = PageElement("//path/to/element")

        def do_some_work(self, keys):
            self.field.send_keys(keys)
            self.button.click()
            ...

    class SomePageObject(PageElementsContainer):
        element = SomePageBlock(".block_class")

        def __init__(self, driver):
            self.driver = driver

    page = SomePageObject(get_driver('firefox'))
    assert page.element.button.is_displayed()
    page.element.do_some_work("bla-bla")


- lazy element loading by request
- automated handling of `StaleElementReferenceException`
- flexible timeouts
- automated detecting of locator type
- smart lists of elements, automated logs and much more `here <http://github.com/aksas/pypo4sel>`_.
simple-money 0.1.2
A simple interface to work with money-related entities.
License: MIT
Keywords: money,finance

Simple Money
============

|Build Status| |codecov.io|

.. |Build Status| image:: https://travis-ci.org/Stranger6667/simple-money.png?branch=master
   :target: https://travis-ci.org/Stranger6667/simple-money
.. |codecov.io| image:: https://codecov.io/github/Stranger6667/simple-money/coverage.svg?branch=master
   :target: https://codecov.io/github/Stranger6667/simple-money?branch=master

A simple interface to work with money-related entities.

Installation
------------

The current stable release:

::

    pip install simple_money

or:

::

    easy_install simple_money

or from source:

::

    $ sudo python setup.py install

Usage
-----

Arithmetic operations:


.. code:: python

    >>> Money(100, 'EUR') + Money(50, 'EUR')
    150 EUR
    >>> Money(100, 'EUR') - Money(50, 'EUR')
    50 EUR
    >>> Money(100, 'EUR') * 2
    200 EUR


Also you can manipulate with money in different currencies:

.. code:: python

    >>> Money(100, 'EUR') + Money(50, 'USD')
    100 EUR, 50 USD
    >>> Money(100, 'EUR') - Money(50, 'USD')
    100 EUR, -50 USD
    >>> (Money(100, 'EUR') - Money(50, 'USD')) * 2
    200 EUR, -100 USD

With multiply currencies you are able to get concrete currency value in the following way:

.. code:: python

    >>> value = Money(100, 'EUR') + Money(50, 'USD')
    >>> value.EUR
    100 EUR
    >>> value.USD
    50 USD