semvec/pypi-packages huggingface dataset:
statadict 1.1.0
Utility for parsing Stata dictionary files for usage with Pandas.
Keywords: pandas,stata,dictionary,parse,import

# statadict
[![pipeline](https://gitlab.com/atudomain/statadict/badges/main/pipeline.svg)](https://gitlab.com/atudomain/statadict/-/tree/main)
[![Documentation Status](https://readthedocs.org/projects/statadict/badge/?version=main)](https://statadict.readthedocs.io/en/main/?badge=main)

Small package that allows reading Stata dictionary files (usually .dct extension).

Extracted information can be used with Pandas when calling read_fwf() function.

# Setup

To install package locally:
```
python3 -m pip install statadict --user
```
Or directly from repository:
```
make all
python3 -m pip install . --user 
```

# Usage

Having Stata dictionary file and related fixed width field csv file without headers, you can now use Pandas to read data:
```
import pandas as pd
from statadict import parse_stata_dict

stata_dict = parse_stata_dict(file="dictionary-file.dct")
data = pd.read_fwf("related-fwf-file.dat", names=stata_dict.names, colspecs=stata_dict.colspecs)
```
processing-py 0.3.7
Graphics Library for Python
Requires Python: >=3.6

# Processing Python     ![](https://processing.org/favicon) 

Processing Python is a powerful and easy-to-use Graphics Library for Python based on [Processing](https://processing.org/).

It allows you to draw shapes in a window with simple functions like **rect()** or **line()**, design animations using the mouse position and much more.


## Installation


Install the processing-py package using **pip**:
```
 pip install processing-py --upgrade
```
The first time you run some code using the library, a script will automatically download the appropriate Processing-py command line tools and Java Runtime Enviromment 8u202 for you system (~120 MB). 

## How to use


```python
from processing_py import *

app = App(600,400) # create window: width, height
app.background(255,0,0) # set background:  red, green, blue
app.redraw() # refresh the window

#app.exit() # close the window

```

## Drawing


```python
from processing_py import *

app = App(600,400) # create window: width, height
app.background(0,0,0) # set background:  red, green, blue
app.fill(255,255,0) # set color for objects: red, green, blue
app.rect(100,100,200,100) # draw a rectangle: x0, y0, size_x, size_y
app.fill(0,0,255) # set color for objects: red, green, blue
app.ellipse(300,200,50,50) # draw a circle: center_x, center_y, size_x, size_y
app.redraw() # refresh the window


```
![Result:](https://i.ibb.co/hypdG2r/Untitled.png)

# Mouse & Animation

```python
from processing_py import *
app = App(600,400) # create window: width, height

while(True):
   app.background(0,0,0) # set background:  red, green, blue
   app.fill(255,255,0) # set color for objects: red, green, blue
   app.ellipse(app.mouseX,app.mouseY,50,50) # draw a circle: center_x, center_y, size_x, size_y
   app.redraw() # refresh the window

```
![Result:](https://i.ibb.co/mHJVcnn/Untitled.png)

## More functions

Explore all the possibilities in the [Processing Reference](https://processing.org/reference/).