semvec/pypi-packages huggingface dataset:
majorly-funny 0.5.0
A majorly funny joke
License: MIT

# majorly_funny
## setup
1. Things to add to .gitignore
```
# Compiled python modules.
*.pyc

# Setuptools distribution folder.
/dist/

# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
```
2. setup env variables
```
TWINE_USERNAME
TWINE_PASSWORD
```

## development mode
```
python setup.py develop
```
or
```
pip install -e .
```

## update published package
after making changes to the project (write new code, add resource files, etc...)
1. remove old packages
```
rm dist/*
```

2. bump the version in setup.py

3. build new package
```
python3 setup.py sdist
```

4. check new package
```
twine check
```

5. test publish new package
```
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose
```

6. publish real package
```
twine upload --repository-url https://upload.pypi.org/legacy/ dist/* --verbose
```
wraplot 0.1.1
A simple python wrapper of matplotlib
License: MIT
Requires Python: >=3.7,<4.0

# wraplot

A simple pythonic matplotlib wrapper: plot, subplot and animate with ease.

## Installation

```bash
git clone git@github.com:LucaMoschella/wraplot.git
cd wraplot
poetry install 
```

## Sample usage

### Spy
```python
spyplot = Spy()
spyobj = Spy.Object(matrix=dense_matrix > 0.5,
                    axis_visibility='off',
                    markersize=4)
o = spyplot(spyobj)
```

![](sample/spyplot.png)

### Imagesc
```python
spyplot = Spy()
spyobj = Spy.Object(matrix=dense_matrix > 0.5,
                    axis_visibility='off',
                    markersize=4)
o = spyplot(spyobj)
```
![](sample/imagescplot.png)

### PlotCloud
```python
cloudplot = PlotCloud2D()
cloudobj = PlotCloud2D.Object(points=points,
                              axis_visibility='off',
                              xlim=[0, 1],
                              ylim=[0, 1],
                              markersize=500)
o = cloudplot(cloudobj, outfile="sample/cloudplot.png")
```
![](sample/cloudplot.png)

### Subplotting
```python
subplotter = Subplotter()
o = subplotter(objs=[[spyobj, cloudobj],
                     [imagescobj, spyobj]],
               plot_functions=[[spyplot, cloudplot],
                               [imagescplot, spyplot]],
               outfile="sample/subplot.png")
```
![](sample/subplot.png)
 
### Animation
```python
animator = Animator()
for i in range(50):
    dense_matrix = dense_matrix @ dense_matrix
    o = imagescplot(Imagesc.Object(matrix=np.random.rand(100, 100).astype(np.float)))
    animator.add_figure(o)
animator.save("sample/video.mp4", fps=15)
```
![](sample/video.gif)


# Live sample

```bash
streamlit run sample/demo
```