[Baypiggies] Python Frameworks

Keith Dart keith at dartworks.biz
Sun Nov 1 09:48:25 CET 2009


=== On Thu, 10/29, Nick Stinemates wrote: ===
> Sounds cool. Where can I get it (and some examples?)
===

Ok, now that Halloween is out of the way I can respond to this. :-)

All of the code is available here:

http://code.google.com/p/pycopia/

Browse it here:

http://code.google.com/p/pycopia/source/browse/


On Linux, make sure you have the prerequisites installed first:

non-python:
libsmi
lighttpd
subversion

Python:
Python development packages (if any)
setuptools
psycopg2
sqlalchemy
Pyro
Pyrex
docutils
pycrypto

Ensure that your account can do sudo.

Then, get it by svn, and do "python setup.py install"

Some examples of the framework usage are also in the repository.

This page:

http://www.pycopia.org/webtools/headers

Is implemented by this code:

http://code.google.com/p/pycopia/source/browse/trunk/WWW/pycopia/webtools/core/views.py

And nothing more (except for config file).

The database has a generic database editor web interface, sort of like
the Django Admin stock application. This is not complete yet, but
usable to some degree. It is implemented in this code:


http://code.google.com/p/pycopia/source/browse/trunk/storage/pycopia/db/webservice.py

Plus the CSS:

http://code.google.com/p/pycopia/source/browse/trunk/storage/media/css/tableedit.css

And the config file:

http://code.google.com/p/pycopia/source/browse/trunk/storage/etc/storage.conf.example

And some Javascript (also not complete):

http://code.google.com/p/pycopia/source/browse/trunk/storage/media/js/db.js


I also wanted to avoid the overhead and user burden of SSH and
self-signed certificates, but also have it somewhat more secure than
non-SSH browser authentication. So the auth module implements CRAM-SHA1
login method. 

Python side:
http://code.google.com/p/pycopia/source/browse/trunk/WWW/pycopia/WWW/middleware/auth.py

Javascript:
http://code.google.com/p/pycopia/source/browse/trunk/WWW/media/js/login.js

CSS:
http://code.google.com/p/pycopia/source/browse/trunk/WWW/media/css/login.css

Please let me know if you have any more questions.


-- Keith Dart



-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Keith Dart <keith at dartworks.biz>
   public key: ID: 19017044
   <http://www.dartworks.biz/>
   =====================================================================


-- 

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Keith Dart <keith at dartworks.biz>
   public key: ID: 19017044
   <http://www.dartworks.biz/>
   =====================================================================


More information about the Baypiggies mailing list