ANN: phileas (="Python/Html Integration; Larry's Elegant Alternative scheme") 0.6 available

2011-01-03 Thread Larry Myerscough
Hippo's Techical Systems BV is proud to anounced that release 0.6 of 
'phileas' is available.


Phileas stands for:

   *P*ython *H*TML *I*ntegration - *L*arry's *E*legant *A*lternative
   *S*cheme

(The word 'elegant' is a matter of taste of course but it makes the 
acronym work!)


/Web-site/:
http://larry.myerscough.nl/phileas_project

/Description/:

   Phileas is actually a new take on some old ideas:

   The code in 'html40.py' allows html to be coded in a natural /[dare
   I say'pythonic'?]/ style, as the following fragment illustrates:


   from phileas.html40 import HTML40
   # .
   h = HTML40()
   # .
   h._(h.h1|'Major Heading',
h.p | (
""" closing tags may be implied by use of the '|'
operator. with brackets where appropriate""",
h.a(href=someUrl)|clickableLink,
h.br,
  ),
h.p, "or be coded explicitly like this!",
~h.p,
   )

   As such, it covers similar ground to established packages like
   'HTMLgen' but I believe it is somewhat easier to use and leads to
   clearer code when nested tags and looping constructions are used. In
   fact, my intention is to make the practice of mixing templating
   constructions with python code unnecesary.

   The other files in the phileas package implement an object-oriented
   web-page framework, rather like psp's ('python server pages') but
   styled around the constructs in
   'html40.py'.

/Installation:/

   [You may wish/need to deviate from the followng instructions
   depending on your platform.]

   1.Create a directory 'phileas' in a location of your choice;
   make a note of the parent directory name
   2.Unzip the latest zip-file from
   http://larry.myerscough.nl/phileas_project into this directory.
   3.Create a file 'phileas.pth' in your python site-packages
   directory containg the name of the parent directory (forward slashes
   are ok, even on windows)
   4.Check that the above has worked by doing 'import phileas' 
   from a python shell; no news (no output) is good news.
   5.The rest is up to you; the other stuff on 
   http://larry.myerscough.nl may help you to get  started.


/A final note from the author:/

   I'm sure I need to improve a number of things before I have a
   package worth calling 1.0. I look forward to receiving input from
   the python community which will guide the necessary improvements.

   Larry Myerscough (aka 'papahippo')
   Hippos Technical Systems BV





--
http://mail.python.org/mailman/listinfo/python-announce-list

   Support the Python Software Foundation:
   http://www.python.org/psf/donations/


asciitable 0.5.0

2011-01-03 Thread Tom Aldcroft
I'd like to announce the release of version 0.5.0 of asciitable, an
extensible module for reading and writing ASCII tables.  This release
features a new function to guess the table format from the supported
formats within asciitable.  This function is now called by default
within asciitable.read().

  http://cxc.harvard.edu/contrib/asciitable/#guess-table-format

Other updates include:

- Added support for whitespace (tab or space) delimited tables by
setting
  the delimiter parameter to "\s".
- Improved support for RDB tables by parsing the second line which
specifies
  column type and (optionally) width.  These values are written out if
  available when writing an RDB table.
- More rigorous checking of format compatibility for several table
formats.

Regards,
Tom Aldcroft
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Tiny4py [important update] a little python wrapper to make shorten urls and QRCodes

2011-01-03 Thread Andrea Stagi
Hi, I would announce you my new version of this python wrapper to make
shorten urls and QRCodes, using main used services: goo.gl, bit.ly and
tinyurl. Setup is now avaible!!
Please, visit http://code.google.com/p/tiny4py/
Bests
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[ANN] Python courses 2011

2011-01-03 Thread Mike Müller

Python Courses 2011
===

Our schedule of public Python courses for 2011 is taking shape.
This year we added some new topics such as Cython and XML processing with
Python. If you are interested in other Python topics just let me now.

Also, if you would like to teach about a Python topic you are an expert in,
just drop me a line.


Courses taught in English
-

February 14 - 18, 2011 Python - Software Development Training for
   Cheminformatics (Leipzig, Germany)
May 13 - 15, 2011  Python for Programmers (Leipzig, Germany)
May 16 - 20, 2011  Python Power Course (Leipzig, Germany)
   including:
   * Advanced Python
   * Optimizing Python Programs
   * Python Extensions with Other Languages
   * Fast Code with the Cython Compiler
   * High Performance XML with Python
June 3 - 5, 2011   Introduction to Python and Python for Scientists
   and Engineers (Golden, CO, USA)
August 22 - 24, 2011   Python for Programmers (Leipzig, Germany)
August 25 - 27, 2011   Python for Scientists and Engineers (Leipzig, Germany)

More information:
http://www.python-academy.com/courses/dates.html


Courses taught in German


Jan. 31 - Feb. 2, 2011 Pythonkurs bei Aberla (Zürich, Switzerland)
April 4 - 6, 2011  Python für Programmierer (Leipzig, Germany)
April 7 - 9, 2011  Django Python Web-Framework (Leipzig, Germany)

More information:
http://www.python-academy.de/Kurse/termine.html

--
Mike
mmuel...@python-academy.de
--
http://mail.python.org/mailman/listinfo/python-announce-list

   Support the Python Software Foundation:
   http://www.python.org/psf/donations/


Pygments 1.4 "Unschärfe" released

2011-01-03 Thread Georg Brandl
I've just uploaded the Pygments 1.4 packages to CheeseShop. Pygments is a
generic syntax highlighter written in Python.

Download it from , or look at the
demonstration at .

As always, many thanks go to Tim Hatch for writing or integrating many
of the bug fixes and new features in this release.  Of course, thanks
to all other contributors too!


Enjoy,
Georg



-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


First release of Proteus

2011-01-03 Thread ced
Proteus is a Python library to access Tryton [1] server.  (Tryton is a
three-tiers high-level general purpose application platform)

It can be used through XML-RPC or by using trytond as module and
provides an
Active Record pattern enabling you to interact pythonically with your
Tryton
server.

Its common usages are:
- scripting for automatic actions
- scenario testing
- automatic setup
- basement for a CLI (with iPython, bpython etc.)
- basement for a minimal client

Here is some example usage:

At first you import the necessary functions

>>> from proteus import config, Model, Wizard

Then you can create a database and install the `party` module into it

>>> config = config.set_trytond(':memory:',
database_type='sqlite')
>>> Module = Model.get('ir.module.module')
>>> party, = Module.find([('name', '=', 'party')])
>>> Module.button_install([party.id], config.context)
>>> Wizard('ir.module.module.install_upgrade').execute('start')

We will then create a party, set her name and even her language

>>> Party = Model.get('party.party')
>>> party = Party()
>>> party.name = 'ham'
>>> party.save()
>>> party.name
u'ham'
>>> party.id > 0
True

Notice how addresses (which are a One2Many field for the party model)
are
handled just like Python list objects:

>>> Address = Model.get('party.address')
>>> address = Address()
>>> party.addresses.append(address)
>>> party.save()
>>> party.addresses #doctest: +ELLIPSIS
[proteus.Model.get('party.address')(...)]

More on http://pypi.python.org/pypi/proteus/1.8.0

[1] http://www.tryton.org/
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/