semvec/pypi-packages huggingface dataset:
korsair-api 1.1.5
We provide korsair-api to help you query and retrieve KORSAIR directly on your python code.
Requires Python: >=3
Keywords: korsair_api

# Korsair

### Project description

---

korsair-api is a library package providing APIs to query the KORSAIR database([http://korsair.kisti.re.kr/](http://korsair.kisti.re.kr/)), Korean Reference SNP and Indel Repository. We provide korsair-api to help you query and retrieve KORSAIR directly on your python code. With korsair-api, users can filter the query result based on the variant's information annotated with VEP, such as CADD score. korsair-api communicates with KORSAIR by REST APIs provided by KORSAIR.

### Install and Import

---

Install with pip

```python
python3 -m pip install korsair-api
```

Import korsair

```python
from korsair_api import korsair
```

### **Functions**

---

- get_variant(chro, pos, ref, alt)
- get_variant_id(rsid)
- get_gene(gene_id)
- get_region(chro, start, end)
- extract_data(df, column, num)
- extract_none_rsid(df)
- extract_filter(df, value)

### Simple Example

---

```python
Gene Symbol: TP53 
Variant format: 7-140787574-C-T
dbSNP: rs397507456, Region: 17-7676272-7675994
Ensembl Gene: ENSG00000133703
Ensembl Transcript: ENST00000311936
```

1. get_variant

    ```python
    korsair.get_vaiant('chr7', 140787574, 'C', 'T')
    ```

2. get_variant_id

    ```python
    korsair.get_variant_id('rs397507456')
    ```

3. get_gene

    ```python
    korsair.get_gene('CHD8')
    ```

4. get_region

    ```python
    korsair.get_region(17, 7676272, 7675994)
    ```

5. extract_data(df, column, num)

    ```python
    df = korsair.get_gene_('CHD8')
    extract_data(df, 'cadd_score', 20)
    ```

6. extract_none_rsid(df)

    ```python
    df = korsair.get_gene_('CHD8')
    extract_none_rsid(df)
    ```

7. extract_filter(df, value)

    ```python
    df = korsair.get_gene_('CHD8')
    extract_filter(df, 'pass')
    ```

### Site

---

[KORSAIR](http://korsair.kisti.re.kr/)
printfuk 0.0.3
Completely override your python print function with complete garbage that sometimes looks approximately correct
Requires Python: >=3.6

# printfuk
Completely override your python print function with complete garbage that sometimes looks approximately correct

# How to install
Simply install the package either by downloading this git repository and moving the python source code where it needs to or install it using pip.

## Manual (Not preferred)
Copy the printfuk.py file into the one of the paths listed from the following code:
```
import sys
sys.path
```

## Pip
Make sure pip is installed with `pip --version`.  If you get a version print out, then pip is installed.  Otherwise, [install pip](https://pip.pypa.io/en/stable/installation/). 
Once pip is installed type into a console `pip install printfuk`.  And that's it.

## Importing
All you have to do is write `from printfuk import print` at the top of your python script file, and you will never have to worry about clean, nice looking print messages ever again!

# How to use
The print statement behaves more or less like the default print statement in terms of how you most people use it.  It does not handle the following keywords arguments currently:
 * file
 * flush

This version only prints to sys.stdout and is not bufferred.  However, the other keyword arguments, sep and end are handled as per usual.  This package also handles the standard multiple printing in the form of ```print(a,b,c,...)``` and concatenates them with the separator "sep=separator" before printing just like before.  It also handles the end keyword more or less the same.  However, in order to ensure that a user can't print standard text in the normal behaviour, if the end keyword argument is a string of length greater than 1, the this string will also be messed up in the same manner.

The package also adds more keyword arguments:
 * delay - default: 0.1 / float \[0,inf) - Specifies the time delay at which characters are printed in order in seconds.
 * color - default: 88 / int or integer string - Specifies the ansi-color number to use.
 * startAfter - default: 0 / int - Number of characters to start messing things up after, allowing for part of the string to come out clear.  If this number is greater than the length of the string, the number is reset to zero.
 * maxCharMod - default: 0.5 / float \[0.05,1\] - The maximum number characters we are allowed to modified.  This number will always be at least 1 character.
 * useAnsi - default: False on windows, True otherwise / boolean - On windows systems, many terminals don't handle ansi well.  So by default windows systems will turn off the color and flashing.  Use this to force ansi styling on or off.
 * onlyAfter - defult: False / boolean -- Setting this to true makes it so that only the text after the startAfter index will be modified.
uMQ 1.0.2
A minimal and reliable JSON MQ library!
Requires Python: >=3.6

[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)
[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/aroshanineshat/uMQ)](https://www.tickgit.com/browse?repo=github.com/aroshanineshat/uMQ)

<p align="center">
  <img src="https://github.com/aroshanineshat/uMQ/blob/master/img/logo.png?raw=true" alt="uMQ logo"/>
</p>

# uMQ: A minimal and reliable JSON MQ library!
uMQ is a minimal package derived from my main research project to achieve reliable and fast JSON communication.

## The story:
I'm developing a full-fledged hardware+software product as my research project and I needed to instanciate IPC communication between two(or several) python processes. After looking around, found packages with extreme capabilities. 0MQ(https://zeromq.org/) and RabbitMQ are just a couple of examples. My specific application didn't need to use all those features and I didn't see the necessity of going through their steep lurning curves so I decided to write my own code.

As a hardware engineer, I deal with state machines all the time. I have used state machines in this code to reliably convert bytes to JSON packets.

## Development:
My goal is to keep this packege easy to use. You only need to learn one class and three functions to start a JSON communication. My main focus is currently to fix bugs and improve the performance.

Please feel free to contribute, add features or request them.


# Usage

## Installing

To install the package you can simply do:

    $ pip install uMQ

## Starting the communication

On the server side, run:
    
```python
    uMQIntance = uMQ_Socket()
    uMQIntance.server("localhost", 5008)
    while (True):
        uMQIntance.hold()
        while (uMQIntance.data_available()):
            data = uMQIntance.get_next_pkt()
            ## do something with the data
        uMQIntance.Clear()
```

This will create a uMQ_Socket which is listening on localhost and port 5008.

on the client side do:

```python
    data = {"Sample Data": "DEADBEEF"}
    uMQIntance = uMQ_Socket()
    uMQIntance.connect("localhost", 5008)
    uMQIntance.send_all (json.dumps(data))
```

For the complete test scripts. Refer to the "tests" directory.