semvec/pypi-packages huggingface dataset:
socipy 0.0.1
A python library to help do reproducible research in social sciences
License: MIT

# Kornect
This library attempts to solve some of the most basic challenges with data science pipelines and analysis. Some of the most repeated functions have been extracted while some other useful tools have been added.

There are four different parts to the library that talks to specific needs while working with data.
1. Data analysis
2. Data processing
3. Data visualisation
4. Utilities


### 1. Data Analysis
**dat2csv:** A simple module to export data into a csv file



### 2. Data processing
**Combine** Takes two dataframes as input and exports a merged dataframe automatically. It figures out a primary key for the dataset and utilised TfIdf to match entities before merging

```
from kornect.pd import rename_pd
df = rename_pd(df,[col1,col2,col3],[new_col1,new_col2,new_col3])
```

**Thin Panda:** A set of commonly used pandas functions such as renaming the columns etc.



**Parallelize:** A simple wrapper that takes a function and list of parameters and runs them in parallel to help you save the time and effort of dealing with more complicated multi-processing tools 




### 3. Data visualisation
**Plot:** Simple functions to quickly export visualised graphs
```
from kornect.plot import sns_cntplt_array
sns_cntplt_array([1,2,2,3,3,4],chart_title='Random chart',export=False) 
```
![Count Plot Chart](examples/kornect_plot.png "Count Plot Output")

**istates:** Takes a dataframe with state names and values and plots a geomap of India for you as a PNG or GIF

**idistrict:** Takes a dataframe with district names and values and plots a geomap of India for you as a PNG or GIF

### 4. Utilities
**Browser:** Creates a selenium browser for you
**Update Progress:** This takes a float as an input and creates a beautiful progress bar and shows you the percentage. No added libraries just pure python implementation.
```
from kornect.utilities import update_progress
import time

for i in range(100):
    update_progress(i/100.0)
    time.sleep(0.01)
```
terminal-animation 0.6
Decorators for terminal-based wait animations.
License: MIT
Keywords: terminal,animation,wait,waiting,status

# terminal_animation

A simple package to make beautiful terminal wait animations

## Install

```bash
pip install terminal-animation
```

## How to use

```python
import animation
import time

# 1 use as class
wait_animation = animation.Wait()
wait_animation.start()
do_something()
wait_animation.end()

#2 use as decorator
@animation.wait()
def do_something_else():
    # long function
    time.sleep(5)
```

## Customization

The package uses a default animation with dots.
It allows users to customize the the animation with different parameters.

The default settings are:

```python
color: white
speed: 0.2
animation = ['    ','.   ','..  ','... ','....']
```

### Color

The color of the characters. Available options are:

- black <span style="color:black"><b>...</b></span>
- red <span style="color:red"><b>...</b></span>
- green <span style="color:green"><b>...</b></span>
- yellow <span style="color:yellow"><b>...</b></span>
- blue <span style="color:blue"><b>...</b></span>
- magenta <span style="color:magenta"><b>...</b></span>
- cyan <span style="color:cyan"><b>...</b></span>
- white <span style="color:white"><b>...</b></span>

### Speed

The speed between, the animation states.

```python
0 < speed < 1
```

### Animation

To use a custom animation, you have to pass a string array containing the seperate steps of the animation.
For example, a simple clock animation would look like this

```python
clock = ['-','\\','|','/']

@animation.wait(clock)
def do_something():
    # long function
```

## Examples

```python
# default animation (white, dots, default speed)
@animation.wait()
def default():
    time.sleep(10)

# clock animation (white, default speed)
clock = ['-','\\','|','/']

@animation.wait(clock)
def do_something():
    time.sleep(10)


# horizontal line animation (blue, default speed)
lines = ['   ','-  ','-- ','---']

@animation.wait(lines, color="blue")
def do_something_else():
    time.sleep(10)


# hashtag animation (cyan, slow)
tags = ["#   ", "##  ", "### ", "####"]

animation = animations.Wait(tags, color="blue", speed=0.5)
animation.start()
time.sleep(4)
animation.stop()
```