473,705 Members | 6,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Literate programs in Python

Does anyone know of any (preferably largish) examples of literate
programs written using Python? Alternatively, does anyone know of any
literate programming tools which support Python well? (I am aware of
Leo and I've been to literateprogram ming.com, but any additional
pointers would be much appreciated!)

Thanks,

Paul
Jun 27 '08 #1
6 1279
On May 13, 10:28*am, Paul Miller <neokos...@gmai l.comwrote:
Does anyone know of any (preferably largish) examples of literate
programs written using Python? *Alternatively, does anyone know of any
literate programming tools which support Python well? *(I am aware of
Leo and I've been to literateprogram ming.com, but any additional
pointers would be much appreciated!)

Thanks,

Paul
Check out Zope, bittorrent, or Editra. You should just go to
SourceForge and do a search for projects done in Python.

Mike
Jun 27 '08 #2
On May 13, 1:44 pm, Mike Driscoll <kyoso...@gmail .comwrote:
On May 13, 10:28 am, Paul Miller <neokos...@gmai l.comwrote:
Does anyone know of any (preferably largish) examples of literate
programs written using Python? Alternatively, does anyone know of any
literate programming tools which support Python well? (I am aware of
Leo and I've been to literateprogram ming.com, but any additional
pointers would be much appreciated!)

Check out Zope, bittorrent, or Editra. You should just go to
SourceForge and do a search for projects done in Python.

Those aren't examples of literate programming AFAIK. (Check Wikipedia
for "literate programming" if you're still confused.)

It occurs to me that one could get pretty close to literate
programming with Pure Python (if they stick to regular function calls
and not expect code weaving, which would need a preprocessor). A
fairly simple script could parse docstrings and Python source files
to produce a document from the source. In fact, there are tools that
can do that sort of thing already, but I doubt they output documents
according to literate programming expectations. Don't know of any
tools specifically for literate programming.
Carl Banks
Jun 27 '08 #3
On May 13, 1:47*pm, Carl Banks <pavlovevide... @gmail.comwrote :
On May 13, 1:44 pm, Mike Driscoll <kyoso...@gmail .comwrote:
On May 13, 10:28 am, Paul Miller <neokos...@gmai l.comwrote:
Does anyone know of any (preferably largish) examples of literate
programs written using Python? *Alternatively, does anyone know of any
literate programming tools which support Python well? *(I am aware of
Leo and I've been to literateprogram ming.com, but any additional
pointers would be much appreciated!)
Check out Zope, bittorrent, or Editra. You should just go to
SourceForge and do a search for projects done in Python.

Those aren't examples of literate programming AFAIK. *(Check Wikipedia
for "literate programming" if you're still confused.)

It occurs to me that one could get pretty close to literate
programming with Pure Python (if they stick to regular function calls
and not expect code weaving, which would need a preprocessor). *A
fairly simple script could *parse docstrings and Python source files
to produce a document from the source. *In fact, there are tools that
can do that sort of thing already, but I doubt they output documents
according to literate programming expectations. *Don't know of any
tools specifically for literate programming.

Carl Banks
Sorry...I took the OP's meaning literally...

Mike
Jun 27 '08 #4
Mike Driscoll skrev:
On May 13, 10:28 am, Paul Miller <neokos...@gmai l.comwrote:
>Does anyone know of any (preferably largish) examples of literate
programs written using Python? Alternatively, does anyone know of any
literate programming tools which support Python well? (I am aware of
Leo and I've been to literateprogram ming.com, but any additional
pointers would be much appreciated!)

I think that most people in Python use doctest. Personally I find this
form of literal programming to be very efficient.

Like the example here:

http://codespeak.net/icalendar/example.html
--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Jun 27 '08 #5
On May 13, 5:28 pm, Paul Miller <neokos...@gmai l.comwrote:
Does anyone know of any (preferably largish) examples of literate
programs written using Python? Alternatively, does anyone know of any
literate programming tools which support Python well? (I am aware of
Leo and I've been to literateprogram ming.com, but any additional
pointers would be much appreciated!)

Thanks,

Paul
You may be interested in this:
http://stacktrace.it/articoli/2008/01/geek-publishing/

(you may want to use the Google Translator, unless you know Italian).
Jun 27 '08 #6
On Tue, 13 May 2008 08:28:00 -0700, Paul Miller wrote:
Alternatively, does anyone know of any literate programming tools which
support Python well?
There's PyLit_. It uses reStructuredTex t_ and can translate between a
reStructuredTex t with code blocks and source code with the text as
comments in both directions.

... _PyLit: http://pylit.berlios.de/
... _reStructuredTe xt: http://docutils.sourceforge.net/

Ciao,
Marc 'BlackJack' Rintsch
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
8492
by: Krisztian Kepes | last post by:
Hi ! I want to start many py programs - with other parameters. Because the programs have many to-do, I don't want to wait for them. In Delphi it is like this: >>>>>>>>>>>>>>>
5
2126
by: NEWS | last post by:
Can I install Python on a networked server and have any user run Python programs without having to go through the 9Mb client install? What are my options for distributing Python programs to my users? Thankyou to anyone who can help. Graham
6
2973
by: uri bushey | last post by:
I have a Python program that is built on an infrastructure of quite a few other programs, but I would like to create a standalone nonetheless. It doesn't necesarily have to be its own executable, although this is the most attractive option - it could just mean distributing the entire python distribution with it in an installer or something. However, here is what I have called in my python file: Tkinter, and multiple Pmw widgets...
2
1418
by: Squirrel Havoc | last post by:
Hello. I am sorry if this has been asked before, but I am new here. If I recall correctly, Python can be used as a scripting language for other programs, as if the program had a builtin Python interpreter. I wish to extend my programs by making them scriptable with Python scripts. Is this possible? If so, does anyone know where
2
1840
by: Mike Maxwell | last post by:
(apologies if this is not the right place to ask--suggestions on a more appropriate venue welcome!) I would like to do some literate programming-type writing, probably using the DocBook format. The paper by Norman Walsh entitled "Literate Programming in XML" seems to be a good way to do that, using a couple small namespace extensions (src:fragment and src:fragref). I could write it in raw XML if need be, but I'd rather use s.t. like...
8
1824
by: Thomas Bartkus | last post by:
Name: lib64python2.4-devel Summary: The libraries and header files needed for Python development Description: The Python programming language's interpreter can be extended with dynamically loaded extensions and can be embedded in other programs. This package contains the header files and libraries needed to do these types of tasks. ------------------------------------------------------
8
2866
by: Brandon McGinty | last post by:
Hi, I've been learning python for the past couple of months and writing misc scripts here and there, along with some web apps. I'm wondering if anyone has ideas of programs I might try my hand at making? I'd appreciate it if they don't use images, because I'm blind. Also, I'm thinking of hiring myself out as a free-lance programmer. Are there many individuals/companies which would aprove programs written in python? Most adds I've seen...
20
2279
by: Guy Fawkes | last post by:
Hi, I was wondering if Python programs always need to include the source code with the program itself. I'm asking this because I don't want my program to be open-source and so far all the Python programs I've seen included the source code. Is it possible to make an executable with only bytecode? Thanks in advance!
14
10443
by: Franz Steinhäusler | last post by:
Hello NG, wWhat are the best programs in your opinion, written entirly in pyhton, divided into categories like: a) Games b) Utilities/System c) Office d) Web/Newsreader/Mail/Browser ....
0
8768
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8690
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9139
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5933
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2491
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.