Re: Simple prototype text editor in python

2005-10-07 Thread thakadu
Thanks for everyones advice. I finally went
for a very basic BSD style template that
I found somewhere. Its really short and
easy to understand, at least to me!

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


RE: Simple prototype text editor in python

2005-10-06 Thread Letezo
Hello,

 If anyone is interested in the
 code or in giving some ideas or indeed has done something 
 similar I would love to heard from you.

I'm interested in your code, since I'm going to learn ncurses. Please
upload your code to a WEB page and post the link to python-announce (if
you like your code GPL'd or python licensed).

If you like to experience 3D programming besides curses
in python with only few lines of code, just try it:

http://www.vpython.org

VPython supports 3D stereo with color glasses too. ;-)
You can use VPython to easily visualize vector math, etc...

Thanks in advance, Viktor

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


Re: Simple prototype text editor in python

2005-10-06 Thread thakadu
Hi Viktor

At the moment I dont have any web site where I can
upload it. Do you or anyone have any suggestions or
know of any web sites where one can post python code?
If not please email me and I will send you the code by email.

Regarding the license I have not yet decided what type
of license (if any, since its very few lines of code)  but probably
will be GPL or BSD style. I have no former experience in
licensing code so any suggestions will be welcome there as well.
(For one, do you know if simply stating somewhere in the
code This is licensed under blah blah is sufficient
to consider the code licensed?)

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


Re: Simple prototype text editor in python

2005-10-06 Thread Robert Kern
thakadu wrote:
 Hi Viktor
 
 At the moment I dont have any web site where I can
 upload it. Do you or anyone have any suggestions or
 know of any web sites where one can post python code?
 If not please email me and I will send you the code by email.

If you package it with distutils, then you can upload the source
distribution automatically to PyPI:

  http://python.org/pypi

 Regarding the license I have not yet decided what type
 of license (if any, since its very few lines of code)  but probably
 will be GPL or BSD style. I have no former experience in
 licensing code so any suggestions will be welcome there as well.
 (For one, do you know if simply stating somewhere in the
 code This is licensed under blah blah is sufficient
 to consider the code licensed?)

Perhaps, but you really should include the full license text somewhere.
Since your code is so short, then I highly recommend using a short,
permissive license. It does no one any good to attach a license that's
longer than the program itself.

-- 
Robert Kern
[EMAIL PROTECTED]

In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die.
  -- Richard Harter

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


Re: Simple prototype text editor in python

2005-10-06 Thread thakadu
Thanks Robert

I have packaged it up with distutils and included the
license in the README.txt file.
I think I am missing something as I have only
seen a place (under submissions) on
http://python.org/pypi?%3Aaction=submit_form
to submit the PKG_INFO file, or to submit a url manually
but nowhere to actually upload the distribution file. (the tar.gz file)

Am I looking in the wrong place? Or is it acceptable to post a .tar.gz
file in place of the PKG_INFO file?

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


Re: Simple prototype text editor in python

2005-10-06 Thread Scott David Daniels
Robert Kern wrote:
 thakadu wrote:
Regarding the license I have not yet decided what type
of license (if any, since its very few lines of code)  but probably
will be GPL or BSD style. I have no former experience in
licensing code so any suggestions will be welcome there as well.

I've heard the MIT license (a BSD-style license) is a well-written
(legally) license that makes clear you still get credit, don't get
particular blame for ill side-effects, and allows others to use
and modify.  I personally like this style for Python code, since
that is the way Python was handed to me.

The GPL and LGPL are good alternatives if you believe in forcing
others to pen their code in exchange for using yours.  Pick
carefully there.

I'd suggest that picking from the above is the most useful,
picking from the larger range of well-known licenses is
second best, and writing your own is worst.  You might even
write all rights reserved; write me for a particular case
and get about the same response that writing your own will
get.  The reason for this ordering is that the MIT, LGPL,
and GPL are all licenses that are well-understood by most
programmers, so they needn't go into reading like a lawyer
mode to think about whether they can use things based on your
code.  The more work they have to do, the less likely they
will even look at your code (if they behave anything like me).

--Scott David Daniels
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list


Simple prototype text editor in python

2005-10-05 Thread thakadu
I have written a small console based editor in python
as an experiment. It is just over 300 lines of code
including some junk that I have not weeded out yet.
It uses the curses library.
It is EXTREMELY basic at the moment and cannot be
used for anything other than experimentation.
Only a few keystrokes are currently implemented
such as ^S save, ^E end of line, ^A beginning of line,
^F, ^B, ^N, ^P and arrow keys for cursor movement
^L delete line, baskspace and that is just about it.
Apart from that I created it with a view to a plugin
architecture to be implemented so that it will
be possible for example for users to specify
complete python functions in a .rc file that
overide key bindings.
I created it to learn about curses, python and
to gain insight into how editors are written
(or not written :-) )
If anyone is interested in the code or in giving
some ideas or indeed has done something similar
I would love to heard from you.

Regards

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

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