semvec/pypi-packages huggingface dataset:
docutils-tinyhtmlwriter 1.3.0
Docutils Writer producing Tiny HTML
License: BSD

Docutils Tiny HTML Writer
-------------------------
Docutils Tiny HTML Writer is another docutils html writer, with very light html
output. It was create mainly for use in other project's like doc generators or
web publishers, which wants to use their own html headers and footers.

One of possible use:

.. code-block:: python
    :name: example

    from docutils.core import publish_string, publish_parts
    from docutils_tinyhtml import Writer
    from sys import version_info

    if version_info[0] < 3:
        from io import open

    writer = Writer()
    with open("README.rst", encoding="utf-8") as f:
        rst = f.read()

    # store full html output to html variable
    html = publish_string(source=rst,
                          writer=writer,
                          writer_name='html',
                          settings_overrides={'link': 'link', 'top': 'top'})

    # disable system message in html, no in stderr
    parts = publish_parts(source=rst,
                          writer=writer,
                          writer_name='html',
                          settings_overrides={'no_system_messages': True})

    # store only html body
    body = parts['html_title'] + parts['body'] + parts['html_line'] + \
        parts['html_footnotes'] + parts['html_citations'] + \
        parts['html_hyperlinks']


Or you can use rst2html-tiny command tool like standard rst2html:

.. code-block:: sh

    ~$ rst2html-tiny README.rst > README.html       # generate html from reStructured text
    ~$ rst2html-tiny -h                             # help output

If you have installed `m2r <https://github.com/miyakogi/m2r>`_ package, you can
use ``m2dhtml-tiny`` tool fro MarkDouwn source codes.


Installation
------------
.. code-block:: sh

    ~$ pip install docutils-tinyhtmlwriter
moneypandas 0.9.5
Money type for pandas
License: BSD

# Moneypandas

Moneypandas is a prototype fork of Cyberpandas for currency, using the `money` library. Even this README is shamelessly purloigned, with thanks to Tom Augspurger and the ContinuumIO team.

This package provides support for storing currency data inside a pandas DataFrame using pandas' [Extension Array Interface](http://pandas-docs.github.io/pandas-docs-travis/extending.html#extension-types)


## Set Up Dev Environment

Run `pipenv shell` or another Python3 virtual envirnonment.

Run `python3 setup.py develop`

The env should be set up. Run `python3 examples/three_currency.py` to check.

## Contributing (For new open source contributers!)

Clone this repo using `SSH` or `HTTPS`

For any changes, do `git checkout -b [feature/bug][description-of-issue]` to create a new branch.

Once your changes are made, `git add [file-name]`. Add each file individually.

Run `git status` to make sure all the files you want are added to this commit.

Do `git commit -m "A message describing what changes you made, and why, possible bugs, and what you want to do"`. This will make it easier to refer back to in future.

Run `git push -u origin [branch-name]`. If there have been no issues then a pull request should be open. Follow the link that was returned in the console to complete the PR.


___

## Example

```python
In [1]: from moneypandas import MoneyArray

In [2]: import pandas as pd

In [3]: df = pd.DataFrame({"money": MoneyArray(['1284 EUR', '121 EUR', '€14'])})

In [4]: df
Out[4]:
          money
0  EUR 1,284.00
1    EUR 121.00
2     EUR 14.00
```

For more examples, including summing and converting mixed-currency columns, see the `examples` folder.

(note: not yet tested with Conda, only setuptools/pipenv)

To efficiently perform operations, aggregation is done per currency first, and then XMoney used to do necessary operations on the output aggregates.

Currency conversion of a Series only uses XMoney and conversion where currencies mismatch, so converting a column mostly of BBBs, with a few AAAs, should scale according to the number of AAAs.

## TODO

* implement more reduce functions
* testing for arithmetic