semvec/pypi-packages huggingface dataset:
pydownsampler 1.0
A Python package for downsampling sequence alignment files
License: MIT

pydownsampler
=============

A Python package for downsampling sequence alignment files.

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

pydownsampler is available through `pypi`_. To install, type:

.. code:: bash

   pip install pydownsampler

Usage
-----

.. code:: bash

   $ pydownsampler (<file>) [-d <dcov>]
   $ pydownsampler (<file>) [-d <dcov>] [-o <output>]
   $ pydownsampler (<file>) [-c]
   $ pydownsampler [-h] | [--help]
   $ pydownsampler [-v] [--version]

Arguments and Options
---------------------

+------------------------+--------------------------------------------+
| **Argument/ Option**   | **Description**                            |
+========================+============================================+
| ``-h, --help``         | Show help message to screen.               |
+------------------------+--------------------------------------------+
| ``-v, --version``      | Show version.                              |
+------------------------+--------------------------------------------+
| ``<file>``             | Input BAM/CRAM/SAM file                    |
+------------------------+--------------------------------------------+
| ``-d, --downcoverage`` | The coverage you want to downsample to     |
|                        | (Required argument)                        |
+------------------------+--------------------------------------------+
| ``-o, --output``       | Output filename prefix (Optional)          |
+------------------------+--------------------------------------------+
| ``-c, --coverage``     | Check file coverage                        |
+------------------------+--------------------------------------------+

Examples
--------

.. code:: bash

   # option 1 (default):
   $ pydownsampler input.bam -d 10
   In the example above, the file 'input.bam' will be downsampled to 10X coverage. The output filename will be 'input.Downsampled10X.bam'.

   # option 2 (optional):
   $ pydownsampler input.bam -d 10 -o downsampled

   # check coverage of a BAM/CRAM/SAM file
   $ pydownsampler input.bam -c

Authors
-------

`Lindokuhle Nkambule`_

`Scott Hazelhurst`_

License
-------

pydownsampler is generously distributed under The MIT License

.. _pypi: https://pypi.org/project/pydownsampler
.. _Lindokuhle Nkambule: https://github.com/LindoNkambule
.. _Scott Hazelhurst: https://github.com/shaze
ansible2puml 0.3.1
Create an PlantUML Activity Diagram from Playbooks or Roles trough Python.
License: MIT

# ansible2puml

![tests](https://github.com/ProfileID/ansible2puml/workflows/tests/badge.svg)
[![PyPI package](https://img.shields.io/pypi/v/ansible2puml)](https://pypi.python.org/pypi/ansible2puml/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/ansible2puml.svg)](https://pypi.python.org/pypi/ansible2puml/)
[![PyPI license](https://img.shields.io/pypi/l/ansible2puml.svg)](https://pypi.python.org/pypi/ansible2puml/)

## About ansible2puml
Create an PlantUML activity diagram from playbooks and roles trough python.

A .puml file with the PlantUML syntax is generated and a link to display the diagram as PNG is generated.

## Requirements
Python version >3.6

## Install package
Install via pypi
```bash
pip install ansible2puml
```

Install via git
```bash
pip install git+https://github.com/ProfileID/ansible2puml
```

## How to
### Playbook
```
ansible2puml --source play.yml --destination play.puml 
```

## Example
[![Example](./example/example-diagram.png)](./example/example-playbook.yml)  
**Source: [example-playbook.yml](./example/example-playbook.yml)**
aiotrivia 2.0.1
Asynchronous API Wrapper for the OpenTDB Api. (https://opentdb.com/)
License: MIT
Requires Python: >=3.5.3
Keywords: trivia,api,trivia_api,opentdb

# aiotrivia
Async Wrapper for the OpenTDB API

### Installation
```sh
$ pip install git+https://github.com/niztg/aiotrivia
```

### Example Usage
```py
import asyncio
import aiotrivia

client = aiotrivia.TriviaClient()

async def main():
    data = await client.get_specific_question(category=20)
    for i in data:
        print('%s | %s' % (i.question, i.responses))
    await client.close() # after you're done with everything

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

#### Returns:
`Which figure from Greek mythology traveled to the underworld to return his wife Eurydice to the land of the living? | ['Daedalus', 'Hercules', 'Perseus', 'Orpheus']`

### discord.py command usage

```py
from aiotrivia import TriviaClient, AiotriviaException
from discord.ext import commands
import asyncio
import random

class TriviaCog(commands.Cog):
    def __init__(self, bot):
        self.bot = bot
        self.trivia = TriviaClient()
        
    @commands.command()
    async def trivia(self, ctx, difficulty):
        try:
            question = await self.trivia.get_random_question(difficulty)
        except AiotriviaException as error:
            return await ctx.send(f"{error.__class__.__name__}: {error}")
        answers = question.responses
        random.shuffle(answers)
        final_answers = '\n'.join([f"{index}. {value}" for index, value in enumerate(answers, 1)])
        message = await ctx.send(f"**{question.question}**\n{final_answers}\n{question.type.capitalize()} Question about {question.category}")
        answer = answers.index(question.answer)+1
        await self.trivia.close() # cleaning up
        try:
            while True:
                msg = await self.client.wait_for('message', timeout=15, check=lambda m: m.id != message.id)
                if str(answer) in msg.content:
                    return await ctx.send(f"{answer} was correct! ({question.answer})")
        except asyncio.TimeoutError:
            await ctx.send(f"The correct answer was {question.answer}")

def setup(bot):
    bot.add_cog(TriviaCog(bot))
```
#### <a href=https://github.com/niztg/aiotrivia/wiki>For more info, read the documentation</a>
#### <a href=https://cybertron-5k.netlify.app/server>Or join the discord server</a>
vkquick 0.2.7
Package for quick writing vk chat bots
License: MIT
Requires Python: >=3.8,<4.0
Keywords: vk,async,bots,quick,api

> __vkquick__ — Это асинхронный фреймворк для разработки _легкоподдерживаемых_ чат-ботов ВКонтакте на Python

## Почему vkquick?
Основная задача vkquick — обеспечить разработчика бота максимально _автоматизированным_ функционалом настолько, насколько это возможно, при этом оставляя возможность полного управления. Терминальный инструмент, позволяющий создавать команду буквально в одну строку и автоматически перезагружающий бота при изменениях в коде для комфортной разработки наряду с красочным режимом дебага, асинхронный код, выглядящий как синхронный и минималистичный синтаксис распарсинга команд вместо 1000 if, а также вагон полезных инструментов для _частовстречающихся_ кейсов позволяют практически не задумываться над _излишней_ работой с API и прочей рутинной работой, а сконцентрировать внимание именно на построении логики обработки.

Для обычного бота, отвечающего на ваше сообщение, Вам нужно написать ровно 0 строк кода на Python. Не верите? Убедитесь в этом сами [на сайте нашей документации](https://vkquick.github.io/installation/)!