semvec/pypi-packages huggingface dataset:
kbtpycal 1.0
A simple python calculator library
License: MIT
Keywords: calculator

# kbtpycal

This is a simple library that performs
basic python arithmetic operations.

## Installation

`pip install kbtpycal`

## Usage:

The functions in this library are add_numbers, subtract_numbers,
multiply_numbers, divide_numbers_float, divide_numbers_floor,
power_numbers, mode_numbers

`import kbtpycal`
`# Use Addition Function`
`add_num = kbtpycal.add_numbers(3, 7) # where 3 and 7 are the number you want to add`
`print(add_num)`

## License

Copyright 2021 KenBroTech

This repository is licensed under MIT license.
See LICENSE for details.


Change Log
==========

1.0 (24/07/2021)
playsound 1.3.0
Pure Python, cross platform, single function module with no dependencies for playing sounds.
License: MIT
Keywords: sound playsound music wave wav mp3 media song play audio

playsound
=========
*Pure Python, cross platform, single function module with no dependencies for playing sounds.*

Installation
------------
Install via pip:

.. code-block:: bash

    $ pip install playsound

Done.

If you insist on the (slightly) harder way of installing, from source,
you know how to do it already and don't need my help.

The latest version of the source code can be found at:
https://github.com/TaylorSMarks/playsound

Quick Start
-----------
Once you've installed, you can really quickly verified that it works with just this:

.. code-block:: python

    >>> from playsound import playsound
    >>> playsound('/path/to/a/sound/file/you/want/to/play.mp3') 

Documentation
-------------
The playsound module contains only one thing - the function (also named) playsound.

It requires one argument - the path to the file with the sound you'd like to play. This may be a local file, or a URL.

There's an optional second argument, block, which is set to True by default. Setting it to False makes the function run asynchronously.

On Windows, uses windll.winmm. WAVE and MP3 have been tested and are known to work. Other file formats may work as well.

On OS X, uses AppKit.NSSound. WAVE and MP3 have been tested and are known to work. In general, anything QuickTime can play, playsound should be able to play, for OS X.

On Linux, uses GStreamer. Known to work on Ubuntu 14.04 and ElementaryOS Loki. I expect any Linux distro with a standard gnome desktop experience should work.

If you'd like other Linux distros (or any other OS) to work, submit a PR adding in support for it, but please make sure it passes the tests (see below).

Testing
-------
Playsound includes a small set of tests - if you're making a PR, please ensure that you have no regressions and all the tests pass on your local system.
Also make sure that Travis-CI, which runs these tests against Windows Server 2016, macOS 10.11 (El Capitan, 2015) and 11.3 (Big Sur, 2020), Ubuntu 14 (Trusty), and Ubuntu 18 (Bionic), for both Python 2.7 and 3.9, fully passes.
You can check the Travis-CI status for Playsound here: https://travis-ci.com/github/TaylorSMarks/playsound/builds

Copyright
---------
This software is Copyright (c) 2021 Taylor Marks <taylor@marksfam.com>.

See the bundled LICENSE file for more information.
favico 0.1.8
No description has been added so far.
License: MIT
Requires Python: >=3.6
Keywords: favico

===============================
favico
===============================

.. image:: https://github.com/romnn/favico/workflows/test/badge.svg
        :target: https://github.com/romnn/favico/actions
        :alt: Build Status

.. image:: https://img.shields.io/pypi/v/favico.svg
        :target: https://pypi.python.org/pypi/favico
        :alt: PyPI version

.. image:: https://img.shields.io/github/license/romnn/favico
        :target: https://github.com/romnn/favico
        :alt: License

.. image:: https://codecov.io/gh/romnn/favico/branch/master/graph/badge.svg
        :target: https://codecov.io/gh/romnn/favico
        :alt: Test Coverage

""""""""

Python library to generate the perfect favicons for every device.

.. code-block:: console

    $ pip install favico

.. code-block:: python

    import favico

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

favico uses `ImageMagick <https://imagemagick.org/index.php>`_ to generate the favicons.

For ubuntu, you can simply install libmagicwand-dev like this:

.. code-block:: console

    $ apt-get install libmagickwand-dev 

Usage
------

Using ``favico`` is super easy!
You can either create favicons from an image or from a color:

.. code-block:: console

    $ favico color "#f542ec" ./my-favicon-dir
    $ favico image ./path/to/favicon/image.png ./my-favicon-dir

Once you ran the command to test it out, you will see more info on how to
add the favicons to your page (ready to copy paste!)

By default, it is assumed that your website is deployed on the root ``/``.
To template the favicons with another base path, just set the ``--base`` (``-b``) option:

.. code-block:: console

    $ favico --base /prod/deployment/subdir color "#f542ec" ./my-favicon-dir
    $ favico --base https://my-webside.com color "#f542ec" ./my-favicon-dir


Development
-----------

For detailed instructions see `CONTRIBUTING <CONTRIBUTING.rst>`_.

Tests
~~~~~~~
You can run tests with

.. code-block:: console

    $ invoke test
    $ invoke test --min-coverage=90     # Fail when code coverage is below 90%
    $ invoke type-check                 # Run mypy type checks

Linting and formatting
~~~~~~~~~~~~~~~~~~~~~~~~
Lint and format the code with

.. code-block:: console

    $ invoke format
    $ invoke lint

All of this happens when you run ``invoke pre-commit``.

Note
-----

This project is still in the alpha stage and should not be considered production ready.
convbot 0.1.1
pack_name descr 
License: MIT
Requires Python: >=3.7,<4.0

# convbot
[![tests](https://github.com/ffreemt/convbot/actions/workflows/routine-tests.yml/badge.svg)](https://github.com/ffreemt/convbot/actions)[![python](https://img.shields.io/static/v1?label=python+&message=3.7%2B&color=blue)](https://img.shields.io/static/v1?label=python+&message=3.7%2B&color=blue)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/convbot.svg)](https://badge.fury.io/py/convbot)

A conversational bot based on huggingface transformers

## Install it

```shell
pip install convbot
# or poetry add convbot
# pip install git+htts://github.com/ffreemt/convbot
# poetry add git+htts://github.com/ffreemt/convbot

# To upgrade
pip install convbot -U
# or poetry add convbot@latest
```

## Use it
```python
from convbot import convbot

prin(convertbot("How are you?"))
# I am good  # or along that line
```

The async version `aconvbot`, potentialy for `fastapi` or `Nonebot` plugins and such,  is rather artificial since it's based on `ThreadPoolExecutor`. Hence it's not intended for production. You probably should not spawn too many instances.
```python
from convbot import aconvbot

async def afunc(text):
    resp = await aconvbot(text)
    ...
```

Interactive

```bash
python -m convbot
```
## Not tested in Windows 10 and Mac

The module uses pytorch that is installed differently in Windows than in Linux. To run `convbot` in Windows or Mac, you may give it a spin  by cloning the repo (git clone [https://github.com/ffreemt/convbot](https://github.com/ffreemt/convbot)) and installing pytorch manually.
lagcorp 1.0.2
A sample pypi upload.
License: MIT

# lagcorp
It is a sample version to learn pypi

## Installation
```pip install lagcorp```

## How to use it?
```from lagcorp import camper```
Main releases will be given soon
Docs will be updated soon

## License

© 2021 Iamrealbhuvi, Lagcorp

This repository is licensed under the MIT license. See LICENSE for details.
xicor 1.0.1
xi correlation for tied data
License: MIT

xicor
================================
![Tests](https://travis-ci.com/czbiohub/xicor.svg)
[![codecov](https://codecov.io/gh/czbiohub/xicor/branch/master/graph/badge.svg)](https://codecov.io/gh/czbiohub/xicor)

xi correlation method adapted for python

## What is xicor?

xicor is an implementation of the "xi" correlation metric described in Chatterjee, S. (2019, September 22). A new coefficient of correlation. [arxiv.org/abs/1909.10140](https://arxiv.org/abs/1909.10140). It is based off the R code mentioned in the paper: https://statweb.stanford.edu/~souravc/xi.R 

-   Free software: MIT license
-   Documentation: https://czbiohub.github.io/xicor

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

The package can be installed from PyPI using `pip` here:

```
pip install xicor
```

### Developmental install

To install this code and play around with the code locally, clone this github repository and use `pip` to install:

```
git clone https://github.com/czbiohub/xicor.git
cd xicor

# The "." means "install *this*, the folder where I am now"
pip install .
# or you could install using
python setup.py install
```

Usage
-----

```
from xicor.xicor import Xi
xi_obj = Xi([1, 2, 3], [1, 2, 3])
correlation = xi_obj.correlation
pvals = xi_obj.pval_asymptotic(ties=False, nperm=1000)

```
gera2ld.socks 0.5.0
SOCKS client and server based on asyncio
License: MIT
Requires Python: >=3.7,<4.0

# gera2ld.socks

[![PyPI](https://img.shields.io/pypi/v/gera2ld.socks.svg)](https://pypi.org/project/gera2ld.socks/)

This is a SOCKS server and client package built with `asyncio` (requires Python 3.5+).

## Installation

``` sh
$ pip3 install gera2ld.socks
```

## Usage

* SOCKS server

  shell command:
  ``` sh
  # Start a server
  $ python3 -m gera2ld.socks.server -b 127.0.0.1:1080
  ```

  or python script:
  ``` python
  from gera2ld.pyserve import run_forever
  from gera2ld.socks.server import Config, SOCKSServer

  config = Config('127.0.0.1:1080')
  run_forever(SOCKSServer(config).start_server())
  ```

* SOCKS client

  ``` python
  import asyncio
  from gera2ld.socks.client import create_client

  client = create_client('socks5://127.0.0.1:1080')
  loop = asyncio.get_event_loop()
  loop.run_until_complete(client.handle_connect(('www.google.com', 80)))
  client.writer.write(b'...')
  print(loop.run_until_complete(client.reader.read()))
  ```

* SOCKS handler for `urllib`

  ``` python
  from urllib import request
  from gera2ld.socks.client.handler import SOCKSProxyHandler

  handler = SOCKSProxyHandler('socks5://127.0.0.1:1080')

  opener = request.build_opener(handler)
  r = opener.open('https://www.example.com')
  print(r.read().decode())
  ```

* SOCKS client for UDP

  ``` python
  import asyncio
  from gera2ld.socks.client import create_client

  async def main():
      client = create_client('socks5://127.0.0.1:1080')
      udp = await client.handle_udp()
      udp.write_data(b'\xc9\xa7\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x03www\x06google\x03com\x00\x00\xff\x00\x01', ('114.114.114.114', 53))
      print(await udp.results.get())

  loop = asyncio.get_event_loop()
  loop.run_until_complete(main())
  ```