https://github.com/syrte/handy
Some handy python functions for statistics, computation and plotting (which are missed in numpy and matplotlib).
https://github.com/syrte/handy
cython matplotlib numpy python scientific-computing
Last synced: 6 months ago
JSON representation
Some handy python functions for statistics, computation and plotting (which are missed in numpy and matplotlib).
- Host: GitHub
- URL: https://github.com/syrte/handy
- Owner: syrte
- Created: 2016-08-03T12:36:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T06:41:24.000Z (over 2 years ago)
- Last Synced: 2025-04-12T14:50:22.002Z (9 months ago)
- Topics: cython, matplotlib, numpy, python, scientific-computing
- Language: Python
- Homepage:
- Size: 256 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Citation: CITATION.cff
Awesome Lists containing this project
README
# handy
Some handy python functions for statistics, computation and plotting.
## Document
See the docstring of each function.
It is pretty good in general.
## Install
Just clone 'handy' to a directory on your computer. I used to use put `handy` at `~/lib/handy`.
```bash
cd ~/lib/
git clone https://github.com/syrte/handy.git
```
Optionally, you can set the enviroment variable, so that Python knows where to find it hereafter.
```
echo "export PYTHONPATH=$HOME/lib:$PYTHONPATH" >> ~/.bashrc
```
I might consider pushing it to pypi.org in the future.
## Usage
If you have set `PYTHONPATH` in .bashrc as above, then you can simply `import handy` in Python
```
import handy
```
Otherwise, you should tell Python where to find it before importing
```
import sys
sys.path.append('path_dir/')
import handy
```
Note that `path_dir` should the the absolute path of the *parent* directory where you placed 'handy',
in my case, it is `/home/username/lib/`.
## Update
```bash
cd ~/lib/handy
git pull
```