library of useful Python code for scientific + technical applications

see the IPython notebook for an overview of features

License Version Build Tests Doc https://www.openhub.net/accounts/Goulu/widgets/account_tiny?format=gif https://api.coderwall.com/goulu/endorsecount.png
author:Philippe Guglielmetti goulib@goulu.net
installation:“pip install Goulib”


Goulib uses “lazy” requirements. Many modules and functions do not require any other packages, packages listed in requirements.txt are needed only by some classes or functions

Sphinx is needed to generate this documentation, Pythoscope is used to generate nose unit tests


colors color conversion in various colorspaces and palettes
container advanced containers : Record (struct), SortedCollection, and INFINITE Sequence
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
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)
optim various optimization algorithms : knapsack, traveling salesman, simulated annealing, differential evolution
piecewise piecewise-defined functions
plot plotable rich object display on IPython/Jupyter notebooks
polynomial simple manipulation of polynomials (without SimPy)
statemachine state machines with graph representation
stats very basic statistics functions
table “mini pandas.DataFrame”
tests utilities for unit tests (using nose)
workdays WorkCalendar class with datetime operations on working hours, handling holidays


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

Indices and tables