== An update to pygments.appspot.comhttp://pygments.appspot.com is an unofficial API for the Pygments
syntax highlighting library, which now runs version 1.5.
It's designed to provide syntax highlighting for web applications that
don't have Python installed.
== Usage
POST to http://pygments.appspot.com with "lang" and "code" parameters
in the body.
You'll receive pygmentized HTML back, which you can store for later
display on your site.
You can style the pygmentized HTML using CSS like this:
http://github.com/trevorturk/pygments/blob/master/default.css
== Ruby Example
$ irb
require 'net/http'
require 'uri'
lang = 'python'
code = 'print "Hello World"'
request = Net::HTTP.post_form(URI.parse('http://
pygments.appspot.com/'),
{'lang'=>lang, 'code'=>code})
puts request.body
== Compatibility
If your client has issues running an updated version of Pygments,
archived releases have been uploaded for your convenience.
Simply point the subdomain to the target version of Pygments, like so:
http://1-2.pygments.appspot.com/ is configured to run Pygments version
1.2.
The following versions are currently supported: 1.2, 1.3, 1.4 and 1.5
== More Information
This site was created so that http://flowcoder.com could run on
http://heroku.com, but please feel free to use it yourself.
If you like, you can fork the code on github and create your own
Google App Engine site, though.
Visit http://pygments.org/ for more information about Pygments.
Visit http://github.com/richleland/pygments-css for more example CSS
files for use with Pygments.
Visit http://github.com/trevorturk/pygments for more information about
this site, and to see the source code.
See also: http://www.hilite.me/ for a similar application with more
options.
== MIT License
Copyright (c) 2009-2012
Trevor Turk
Zachary Scott
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
A new version of the Python module which wraps GnuPG has been
released.
What Changed?
=============
This is a minor bug-fix release. See the project website (
http://code.google.com/p/python-gnupg/ ) for more information.
Summary:
Better support for status messages from GnuPG.
A random data file used in testing is no longer shipped with the
source distribution, but created by the test suite if needed.
The current version passes all tests on Windows (CPython 2.4, 2.5,
2.6, 3.1, 2.7 and Jython 2.5.1) and Ubuntu (CPython 2.4, 2.5, 2.6,
2.7, 3.0, 3.1, 3.2). On Windows, GnuPG 1.4.11 has been used for the
tests.
What Does It Do?
================
The gnupg module allows Python programs to make use of the
functionality provided by the Gnu Privacy Guard (abbreviated GPG or
GnuPG). Using this module, Python programs can encrypt and decrypt
data, digitally sign documents and verify digital signatures, manage
(generate, list and delete) encryption keys, using proven Public Key
Infrastructure (PKI) encryption technology based on OpenPGP.
This module is expected to be used with Python versions >= 2.4, as it
makes use of the subprocess module which appeared in that version of
Python. This module is a newer version derived from earlier work by
Andrew Kuchling, Richard Jones and Steve Traugott.
A test suite using unittest is included with the source distribution.
Simple usage:
>>> import gnupg
>>> gpg = gnupg.GPG(gnupghome='/path/to/keyring/directory')
>>> gpg.list_keys()
[{
...
'fingerprint': 'F819EE7705497D73E3CCEE65197D5DAC68F1AAB2',
'keyid': '197D5DAC68F1AAB2',
'length': '1024',
'type': 'pub',
'uids': ['', 'Gary Gross (A test user) <gary.gr...(a)gamma.com>']},
{
...
'fingerprint': '37F24DD4B918CC264D4F31D60C5FEFA7A921FC4A',
'keyid': '0C5FEFA7A921FC4A',
'length': '1024',
...
'uids': ['', 'Danny Davis (A test user) <danny.da...(a)delta.com>']}]
>>> encrypted = gpg.encrypt("Hello, world!", ['0C5FEFA7A921FC4A'])
>>> str(encrypted)
'-----BEGIN PGP MESSAGE-----\nVersion: GnuPG v1.4.9 (GNU/Linux)\n
\nhQIOA/6NHMDTXUwcEAf
...
-----END PGP MESSAGE-----\n'
>>> decrypted = gpg.decrypt(str(encrypted), passphrase='secret')
>>> str(decrypted)
'Hello, world!'
>>> signed = gpg.sign("Goodbye, world!", passphrase='secret')
>>> verified = gpg.verify(str(signed))
>>> print "Verified" if verified else "Not verified"
'Verified'
For more information, visit http://code.google.com/p/python-gnupg/ -
as always, your feedback is most welcome (especially bug reports,
patches and suggestions for improvement). Enjoy!
Cheers
Vinay Sajip
Red Dove Consultants Ltd.
Leo 4.10 final is now available at: http://sourceforge.net/projects/leo/files/Leo/4.10%20final/
Leo is a text editor, data organizer, project manager and much more.
http://webpages.charter.net/edreamleo/intro.html
Leo 4.10 contains 9 months of intense work on Leo. Several very
important
features are subtle; you could almost call them Easter Eggs, so please
read
the following notes carefully.
The highlights of Leo 4.10:
--------------------------
* Dozens of new and improved features and commands, including...
- Tab completion now shows all @command & @button nodes.
- Leo tabs may be detached from the main window.
- The Open With menu now works.
- The leoInspect module answers questions about Python code.
- Leo can highlight the pane containing the focus.
- The bigdash plugin searches across multiple files.
- Improved abbreviation capabilities.
- Improved handling of URL's.
- Improved editing of non-Leo files.
- Improvements create "weightless" unit testing.
- Improved Leo's home page.
* Easier installation on MacOS.
* Fixed almost 70 bugs.
The Easter Eggs
---------------
1. Tab completion now shows all @command & @button nodes.
Put all your common scripts in @command nodes in myLeoSettings.leo.
Typing <Alt-X>@c<Tab> will remind you of the names of these scripts.
You can execute the scripts by name without the "@command-" prefix.
2. Improved abbreviation capabilities.
Virtually any kind of abbreviation is possible. For example, ~a to ã.
3. Improved handling of URL's.
URL's can be used as links to other Leo outlines.
4 Weightless unit testing.
The mantra is edit, alt-4 (run-marked-unit-tests-externally), edit,
alt-4,... Several seemingly innocuous changes made this work without
"friction". The result is a remarkable increase in productivity.
Links:
------
Leo: http://webpages.charter.net/edreamleo/front.html
Forum: http://groups.google.com/group/leo-editor
Download: http://sourceforge.net/projects/leo/files/Leo/4.10%20final/
Bzr: http://code.launchpad.net/leo-editor/
Quotes: http://webpages.charter.net/edreamleo/testimonials.html
Edward K. Ream
------------------------------------------------------------------------------
Edward K. Ream email: edreamleo(a)gmail.com
Leo: http://webpages.charter.net/edreamleo/front.html
------------------------------------------------------------------------------
Hi,
I've just uploaded pypiserver 0.5.2 to the python package index.
pypiserver is a minimal PyPI compatible server. It can be used to serve
a set of packages and eggs to easy_install or pip.
pypiserver is easy to install (i.e. just easy_install pypiserver). It
doesn't have any external dependencies.
http://pypi.python.org/pypi/pypiserver/ should contain enough
information to easily get you started running your own PyPI server in a
few minutes.
The code is available on github: https://github.com/schmir/pypiserver
Changes in version 0.5.2
-------------------------
- provide a way to get the WSGI app
- improved package name and version guessing
- use case insensitive matching when removing archive suffixes
- fix pytz issue #6
--
Cheers,
Ralf
I am proud to announce the release of Pogo, probably the simplest and
fastest audio player for Linux.
The tarball and an Ubuntu PPA are available at
http://launchpad.net/pogo
What is Pogo?
--------------------
Pogo plays your music. Nothing else. It is both fast and easy-to-use.
The clear interface uses the screen real-estate very efficiently. Other
features include: Fast search on the harddrive and in the playlist,
smart album grouping, cover display, desktop notifications and no music
library.
Pogo is a fork of Decibel Audio Player and supports most common audio
formats. It is written in Python and uses GTK+ and gstreamer.
What's new in
0.6 "I will be a bridge for you" (2012-03-26)
=======================================
* Show search results immediately after they're found for each music
directory
* Search in playlist as well and highlight results
* Add Zeitgeist module that logs played albums
* Select last played track at restart (lp:684383)
* Append tracks to playlist asynchronously (lp:662308)
* Update translations
Cheers,
Jendrik
*JSONBOT 0.84.4 RELEASE* available !
#IRC #XMPP #chatbot #WWW #Python #RSS #relay
get it at: http://code.google.com/p/jsonbot/downloads/list
documentation is at http://jsonbot.org
*About JSONBOT:*
JSONBOT is a chatbot that can take commands and react to events on the network it is connected to (IRC, XMPP, WEB mostely). Push functionality is also provided (think RSS feeds to your IRC channel or XMPP conference). It is possible to program your own plugins to create custom functionality.
*In this release:*
default control character for the bot is now ‘;’ .. if you are missing the ‘!’ cc just run ‘;cc-add !’.
- experimental features:
* FiSH support on IRC, thanks to Frank Spijkerman (Aim)
* sleekxmpp driver for xmpp bots, use ./bin/jsb-sleek
- further changes:
* new boot code - bot now tries to detect changes in the code and recreates the dispatch tables when needed.
* reconnect code should work better, disconnect should now be properly detected
* updated tornado to version 2.2 - needed for websockets new style
* database support for sqlite and mysql is now available, see ~/.jsb/config/mainconfig to enable it.
- still todo:
* yes .. docs still need to be written
* yes .. bugtracker needs attention
If you find any bugs in this release please let me know at bthate(a)gmail.com or in #dunkbots on irc.freenode.net.
HF !
Leo 4.10 b1 is now available at: http://sourceforge.net/projects/leo/files/
Leo is a text editor, data organizer, project manager and much more.
http://webpages.charter.net/edreamleo/intro.html
Leo 4.10 contains 9 months of intense work on Leo. Several very
important
features are subtle; you could almost call them Easter Eggs, so please
read
the following notes carefully.
The highlights of Leo 4.10:
--------------------------
* Dozens of new and improved features and commands, including...
- Tab completion now shows all @command & @button nodes.
- Leo tabs may be detached from the main window.
- The Open With menu now works.
- The leoInspect module answers questions about Python code.
- Leo can highlight the pane containing the focus.
- The bigdash plugin searches across multiple files.
- Improved abbreviation capabilities.
- Improved handling of URL's.
- Improved editing of non-Leo files.
- Improvements create "weightless" unit testing.
* Easier installation on MacOS.
* Fixed almost 70 bugs.
The Easter Eggs
---------------
1. Tab completion now shows all @command & @button nodes.
Put all your common scripts in @command nodes in myLeoSettings.leo.
Typing <Alt-X>@c<Tab> will remind you of the names of these scripts.
You can execute the scripts by name without the "@command-" prefix.
2. Improved abbreviation capabilities.
Virtually any kind of abbreviation is possible. For example, ~a to ã.
3. Improved handling of URL's.
URL's can link to other Leo outlines. Ctrl-Click on nodes or URL's
in body text to activate the URL.
4 Weightless unit testing.
The mantra is edit, alt-4 (run-marked-unit-tests-externally), edit,
alt-4,... Several seemingly innocuous changes made this work without
an
"friction". The result is a remarkable increase in productivity.
Links:
------
Leo: http://webpages.charter.net/edreamleo/front.html
Forum: http://groups.google.com/group/leo-editor
Download: http://sourceforge.net/projects/leo/files/
Bzr: http://code.launchpad.net/leo-editor/
Quotes: http://webpages.charter.net/edreamleo/testimonials.html
Edward K. Ream
------------------------------------------------------------------------------
Edward K. Ream email: edreamleo(a)gmail.com
Leo: http://webpages.charter.net/edreamleo/front.html
------------------------------------------------------------------------------
vulture - Find dead code
========================
vulture finds unused classes, functions and variables in Python code.
This helps you cleanup and find errors in your programs. If you run it
on both your library and test suite you can find untested code.
Due to Python's dynamic nature it is impossible to find all dead code
for a static code analyzer like vulture, because it ignores scopes and
scans only token names. Additionally some dynamic items that are not
explicitly mentioned in the code may be incorrectly reported as dead code.
Download
========
http://pypi.python.org/pypi/vulture
Features
========
- Fast: Uses static code analysis
- Lightweight: Only one module
- Complements pyflakes and has the same output syntax
- Supports Python 2.6, 2.7 and 3.x
News
====
* Add support for python3
* Report unused attributes
* Find tuple assignments in comprehensions
* Scan files given on the command line even if they don't end with .py
Cheers,
Jendrik
pysandbox is a Python sandbox. By default, untrusted code executed in
the sandbox cannot modify the environment (write a file, use print or
import a module). But you can configure the sandbox to choose exactly
which features are allowed or not, e.g. import sys module and read
/etc/issue file.
http://pypi.python.org/pypi/pysandboxhttps://github.com/haypo/pysandbox/
Main changes since pysandbox 1.0.3:
- More modules and functions are allowed: math, random and time
modules, and the compile() builtin function for example
- Drop the timeout feature: it was not effective on CPU intensive
functions implemented in C
- (Read the ChangeLog to see all changes.)
pysandbox has known limitations:
- it is unable to limit memory or CPU
- it does not protect against bugs (e.g. crash) or vulnerabilities in CPython
- dict methods able to modify a dict (e.g. dict.update) are disabled
to protect the sandbox namespace, but dict[key]=value is still
accepted
It is recommanded to run untrusted code in a subprocess to workaround
these limitations. pysandbox doesn't provide an helper yet.
pysandbox is used by an IRC bot (fschfsch) to evaluate a Python
expression. The bot uses fork() and setrlimit() to limit memory and to
implement a timeout.
https://github.com/haypo/pysandbox/wiki/fschfsch
--
The limitation on dict methods is required to deny the modification of
the __builtins__ dictionary. I proposed the PEP 416 (frozendict) but
Guido van Rossum is going to reject it. I don't see how to fix this
limitation without modifying CPython.
http://www.python.org/dev/peps/pep-0416/
Victor