semvec/pypi-packages huggingface dataset:
girc 0.4.0
A modern Python IRC library for Python 3.4, based on asyncio. In Development.

.. image:: https://github.com/goshuirc/irc/raw/master/docs/logo.png
    :alt: gIRC
    :align: center


A modern Python IRC library for Python 3.4, based on asyncio. Currently in alpha.

----

.. image:: https://img.shields.io/pypi/v/girc.svg?label=latest%20version
    :alt: PyPi Latest Version
    :target: https://pypi.python.org/pypi/girc
.. image:: https://travis-ci.org/goshuirc/irc.svg?branch=master
    :alt: Travis-CI Build Status
    :target: https://travis-ci.org/goshuirc/irc
.. image:: https://coveralls.io/repos/goshuirc/irc/badge.svg?branch=master&service=github
    :alt: Coveralls Code Coverage
    :target: https://coveralls.io/github/goshuirc/irc?branch=master

----

If you use this, anything can change without notice, everything can be overhauled, and development may even stop entirely without any warning.

If you would like to help build this, awesome! Otherwise, I'd stay away for now and use another library: `irc <https://bitbucket.org/jaraco/irc>`_, `irc3 <https://github.com/gawel/irc3/>`_.

`Hosted Documentation <http://girc.readthedocs.org/en/latest/>`_


Features
--------
This library is in development, so these features may be in various levels of completion right now.

* Incoming and outgoing events.
* Info and state tracking.
* Server-based IRC mapping for dicts, lists, and strings.
* IRCv3 capability support.
* Escaping and unescaping IRC formatting for ease-of-use (bold, colours, etc).


Why?
----
I've been using another IRC library for a long time. It's been pretty good, but I need more features. Handling both incoming and outgoing messages, automatic information tracking, converting IRC formatting (bold/colours/etc) to and from an escaped, human-readable and writable format.

I've looked at some other libraries, but they're usually either too low-level, too involved, or too 'magic' for my liking. That said, this one is planning to be pretty magic, but it's going to be magic in a way I think makes sense.

So I decided to write my own. As part of `mammon-ircd <https://github.com/mammon-ircd/mammon>`_, a nice low-level library called `ircreactor <https://github.com/mammon-ircd/ircreactor>`_ was developed. This is also a chance to give that a spin from the client side, rather than the server side.


Running Tests
-------------
To run the test cases, go to the ``tests`` directory and run: ``python3 -m unittest``, or use the ``./runtests`` shell script (which also produces coverage graphs).


Acknowledgements
----------------
We bundle the `ircreactor <https://github.com/mammon-ircd/ircreactor>`_ library developed as a part of `mammon-ircd <https://github.com/mammon-ircd/mammon>`_. This license for this library can be found in the LICENSE.ircreactor file.
gyb 1.0.2
Apple gyb, a simple python-based templating tool
Keywords: development

# gyb
A pip-installable version of Apple's gyb python-based templating tool. To install:

    pip install gyb

For help (assuming that the pip installed binaries path is in your `PATH`):

    gyb -h

To use:

    gyb file.ext.gyb -o file.ext

For details, see this great [blog post](https://nshipster.com/swift-gyb/).

## Summary (from `gyb -h`)

A GYB template consists of the following elements:

- Literal text which is inserted directly into the output
- `%%` or `$$` in literal text, which insert literal '%' and '$' symbols respectively.
- Substitutions of the form `${<python-expression>}`. The Python expression is converted to a string and the result is inserted into the output.
- Python code delimited by `%{...}%`. Typically used to inject definitions (functions, classes, variable bindings) into the evaluation context of the template. Common indentation is stripped, so you can add as much indentation to the beginning of this code as you like
- Lines beginning with optional whitespace followed by a single '%' and Python code. %-lines allow you to nest other constructs inside them. To close a level of nesting, use the `%end` construct.
- Lines beginning with optional whitespace and followed by a single '%' and the token "end", which close open constructs in %-lines.

## Some examples

Create implementations of all the math operators:

```
% for op,f in zip('+-*/', 'add sub mul div'.split()):
  public static func ${op}  (lhs:Self, rhs:Self  ) -> Self { return lhs.${f}( rhs) }
% end
```

Define a variable:

```
%{ types = ('Float', 'Double') }%
```
stat-arb-tools 0.0.5
This package provides statistics arbitrage tools for traders

# Stat Arb Tools
This library provides multiple tools that are useful for statistical arbitrage traders.

# Docs
Documentation is available at this project's [read the docs](https://stat-arb-tools.readthedocs.io/en/latest/) page.

# Install
```bash
$ pip install stat-arb-tools
```

# Pip
This project is available on [pypi.org](https://pypi.org/project/stat-arb-tools/)
htmlfy 0.1.3
Python package for HTML minification

# htmlfy
Python package for HTML minification.  

## Installation
```shell
python3 -mpip install htmlfy
```

## Usage

### Minifing HTML markup in variable

```python
>>> import htmlfy
>>> html = """
    <!DOCTYPE html>
    <html>
      <head>
        <title>Hello</title>
      </head>
      <body>
        <p>hello, world!</p>
      </body>
    </html>"""
>>> htmlfy.minify_html(html)
'<!DOCTYPE html><html><head><title>Hello</title></head><body><p>hello, world!</p></body></html>'
```

### Minifing HTML file

```python
>>> import htmlfy
>>> src_path = 'my_file.html'
>>> dst_path = 'my_file.min.html'
>>> htmlfy.minify_html_file(src_path,dst_path)
```

### Arguments

```python
def htmlfy.minify_html(html,
                strict_spaces=True,
                no_space_between_tags=True,
                preserve=True,
                remove_comments=True,
                html5_min_attr=True,
                html5_emptytags=True
                )

def minify_html_file(source_path,minified_path,
                strict_spaces=True,
                no_space_between_tags=True,
                preserve=True,
                remove_comments=True,
                html5_min_attr=True,
                html5_emptytags=True
                )
```

* **strict_spaces** - strict all spaces(new lines, tabs and etc.) to single space. Except preserved blocks.
* **no_space_between_tags** - delete all spaces between tags.
* **preserve** - it will save all formating in `<pre>`,`<textarea>`,`<script>` tags. Also it will keep PHP expresions like `<?php ... ?>` and `<?=...?>`
* **remove_comments** - delete all types of comments from the code also from `<style>` and `<script>` like `<!-- ... -->`,`/* ... */` or `// comment`. You can save the comment using `<!--! ... -->` format. Expressions comments like `<!--[if gte IE 7]>...<![endif]-->` will be preserved also. 
* **html5_min_attr** - shrink `disabled="disabled"`,`checked="checked"`,`selected="selected"` to HTML5 notation `disabled`,`checked` and `selected` 
* **html5_emptytags** - removes tailing slash in empty tags like `<br />`,`<img ... />` or `<input ... />`

## License

Copyright (c) 2019, Alexey Schebelev

Distributed under [The BSD 3-Clause License](http://opensource.org/licenses/BSD-3-Clause).