PySourceColor is a python source code to HTML/CSS converter.
This module can be used standalone or imported also works from the
commandline.
-h or --help for commandline options
The source code is documented and is meant to be simple enough to
understand and extend if needed.
http://bellsouthpwp.net/m/e/mefjr75/python/PySourceColor.py
# A simple example:
import PySourceColor as psc
import sys
psc.convert(sys.argv[1], show=1)
#Here is an example of a custom scheme:
# Mimic Sourceforge view_cvs style.
from PySourceColor import *
view_cvs_scheme = {
ERRORTOKEN: ('b','#FF8080',''),
DECORATOR_NAME: ('' ,'#000000',''),
DECORATOR: ('' ,'#000000',''),
NAME: ('' ,'#000000',''),
NUMBER: ('' ,'#000000',''),
OPERATOR: ('' ,'#000000',''),
COMMENT: ('i','#b22222',''),
DOUBLECOMMENT: ('i','#b22222',''),
CLASS_NAME: ('' ,'#000000',''),
DEF_NAME: ('b','#0000ff',''),
KEYWORD: ('b','#a020f0',''),
SINGLEQUOTE: ('b','#bc8f8f',''),
SINGLEQUOTE_R: ('b','#bc8f8f',''),
SINGLEQUOTE_U: ('b','#bc8f8f',''),
DOUBLEQUOTE: ('b','#bc8f8f',''),
DOUBLEQUOTE_R: ('b','#bc8f8f',''),
DOUBLEQUOTE_U: ('b','#bc8f8f',''),
TRIPLESINGLEQUOTE: ('b','#bc8f8f',''),
TRIPLESINGLEQUOTE_R: ('b','#bc8f8f',''),
TRIPLESINGLEQUOTE_U: ('b','#bc8f8f',''),
TRIPLEDOUBLEQUOTE: ('b','#bc8f8f',''),
TRIPLEDOUBLEQUOTE_R: ('b','#bc8f8f',''),
TRIPLEDOUBLEQUOTE_U: ('b','#bc8f8f',''),
PAGEBACKGROUND: '#ffffff'
}
if __name__ == '__main__':
import sys
convert(sys.argv[1], colors=view_cvs_scheme, show=1)# HTML output
convert(sys.argv[1], colors=view_cvs_scheme,
markup='css', show=1)# CSS/HTML output
# and finally from a commandline using stdio
c:\>python PySourceColor.py < c:/MyFile.py >> c:/tmp/MyFile.html
More examples are in the source code.
I also have started working on pydoc integration more here:
http://bellsouthpwp.net/m/e/mefjr75
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Roundup is a simple-to-use and -install issue-tracking system with
command-line, web and e-mail interfaces. It is based on the winning design
from Ka-Ping Yee in the Software Carpentry "Track" design competition.
0.7.9 is a bug fix release (with one feature cleaning up and API
inconsistency):
Feature:
- - DateHTMLProperty.field() accepts format string (thanks Wil Cooley)
Fixed:
- - popup listing uses filter args (thanks Marlon van den Berg)
- - fixed editing of message contents
- - loosened the detection of issue cross-references in messages
- - open CSV files in "universal newline" mode
- - s/Modifed/Modified (thanks donfu)
- - applied patch fixing some form handling issues in ZRoundup (thanks Chris
Withers)
- - enforce View Permission when serving file content (sf bug 1050470)
- - don't index common words (sf bug 1046612)
- - set the current username correctly after rego (sf bug 1048398)
- - don't wrap query.item.html in a <span> (thanks Roch'e Compaan)
- - TAL expressions like 'request/show/whatever' return True
if the request does not contain explicit @columns list
- - NumberHTMLProperty should return '' not "None" if not set (thanks
William)
- - ensure multilink ordering in RDBMS backends (thanks Marcus Priesch, sf
bug 950963)
- - always honor indexme property on Strings (sf patch 1063711)
- - make hyperdb value parsing errors readable in mailgw errors
- - make anydbm journal export handle removed properties
- - allow use of XML templates again
If you're upgrading from an older version of Roundup you *must* follow
the "Software Upgrade" guidelines given in the maintenance documentation.
Roundup requires python 2.1.3 or later for correct operation.
To give Roundup a try, just download (see below), unpack and run::
python demo.py
Source and documentation is available at the website:
http://roundup.sourceforge.net/
Release Info (via download page):
http://sourceforge.net/projects/roundup
Mailing lists - the place to ask questions:
http://sourceforge.net/mail/?group_id=31577
About Roundup
=============
Roundup manages a number of issues (with flexible properties such as
"description", "priority", and so on) and provides the ability to:
(a) submit new issues,
(b) find and edit existing issues, and
(c) discuss issues with other participants.
The system will facilitate communication among the participants by managing
discussions and notifying interested parties when issues are edited. One of
the major design goals for Roundup that it be simple to get going. Roundup
is therefore usable "out of the box" with any python 2.1+ installation. It
doesn't even need to be "installed" to be operational, though a
disutils-based install script is provided.
It comes with two issue tracker templates (a classic bug/feature tracker and
a minimal skeleton) and seven database back-ends (anydbm, bsddb, bsddb3,
sqlite, metakit, mysql and postgresql).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBpnfFrGisBEHG6TARAhvbAJ0eCsheUdFdcmL+LDTH4vAqHja9AwCgg2Qu
uSiE0DUDUP9EAgqa+uy+2L4=
=1P77
-----END PGP SIGNATURE-----
PyGUIUnit is a framework created for testing GUIs.
(http://pyguiunit.sourceforge.net/)
It is provided as a python module and currently can be used to test
application that use GUIs created with PyQt More information can be obtained
at Trolltech (the makers of Qt) or at Riverbank Computing (the creators of
the Python bindings).
PyGUIUnit is a GUI unittesting framework written by Fabio Zadrozny and Bruno
da Silva de Oliveira at ESSS (Engineering Simulation and Scientific
Software).
It is built on top of the PyUnit framework, merging seamlessly with it,
allowing developers to write tests for GUIs as he would normally do for any
other piece of code. Its current implementation is based on the PyQt
framework, but extensions could easily be coded for most GUI toolkits (we're
looking for contributors).
Happy Testing,
Fabio Zadrozny
------------------------------------------------------
Software Developer
ESSS - Engineering Simulation and Scientific Software
www.esss.com.br
The SpamBayes team is pleased to announce release 1.0.1 of SpamBayes.
As is now usual, this is both a release of the source code and of an
installation program for all Microsoft Windows users.
This is a bug-fix release that fixes a number of minor issues with the 1.0
release, but includes no new functionality, and is entirely compatible with
the 1.0 release. A 1.1a1 release, including many new features, will
probably be released early in the new year.
Details about the bugs that have been fixed in this release can be found at
https://sourceforge.net/project/shownotes.php?release_id=285346
You can get the release via the 'Download' page at
http://spambayes.org/download.html
Enjoy the new release and your spam-free mailbox :-)
As always, thanks to everyone involved in this release.
Tony.
(on behalf of the SpamBayes team)
--- What is SpamBayes? ---
The SpamBayes project is working on developing a Bayesian (of sorts)
anti-spam filter (in Python), initially based on the work of Paul Graham,
but since modified with ideas from Robinson, Peters, et al.
The project includes a number of different applications, all using the same
core code, ranging from a plug-in for Microsoft Outlook, to a POP3 proxy, to
various command-line tools.
The Windows installation program will install either the Outlook add-in (for
Microsoft Outlook users), or the SpamBayes server program (for all other
POP3 mail client users, including Microsoft Outlook Express). All Windows
users (including existing users of the Outlook add-in) are encouraged to use
the installation program.
If you wish to use the source-code version, you will also need to install
Python - see README.txt in the source tree for more information.
TestGen release 0.04 is now available. It is the first publicly announced
release of this Python package.
TestGen is a Python package for software testing. The package currently
contains targets for unit testing C/C++. Future releases will support
integration testing of C/C++ systems as well as functional testing using
Python targets.
- requires Python2.2 or later (it was developed on Python2.3 with some
testing/verification performed with 2.2)
- Python API for specification of test case setup, inputs and outputs
(Python's power and flexibility can be used to generate test cases)
- generates "C/C++" test code per test specifications, compiles, links,
runs, and evaluates the results
- provides access to C++ protected and private variables and methods
- function/method stubbing (for satisfying external linkages or testing
interfaces to them)
- function/method remove/copy (for isolating code under test
to reduce external linkage requirements)
- "on the fly" code under test manipulation capability (useful for
making temporary code modifications to make it testable)
- convenient "C" random number function library (useful when iterating
the test to get better coverage)
- easy file output comparison and base lining
- test expectations independently verified for successful completion.
- batch facility available for running multiple test scripts (batch
tests may be nested in that they may execute other batch tests)
- GNU and Microsoft compilers supported (customizable for others)
The vast majority of TestGen is released under the GNU General Public
License with the small remainder released under the MIT License.
Downloads are available at the following address under the "Files" link:
https://sourceforge.net/projects/testgen/
Feedback and comments are very welcome. You may contact the author at
dan.gass at gmail.com.
Call for Participation
Lightweight Languages Workshop 2004 (LL4)
=========================================
Saturday, December 4, 2004
Stata Center, MIT, Cambridge, Mass.
http://ll4.csail.mit.edu/
LL4 will be an intense, exciting, one-day forum bringing together the
best programming language implementors and researchers, from both
academia and industry, to exchange ideas and information, to challenge
one another, and to learn from one another.
If you plan to attend, please register via the website as soon as
possible. There is no cost to attend, but we need to know how many
people to expect. Lunch will be provided.
On-site registration will begin at 9am. Talks will run from 10am to
5pm. See the website for schedule details.
Talks
-----
Debugging without Programming
Henry Lieberman, MIT Media Lab
Earl Wagner, Northwestern University
Dynamic Languages on the Common Language Runtime (CLR) - IronPython
Jim Hugunin, Microsoft
Using Scheme to Develop Control Systems for a Large Telescope
Richard A. Cleis
Small programs with Zest and Marmalade
Benjamin Schroeder and John Pierce
Eliza, a small strongly typed functional logic programming language
Matthias Huerlemann
Continuations continued: The REST of the computation
Anton van Straaten, AppSolutions Corp.
Gooze, a stream processing language
Jonathan Bachrach, MIT CSAIL
Frink - A Language for Understanding the Physical World
Alan Eliasen
Thanks
------
Sponsored by Microsoft Research
Hosted by the Software Design Group at MIT CSAIL
I have written a set of wrappers for "bwidget". bwidget is a collection of
enhanced widgets written in pure TCL, from a tweaked Button widget to a
snazzy-looking NoteBook (tabset) widget.
The bwidget wrappers, which include a copy of BWidget 1.7.0, can be
found at
http://tkinter.unpythonic.net/bwidget/
and a copy of the bwidget documentation (written for people writing tcl)
is nearby:
http://tkinter.unpythonic.net/bwidget/BWman/
As the README says:
Please report your experiences, good or bad, on the Tkinter mailing
list
pybwidget is written on Fedora Core 2 with Python 2.3 and Tk 8.4, but may work
on other releases of Python.
I'm aware that Fredrik Lundh has given this a try too
(http://effbot.org/zone/bwidgets.htm) but I never looked at his work
before starting on this, so I don't know how they compare.
CLASSES
BWidget
ArrowButton(BWidget, Tkinter.Button)
Button(BWidget, Tkinter.Button)
ButtonBox(BWidget, _Items, Tkinter.Frame)
Dialog(ButtonBox, Tkinter.BaseWidget, _Frame)
MessageDialog
PasswordDialog
ProgressDialog
SelectColor
SelectFont
Entry(BWidget, Tkinter.Entry)
ComboBox
LabelEntry
SpinBox
Label(BWidget, Tkinter.Label)
LabelFrame(BWidget, _Frame, Tkinter.Widget)
ListBox(BWidget, Tkinter.Widget, _Items)
MainFrame(BWidget, _Frame, Tkinter.Widget)
PagesManager(BWidget, Tkinter.Frame)
NoteBook(PagesManager, _Items)
PanedWindow(BWidget, Tkinter.Frame)
PanelFrame(BWidget, Tkinter.Frame)
ProgressBar(BWidget, Tkinter.Widget)
ScrollView(BWidget, Tkinter.Widget)
ScrollableFrame(BWidget, _Frame, Tkinter.Frame)
ScrolledWindow(BWidget, _Frame, Tkinter.Frame)
Separator(BWidget, Tkinter.Widget)
StatusBar
TitleFrame(BWidget, _Frame, Tkinter.Frame)
Tree(BWidget, Tkinter.Widget, _Items)
PYDESIGN version 0.5 has been released.
It is available from:
http://designtheory.org/software/pydesign/
What is it?
-----------
PYDESIGN is a collection of Python modules and applications to provide a
computational framework for working with combinatorial and statistical
designs.
For more details, see the online documentation and the release notes at
the above URL.
-- ,
Peter Dobcsanyi