goulib

library of useful Python code for scientific + technical applications.

see the IPython notebook for an overview of features

https://badge.fury.io/gh/goulu%2Fgoulib.svg License Version Build Coverage Doc
author:

Philippe Guglielmetti goulib@goulu.net

installation:

“pip install goulib”

distribution:

https://pypi.python.org/pypi/goulib

documentation:

http://goulib.readthedocs.org/en/latest/

examples:
source:

https://github.com/goulu/goulib

Requirements

quite a lot of packages are needed for the full functionality of goulib, but most modules need only a small subset with lazy import when possible.

Sphinx is needed to generate this documentation,

Modules

colors

color conversion in various colorspaces and palettes

containers

advanced containers : - Record (struct) - INFINITE Sequence has been moved to OEIS project

datetime2

additions to datetime standard library

decorators

useful decorators

drawing

Read/Write and handle vector graphics in .dxf, .svg and .pdf formats

expr

simple symbolic math expressions

geom

2D geometry

geom3d

3D geometry

graph

efficient Euclidian Graphs for networkx and related algorithms

image

image processing with PIL's ease and skimage's power

interval

operations on [a..b[ intervals

itertools2

additions to itertools standard library

markup

simple HTML/XML generation (forked from markup)

math2

more math than math standard library, without numpy

motion

motion simulation (kinematics)

notebook

python function to write html texts and values inline within a Notebook

optim

various optimization algorithms : knapsack, traveling salesman, simulated annealing, differential evolution

periodic

periodic functions

piecewise

piecewise-defined functions

plot

plotable rich object display on IPython/Jupyter notebooks

polynomial

simple manipulation of polynomials (without SimPy) see http://docs.sympy.org/dev/modules/polys/reference.html if you need more ...

stats

very basic statistics functions

table

"mini pandas.DataFrame" Table class with Excel + CSV I/O, easy access to columns, HTML output, and much more.

tests

units

workdays

WorkCalendar class with datetime operations on working hours, handling holidays merges and improves BusinessHours and workdays packages

Classes

Inheritance diagram of colors, containers, datetime2, decorators, drawing, expr, geom, geom3d, graph, image, interval, itertools2, math2, motion, notebook, optim, periodic, piecewise, plot, polynomial, stats, table, tests, units, workdays

Indices and tables