From: lkcl(a)lkcl.net
To: python-list(a)python.org
i've been kindly sponsored by http://www.samurai.com.br to create
direct python bindings to webkit's DOM:
http://www.gnu.org/software/pythonwebkit/
the significance of this project is that it makes python a peer of
javascript when it comes to manipulating HTML through DOM functions
(including gaining access to the full features of HTML5 for example).
anything that can be done with javascript (such as
getElementsByTagName, appendChild etc.) can be done with python, in a
declarative programming style (not as < script language="python" >).
that means that the powerful features of HTML5 that were formerly
pretty much exclusively available to javascript programmers are now
equally available to python programmers, and webkit is known as being
especially suited to embedded environments.
anyone who has been following pywebkitgtk or pyjamas development will
be aware that the previous python webkit DOM bindings, written in
2008, were based on top of glib/gobject bindings and used
python-gobject to autogenerate them. whilst this approach worked, its
future was made slightly awkward when the development of the gobject
bindings were kindly taken over by free software developers who have
been working hard to incorporate the full features of the original
gobject bindings into webkit for almost a year, now. the pythonwebkit
project therefore begins again, with *direct* access to webkit DOM
functions and properties instead of going via an intermediate layer
such as gobject.
the source code for the pywebkitgtk project has been directly
incorporated into the pythonwebkit project, making it a much simpler
prospect to build. that does not mean that it's easy - just easier!
for build instructions, please read the instructions at
http://www.gnu.org/software/pythonwebkit/ which recommend reading of
the original webkit build instructions on the original webkit
developer web site, with specific advice on the additional python
requirements. (please note that the ongoing development focus is on
linux and embedded linux systems: windows and macosx developers are
very much "on their own" as far as build procedures are concerned, but
macosx developers are best advised to start from darwinports and to go
from there. windows developers: good luck. send us a postcard from
whatever loony bin you end up in, if they allow you access to
crayons).
for those people interested in pyjamas (http://pyjs.org), pyjamas
desktop has already been updated accordingly, and is already useable
with pywebkit.
please note that this is a very early announcement, with quite a lot
still left to do, but whilst there are known issues, the project is
definitely at the "working" state and so is worthy of an announcement
if anyone is interested in testing and contributing or just seeing
what the fuss is about.
l.
p.s. it's worthwhile pointing out, for anyone who is interested, that
if you wish to access a browser engine's DOM model on windows, it is
much easier to use python-COM bindings to MSHTML than it is to try
building webkit with python bindings on windows - but should you ever
succeed in building pythonwebkit on windows, please do get in touch.
if however you See The Light and realise in good time that it's a
train coming straight at you, and decide to use python COM instead, i
recommend looking at pyjd/mshtml.py and associated code in the pyjamas
project - http://pyjs.org - and beginning from there. compiling
webkit (and xulrunner) on windows really is that bad, and
incorporating python into the mix really is likely to push your sanity
off the edge of a cliff. if you succeed however, there are quite a
lot of people who will be extremely grateful for your sacrifice, and
who will come visit you and bring you flowers and children's colouring
picture books on a regular basis.
Finally, a new release of rst2pdf!
You can get it at its site: http://rst2pdf.googlecode.com
rst2pdf is a tool to convert restructured text (a light, cool markup language)
to PDF using reportlab instead of LaTeX.
It has been used for many things, from books, to magazines, to brochures, to
manuals, to websites and has lots of features:
* Font embedding (TTF or Type1 fonts)
* Cascading Stylesheets
* Extremely flexible plugin architecture (you can do things
like render the headings from arbitrary SVG files!)
* Sphinx integration.
* Configurable page layouts
* Custom cover pages via templates
* And much, much more...
The biggest change in 0.16 is surely the improved support for Sphinx 1.0.x so
if you are using Sphinx, you really want this version.
Also, it has a ton of bugfixes, and a few minor but useful new features.
Here's the whole changelog if you don't believe me:
* Fixed Issue 343: Plugged memory leak in the RSON parser.
* Fix for Issue 287: there is still a corner case if you have two sections
with the same title, at the same level, in the same page, in different files
where the links will break.
* Fixed Issue 367: german-localized dates are MM. DD. YYYY so when used in
sphinx's
template cover they appeared weird, like a list item. Fixed with a minor
workaround in
the template.
* Fixed Issue 366: links to "#" make no sense on a PDF file
* Made definitions from definition lists more stylable.
* Moved definition lists to SplitTables, so you can have very long
definitions.
* Fixed Issue 318: Implemented Domain specific indexes for Sphinx 1.0.x
* Fixed Index links when using Sphinx/pdfbuilder.
* Fixed Issue 360: Set literal.wordWrap to None by default so it doesn't
inherit
wordWrap CJK when you use the otherwise correct japanese settings. In any
case,
literal blocks are not supposed to wrap at all.
* Switched pdfbuilder to use SplitTables by default (it made no sense not to
do it)
* Fixed Issue 365: some TTF fonts don't validate but they work anyway.
* Set a valid default baseurl for Sphinx (makes it much faster!)
* New feature: --use-numbered-links to show section numbers in links to
sections, like "See section 2.3 Termination"
* Added stylesheets for landscape paper sizes (i.e: a4-landscape.style)
* Fixed Issue 364: Some options not respected when passed in per-doc options
in sphinx.
* Fixed Issue 361: multiple linebreaks in line blocks were collapsed.
* Fixed Issue 363: strange characters in some cases in math directive.
* Fixed Issue 362: Smarter auto-enclosing of equations in $...$
* Fixed Issue 358: --real--footnotes defaults to False, but help text
indicates default is True
* Fixed Issue 359: Wrong --fit-background-mode help string
* Fixed Issue 356: missing cells if a cell spawns rows and columns.
* Fixed Issue 349: Work correctly with languages that are available in form
aa_bb and not aa (example: zh_cn)
* Fixed Issue 345: give file/line info when there is an error in a raw PDF
directive.
* Fixed Issue 336: JPEG images should work even without PIL (but give a
warning because
sizes will probably be wrong)
* Fixed Issue 351: footnote/citation references were generated incorrectly,
which
caused problems if there was a citation with the same text as a heading.
* Fixed Issue 353: better handling of graphviz, so that it works without
vectorpdf
but gives a warning about it.
* Fixed Issue 354: make todo_node from sphinx customizable.
* Fixed bug where nested lists broke page layout if the page was small.
* Smarter --inline-links option
* New extension: fancytitles, see
http://lateral.netmanagers.com.ar/weblog/posts/BB906.html
* New feature: tab-width option in code-block directive (defaults to 8).
* Fixed Issue 340: endnotes/footnotes were not styled.
* Fixed Issue 339: class names using _ were not usable.
* Fixed Issue 335: ugly crash when using images in some
specific places (looks like a reportlab bug)
* Fixed Issue 329: make the figure alignment/class attributes
work more like LaTeX than HTML.
* Fixed Issue 328: list item styles were being ignored.
* Fixed Issue 186: new --use-floating-images makes images with
:align: set work like in HTML, with the next flowable flowing
beside it.
* Fixed Issue 307: header/footer from stylesheet now supports inline
rest markup and substitutions defined in the main document.
* New pdf_toc_depth option for Sphinx/pdfbuilder
* New pdf_use_toc option for Sphinx/pdfbuilder
* Fixed Issue 308: compatibility with reportlab from SVN
* Fixed Issue 323: errors in the config.sample made it work weird.
* Fixed Issue 322: Image substitutions didn't work in document title.
* Implemented Issue 321: underline and strikethrough available
in stylesheet.
* Fixed Issue 317: Ugly error message when file does not exist
We're pleased to announce version 2.5 of the ReportLab open
source PDF toolkit, now available for download here:
http://www.reportlab.com/software/opensource/rl-toolkit/download/?13
The ReportLab Toolkit is a library for programmatically creating
documents in PDF format. It's free, open-source software written in
Python, and released under a BSD type license.
Thanks,
-The ReportLab Team
<P><A HREF="http://www.reportlab.com/software/opensource/rl-toolkit/
download/?13">ReportLab Toolkit v2.5</A> - The Open Source Library
for
creating PDF Documents. (5-Oct-2010)</P>
Hi All,
Pydev 1.6.3 has been released
Details on Pydev: http://pydev.org
Details on its development: http://pydev.blogspot.com
Release Highlights:
-------------------------------
* Improved editor preferences page when using Aptana themes
* Icons updated to work better with dark backgrounds
* Handling code-completion for keywords (e.g.: a method definition
with a parameter 'call' will have a 'call=' completion on the caller)
* Showing a better tooltip for parameters
* No longer marking the Django templates editor as the default editor
for css nor html (it can be restored at window > preferences > general
> editors > file associations)
* **Globals Browser**
* Improved message in globals browser to better explan its features:
* Exact match with a whitespace in the end
* CamelCase matching (so, entering only TC would be enough to
find a class named TestCase)
* Dotted names may be used to filter through the packages (so,
dj.ut.TC would find a TestCase class defined in the django.utils
package)
* Fix: When a space is added in the end, an exact match is done
* Fix: No longer restoring items that don't exist anymore
* Bug Fixes
* Fixed issue on dict and set comprehension code analysis
* Syntax errors on hover in a debug session not shown
* Block preferences page validation before save
* Improved django wizard configuration a bit to cover cases where
the user does not have django installed or tries to add 'django' as
the project name
* The example code in the pydev editor preferences is no longer editable
* 2to3 only added in the context menu of projects with the pydev nature
* If a debug session is terminated, no message saying that the
variable can't be resolved in the hover is shown if the debug target
is still selected
* Fixed path issues in sqlite3 path in django project creation
* Fixed issue where quotes could end up in the execfile when they
should not be there
* Fixed issue where shift right did not work properly because the
indent prefixes were not properly set when the tab preference changed
What is PyDev?
---------------------------
PyDev is a plugin that enables users to use Eclipse for Python, Jython
and IronPython development -- making Eclipse a first class Python IDE
-- It comes with many goodies such as code completion, syntax
highlighting, syntax analysis, refactor, debug and many others.
Cheers,
--
Fabio Zadrozny
------------------------------------------------------
Software Developer
Aptana
http://aptana.com/
Pydev - Python Development Environment for Eclipse
http://pydev.orghttp://pydev.blogspot.com
BleachBit (a pure PyGTK app) deletes traces of online Internet usage
and recovers wasted disk space.
Highlight of changes since 0.8.0:
* Delete DOM Storage in Firefox 3, Google Chrome, Opera, Internet
Explorer, Safari
* Delete evercookie tracking
* Delete more localizations (16MB more on Ubuntu 10.10)
* Clean VLC
* Vacuum Safari
* Add .deb package for Ubuntu 10.10 Maverick Meerkat.
* Add Traditional Chinese
* Update 24 other translations
Detailed release notes
http://bleachbit.sourceforge.net/news/bleachbit-081-released
Download
http://bleachbit.sourceforge.net/download
PyCon 2011 will be held March 9th through the 17th, 2011 in Atlanta,
Georgia. (Home of some of the best southern food you can possibly find on
Earth!) The PyCon conference days will be March 11-13, preceded by two
tutorial days (March 9-10), and followed by four days of development sprints
(March 14-17).
The call for tutorial proposals is open until November 1 and we want to
encourage you to submit a class idea! Teachers are paid for their efforts
and it's a great opportunity for you to teach to a room full of people who
have paid to hear what you have to say?
Tutorials are 3-hour long classes (with a refreshment break) taught be some
of the leading minds in the Python community. Classes range from beginner
(Introduction to Python) to advanced (OOP, Data Storage and Optimization)
and everything in between. If you don't feel up to teaching a class, you
can always encourage your favorite mentor to teach it! Anything Python may
be proposed for a class and a variety of topics is always presented but we
can't offer what isn't proposed!
Get more information at http://us.pycon.org/2011/about/ under the "Tutorial
Days" section. Submit your idea on the site under the "Speakers" tab.
That's it! You could be teaching a class at PyCon next March. See you in
Atlanta!
python-graph
release 1.8.0
http://code.google.com/p/python-graph/
------------------------------------------------------------------------
python-graph is a library for working with graphs in Python.
This software provides a suitable data structure for representing
graphs and a whole set of important algorithms.
The code is appropriately documented and API reference is generated
automatically by epydoc.
Provided features and algorithms:
* Support for directed, undirected, weighted and non-weighted graphs
* Support for hypergraphs
* Canonical operations
* XML import and export
* DOT-Language output (for usage with Graphviz)
* Random graph generation
* Accessibility (transitive closure)
* Breadth-first search
* Critical path algorithm
* Cut-vertex and cut-edge identification
* Cycle detection
* Depth-first search
* Gomory-Hu cut-tree algorithm
* Heuristic search (A`*` algorithm)
* Identification of connected components
* Maximum-flow / Minimum-cut (Edmonds-Karp algorithm)
* Minimum spanning tree (Prim's algorithm)
* Mutual-accessibility (strongly connected components)
* Pagerank algorithm
* Shortest path search (Dijkstra's algorithm)
* Shortest path search (Bellman-Ford algorithm)
* Topological sorting
* Transitive edge identification
This release introduces the Pagerank algorithm and Gomory-Hu cut-tree
algorithm.
Download: http://code.google.com/p/python-graph/downloads/list
(tar.bz2, zip and sdist packages are available.)
Installing:
If you have easy_install on your system, you can simply run:
# easy_install python-graph-core
And, optionally, for Dot-Language support:
# easy_install python-graph-dot
====================================================
Announcing python-blosc 1.0.1
A Python wrapper for the Blosc compression library
====================================================
What is it?
===========
Blosc (http://blosc.pytables.org) is a high performance compressor
optimized for binary data. It has been designed to transmit data to
the processor cache faster than the traditional, non-compressed,
direct memory fetch approach via a memcpy() OS call.
Blosc works well for compressing numerical arrays that contains data
with relatively low entropy, like sparse data, time series, grids with
regular-spaced values, etc.
This is a Python package that wraps it.
What is new?
============
Everything. This is the first public version of the Python wrapper
for Blosc (1.1.1). It supports Python 2.6, 2.7 and 3.1.
The API is very simple and it loosely follows that of the zlib module.
There are two basic functions, `compress()` and `decompress()`, as
well as two additional calls specific for compressing NumPy arrays,
namely `pack_array()` and `unpack_array`. There are also utilities
for changing dynamically the number of threads used or to release
resources when you are not going to need blosc for a while.
Basic Usage
===========
>>> import numpy as np
>>> a = np.linspace(0, 100, 1e7)
>>> bytes_array = a.tostring()
>>> import blosc
>>> bpacked = blosc.compress(bytes_array, typesize=8)
>>> bytes_array2 = blosc.decompress(bpacked)
>>> print(bytes_array == bytes_array2)
True
More examples are available on python-blosc wiki page:
http://github.com/FrancescAlted/python-blosc/wiki
Documentation
=============
Please refer to docstrings. Start by the main package:
>>> import blosc
>>> help(blosc)
and ask for more docstrings in the referenced functions.
Download sources
================
Go to:
http://github.com/FrancescAlted/python-blosc
and download the most recent release from here.
Blosc is distributed using the MIT license, see LICENSES/BLOSC.txt for
details.
Mailing list
============
There is an official mailing list for Blosc at:
blosc(a)googlegroups.com
http://groups.google.es/group/blosc
----
**Enjoy data!**
--
Francesc Alted
Hello,
Itaapy's team is proud to announce the 1.1 release of itws (1.1.1 actually due to small problems with 1.1).
Itws is a complete solution to create a website, an extranet or intranet. It features RSS integration, composite pages, tags cloud, twitter stream, configurable menu, etc...
Noticeable changes for this release are :
- support for identi.ca activity streams (along with twitter already present)
- support for OpenStreetMaps (along with Google Maps already present)
- improvements on external editor (now working in true REST mode) with installable executable for windows
- bulk content creation by zip / tar archive upload and decompression
- new layout for news and tags list
and also :
- example online css to help simple customizations
- lot of small usability improvements
- small corrections, noticeably on RSS feeds
itws is based on ikaaro, an Open Source Python CMS.
It may retain your attention for :
- REST architecture
- object database backed on the file systems with files in native or
standard formats
- Git for all content versionning
Project page : http://hforge.org/itws
Product page : http://www.itaapy.com/nos-solutions/itws-gestion-de-contenu-open-source?lan…
Full announcement (french) : http://www.itaapy.com/news/itws-1.1-disponibl