Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

asciiporn is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
2009.05.01 Failed View build log
Windows (64-bit)
2009.05.01 Failed View build log
Mac OS X (10.5+)
2009.05.01 Failed View build log
Linux (32-bit)
2009.05.01 Failed View build log
Linux (64-bit)
2009.05.01 Failed View build log
 
Links
Author
License
gpl
Lastest release
version 2009.05.01 on Jan 5th, 2011
################################################################################
originally ascii art graphics library for ssh terminal,
but expanded to include scientific visualization.

this package has 2 main files:
asciiporn/__init__.py ## initialize custom import hook to load main.py
asciiporn/main.py     ## contains EVERYTHING

how to enable 256 color in putty:  http://www.emacswiki.org/emacs/PuTTY#toc2
how to enable 256 color in xterm:  http://www.frexx.de/xterm-256-notes/
how to enable 256 color in screen: http://www.frexx.de/xterm-256-notes/

AUTHOR:
kai zhu
kaizhu256@gmail.com

REQUIREMENTS:
posix os
Python 2.6
Python Imaging Library  http://www.pythonware.com/products/pil
numpy                   http://www.scipy.org/Download

INSTALL:
python setup.py build
python setup.py install
python setup.py dev --quicktest

USAGE:
$ python setup.py dev --quicktest
render color image in shell terminal &
plot scientific functions as well



>>> from asciiporn import *

>>> print( img2txt("filename") )
display color image from gif, jpg, bmp, ... to screen.
only works if u have Python Imaging Library installed

>>> help(img2txt.load)
display img2txt options



>>> plot(ft = lambda t: cos(t), tmin = 0, tmax = 16)
plot cos(t) for t = [0, 16]

>>> plot(ft = [cos, sin], tmin = 0, tmax = 16)
plot 2 functions, cos & sin

>>> plot( y = [1.5, 2.5, 3.5], t = [0, 1, 2] )
plot datapoints (y, t) = (1.5, 0), (2.5, 1), (3.5, 2)

>>> f = lambda t, z: sin( t*(2*pi + z) ) * (0.5 + z) - z
>>> plot3d(ftz = ftz, tmin = 0, tmax = 16, zmin = 0, zmax = 1)
plot f in 3d using specified ranges for t & z

>>> help(plot.__call__)
>>> help(dataZYT.__new__)
display plot options



>>> fitpoly.test()
test asciiporn's polynomial fitting routine
peruse fitpoly.test in asciiporn/main.py for usage

>>> fft2d.test()
test asciiporn's cosine fitting routine
peruse fft2d.test in asciiporn/main.py for usage

################################################################################
RECENT CHANGELOG:
20090407
fixed installation bugs
added retro-gif feature
20090328
removed py3to2 requirement
update documentation
20090103
rewrote 3d plotter
fixed more 64bit issues
20081123
fixed bug where 64bit gets truncated to 32 on 32bit machine
256 color support
20081119
fixed bugs in setup.py

Subscribe to package updates

Last updated Jan 5th, 2011

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.