semvec/pypi-packages huggingface dataset:
wowhmm 0.1.5
Who owes whom how much money

# wowhmm

Who owes [whom](https://en.wiktionary.org/wiki/whom#Usage_notes) how much money?

![wowhmm](https://github.com/yoonthegoon/wowhmm/blob/main/media/wowhmm.png?raw=true)

## Installation

<!-- TODO: Set this up with PyPI. -->

```bash
pip install wowhmm
```

## Usage

You first provide a list of who spent how much on whom.
In the example below, Alice spent $349.95 on a BnB for everyone.
To figure out the net amount owed to and from each person, call `tabulate` to return a `pandas.DataFrame`.

```python
>>> from wowhmm import Ledger
>>>
>>> ledger = Ledger(
...     [
...         ("Alice", 349.95, ["Alice", "Bob", "Carol", "Dan"]),  # BnB
...         ("Bob", 68.42, ["Alice", "Dan"]),  # Alcohol
...         ("Bob", 42.02, ["Alice", "Bob", "Carol", "Dan"]),  # Groceries
...         ("Dan", 72.48, ["Alice", "Bob", "Carol", "Dan"]),  # Transportation
...         ("Carol", 28.98, ["Carol", "Dan"]),  # Movies
...     ]
... )
>>>
>>> ledger.tabulate()
       Alice    Bob  Carol    Dan
Alice   0.00 -42.77 -87.49 -69.37
Bob    42.77   0.00 -10.51 -26.60
Carol  87.49  10.51   0.00   3.63
Dan    69.37  26.60  -3.63   0.00
```

`tabulate` rounds each value to the penny.
With row headers being who and column headers being whom, the data is the amount who owes whom.
A value of 0 means no money is owed.
A negative value means that who is actually owed whom by that absolute value.
In the example above, Bob owes Alice $42.77.
markethours 1.0.0
A python library for referencing and localizing US stock trading hours
Requires Python: >=3.7

``markethours``: A python library for referencing and localizing US stock trading hours
========================================================================================

``markethours`` overview
+++++++++++++++++++++++++

We created market ``markethours`` and the markethours.info API because we couldn't
find other free tools for accessing stock trading hours, and we wanted to provide
this library to help others experiencing similar issues. 

``markethours`` features include:

* Reference stock trading hours by date
* Automatically localize to Eastern Standard time
* Easily check whether market has opened or closed
* No user accounts needed


Getting started with ``markethours`` 
+++++++++++++++++++++++++++++++++++++

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

.. code-block:: shell

  pip install markethours

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

.. code-block:: python

  from markethours import MarketHours


  def main():
    todays_hours = MarketHours()

    # Check if the market has opened
    print(todays_hours.market_has_opened())

    # Check if the market has closed
    print(todays_hours.market_has_closed())

    # Wait for the market to open
    todays_hours.wait_for_market_open()

    # See the number of seconds until open
    print(todays_hours.seconds_till_open())

    # Do something if there's less than a minute before
    # close. Something like this could be used in a loop
    if todays_hours.seconds_till_close() < 60:
      print('Hurry up!')

    # Show open, close, and current time in EST
    print(todays_hours.open)
    print(todays_hours.close)
    print(todays_hours.now_est())


  if __name__ == '__main__':
    main()


**Disclaimer:** *markethours comes with no warranty of any kind, and its authors 
accept no responsibility for any damage that might stem from use of this package. 
See the LICENSE file for more details.*