Re: [BangPypers] How to Distribute Commercial Python Applications

2014-08-04 Thread B.Nanda Kishore
We use bdist_egg always to ship python packages. It ships just pyc files.
https://pythonhosted.org/an_example_pypi_project/setuptools.html

On Mon, Aug 4, 2014 at 10:27 AM, Deepak Tripathi apenguinli...@gmail.com
wrote:

 How to distribute commercial python application without giving source code
 to the customer, dev platform in Unix (FreeBSD), Python2.x.





Regards,
Nanda
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] Mailing list etiquette

2014-08-04 Thread Kushal Das
Good old presentation [1] from mbuf. Please take time to read and understand.

[1] 
http://www.shakthimaan.com/downloads/glv/presentations/mailing-list-etiquette.pdf

Kushal
-- 
CPython Core Developer
http://fedoraproject.org
http://kushaldas.in
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Jeffrey Jose
I agree with almost all of it, except for these 2.

1. No HTML emails
2. No attachments.

These are surely relics from the past. I dont see any reason why these need
to be valid anymore. If your answer to this is my favorite ncurses client
cant read it it doesnt count.

-jeff


On Mon, Aug 4, 2014 at 11:47 AM, Kushal Das kushal...@gmail.com wrote:

 Good old presentation [1] from mbuf. Please take time to read and
 understand.

 [1]
 http://www.shakthimaan.com/downloads/glv/presentations/mailing-list-etiquette.pdf

 Kushal
 --
 CPython Core Developer
 http://fedoraproject.org
 http://kushaldas.in
 ___
 BangPypers mailing list
 BangPypers@python.org
 https://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] Mobile App Development using Python

2014-08-04 Thread Jins Thomas
Hi

I quickly checked archive, Couldn't find much...

Humble request to some experts to throw some lights on Mobile App
Development using Python



Thanks
Jins Thomas
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Jeffrey Jose wrote:

 I agree with almost all of it, except for these 2.

 1. No HTML emails

I don't like HTML emails because usual textual matter doesn't need
it. It simply bloats things and if the renderer your client is using
doesn't have some feature that the sender uses, it'll appear broken. 

 2. No attachments.

This makes sense for a list because, as I understand it, the list server
has to send a copy of the attachment to everyone on the list. It's an
avoidable expense. A lot simpler to send a link to something on dropbox
or somewhere.
[...]


-- 
Cordially,
Noufal
http://nibrahim.net.in
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] how to override sys.stdin

2014-08-04 Thread Nitin Kumar
Hi All,

is there a way i can override raw_input or input function.

I tried with below code but getting error

import sys
class xyz(object):
def readline(self):
print 'from fn readline',var

sys.stdin = xyz

 raw_input('hi:')
hi:
Traceback (most recent call last):
  File pyshell#12, line 1, in module
raw_input('hi:')
TypeError: unbound method readline() must be called with xyz instance as
first argument (got nothing instead)

overriding sys.stdout is working fine.

Nitin K
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Dhruv Baldawa
On Mon, Aug 4, 2014 at 2:38 PM, Nitin Kumar nitin.n...@gmail.com wrote:

 def readline(self):
 print 'from fn readline',var


Where are you getting 'var' from? Shouldn't the method read as def
readline(self, var)?



-- 
Dhruv Baldawa
(http://www.dhruvb.com)
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mobile App Development using Python

2014-08-04 Thread Saurabh Minni
You should have a look at Kivy [http://kivy.org/]

A lot of things are detailed in there.

Thanks,
Saurabh


On Mon, Aug 4, 2014 at 1:55 PM, Jins Thomas jinstho...@gmail.com wrote:

 Hi

 I quickly checked archive, Couldn't find much...

 Humble request to some experts to throw some lights on Mobile App
 Development using Python



 Thanks
 Jins Thomas
 ___
 BangPypers mailing list
 BangPypers@python.org
 https://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Kushal Das
On Mon, Aug 4, 2014 at 1:29 PM, Jeffrey Jose jeffjosej...@gmail.com wrote:
 I agree with almost all of it, except for these 2.

 1. No HTML emails
 2. No attachments.

Most of the FOSS project mailing lists follow these simple rules.

 These are surely relics from the past. I dont see any reason why these need
 to be valid anymore. If your answer to this is my favorite ncurses client
 cant read it it doesnt count.

Most of the developers in all of the FOSS world count these. Nothing
more to add to this thread.

Kushal
-- 
CPython Core Developer
http://fedoraproject.org
http://kushaldas.in
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Nitin Kumar
thats a typo error.

in simple term my question would be: How to override sys.stdin.

Nitin K


On Mon, Aug 4, 2014 at 2:44 PM, Dhruv Baldawa dhruvbald...@gmail.com
wrote:

 On Mon, Aug 4, 2014 at 2:38 PM, Nitin Kumar nitin.n...@gmail.com wrote:

  def readline(self):
  print 'from fn readline',var
 

 Where are you getting 'var' from? Shouldn't the method read as def
 readline(self, var)?



 --
 Dhruv Baldawa
 (http://www.dhruvb.com)
 ___
 BangPypers mailing list
 BangPypers@python.org
 https://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Nitin Kumar wrote:

 thats a typo error.

 in simple term my question would be: How to override sys.stdin.

[...]

The StringIO module gives you file like objects into which you can put
data. They might work as substitues for sys.std*

-- 
Cordially,
Noufal
http://nibrahim.net.in
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Rohit Chormale
Hi Nitin,

Do u mean redirecting Standard IO streams?


On Mon, Aug 4, 2014 at 3:08 PM, Noufal Ibrahim KV nou...@nibrahim.net.in
wrote:

 On Mon, Aug 04 2014, Nitin Kumar wrote:

  thats a typo error.
 
  in simple term my question would be: How to override sys.stdin.

 [...]

 The StringIO module gives you file like objects into which you can put
 data. They might work as substitues for sys.std*

 --
 Cordially,
 Noufal
 http://nibrahim.net.in
 ___
 BangPypers mailing list
 BangPypers@python.org
 https://mail.python.org/mailman/listinfo/bangpypers

___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


[BangPypers] Creating a Password protected Excel sheet

2014-08-04 Thread Anil Tammineni
Hi All,

   I want to write data into an excel file and make this excel file
password protected.
   I am able to read/write data in to this excel file (.xlsx) using
openpyxl.
   How can we make this document password protected using openpyxl or any
other library?
   Any pointer would be helpful.

Thanks,
Anil
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Rohit Chormale
It might work,

sys.stdin = open(sys.stdin.fileno(), 'r', Data descriptors)

or

Simply for replacing iostream,

sys.stdin = open(filepath ,'r')


On Mon, Aug 4, 2014 at 3:48 PM, Rohit Chormale rohitchorm...@gmail.com
wrote:


 Hi Nitin,

 Do u mean redirecting Standard IO streams?


 On Mon, Aug 4, 2014 at 3:08 PM, Noufal Ibrahim KV nou...@nibrahim.net.in
 wrote:

 On Mon, Aug 04 2014, Nitin Kumar wrote:

  thats a typo error.
 
  in simple term my question would be: How to override sys.stdin.

 [...]

 The StringIO module gives you file like objects into which you can put
 data. They might work as substitues for sys.std*

 --
 Cordially,
 Noufal
 http://nibrahim.net.in
 ___
 BangPypers mailing list
 BangPypers@python.org
 https://mail.python.org/mailman/listinfo/bangpypers



___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mobile App Development using Python

2014-08-04 Thread Gora Mohanty
On 4 August 2014 14:45, Saurabh Minni saurabh.mi...@gmail.com wrote:

 You should have a look at Kivy [http://kivy.org/]

 A lot of things are detailed in there.

Seconded. Incidentally, one of the core Kivy developers is from Delhi, and
frequents the Delhi/NCR Python group.

Regards,
Gora
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Anand Chitipothu
On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV nou...@nibrahim.net.in
wrote:

 On Mon, Aug 04 2014, Jeffrey Jose wrote:

  I agree with almost all of it, except for these 2.
 
  1. No HTML emails

 I don't like HTML emails because usual textual matter doesn't need
 it. It simply bloats things and if the renderer your client is using
 doesn't have some feature that the sender uses, it'll appear broken.


I agree. We don't need HTML emails.

 2. No attachments.

 This makes sense for a list because, as I understand it, the list server
 has to send a copy of the attachment to everyone on the list. It's an
 avoidable expense. A lot simpler to send a link to something on dropbox
 or somewhere.


Not only that, it is a pain to download something and open it in some
application just to know what is inside. It is a lot better to send a link
instead of sending attachments.

Anand
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Jeffrey Jose
On Mon, Aug 4, 2014 at 8:13 PM, Anand Chitipothu anandol...@gmail.com
wrote:


 On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV nou...@nibrahim.net.in
 wrote:

 On Mon, Aug 04 2014, Jeffrey Jose wrote:

  I agree with almost all of it, except for these 2.
 
  1. No HTML emails

 I don't like HTML emails because usual textual matter doesn't need
 it. It simply bloats things and if the renderer your client is using
 doesn't have some feature that the sender uses, it'll appear broken.


 I agree. We don't need HTML emails.



​Interesting point. Although along the expected lines.


  2. No attachments.

 This makes sense for a list because, as I understand it, the list server
 has to send a copy of the attachment to everyone on the list. It's an
 avoidable expense. A lot simpler to send a link to something on dropbox
 or somewhere.


 Not only that, it is a pain to download something and open it in some
 application just to know what is inside. It is a lot better to send a link
 instead of sending attachments.


​I hate just as much as you to touch the mouse when I'm working, but that
said I wonder in the rapidly changing new world of development (read:
github) how much of these we're used to this way, so lets continue that
will survive.

email etiquette are about respect. Respect to the person receiving your
email. I get it.
That said, I do think the whole mailing list culture will go away in the
future.

I dont know what it is, but maybe someone reading this will create a better
(and more relevant) alternative.



 Anand

___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Jeffrey Jose
On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV nou...@nibrahim.net.in
wrote:

 On Mon, Aug 04 2014, Jeffrey Jose wrote:

  I agree with almost all of it, except for these 2.
 
  1. No HTML emails

 I don't like HTML emails because usual textual matter doesn't need
 it. It simply bloats things and if the renderer your client is using
 doesn't have some feature that the sender uses, it'll appear broken.


​I'm curious how do you read your mails? Noufal, if my memory serves me
right you're an emacs person. So emacs perhaps?

I'm in the vim camp, so I use my browser for email.​


  2. No attachments.

 This makes sense for a list because, as I understand it, the list server
 has to send a copy of the attachment to everyone on the list. It's an
 avoidable expense. A lot simpler to send a link to something on dropbox
 or somewhere.
 [...]


 ​.. and since I use browser, I appreciate an email that's nicely
formatted. Yes, that includes contextual information with embedded images.​



 --
 Cordially,
 Noufal
 http://nibrahim.net.in

___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Jeffrey Jose
On Mon, Aug 4, 2014 at 8:13 PM, Anand Chitipothu anandol...@gmail.com
wrote:


 On Mon, Aug 4, 2014 at 2:23 PM, Noufal Ibrahim KV nou...@nibrahim.net.in
 wrote:

 On Mon, Aug 04 2014, Jeffrey Jose wrote:

  I agree with almost all of it, except for these 2.
 
  1. No HTML emails

 I don't like HTML emails because usual textual matter doesn't need
 it. It simply bloats things and if the renderer your client is using
 doesn't have some feature that the sender uses, it'll appear broken.


 I agree. We don't need HTML emails.

  2. No attachments.

 This makes sense for a list because, as I understand it, the list server
 has to send a copy of the attachment to everyone on the list. It's an
 avoidable expense. A lot simpler to send a link to something on dropbox
 or somewhere.


 Not only that, it is a pain to download something and open it in some
 application just to know what is inside. It is a lot better to send a link
 instead of sending attachments.


​Anand, how do you consume your emails? I get my emails on my phones as
well, in gmail, which has a preview feature in both desktop and on mobile.​


 Anand

___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Anand Chitipothu

 Not only that, it is a pain to download something and open it in some
 application just to know what is inside. It is a lot better to send a link
 instead of sending attachments.


 ​Anand, how do you consume your emails? I get my emails on my phones as
 well, in gmail, which has a preview feature in both desktop and on mobile.​


Even when it is a python file?

Anand
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Saager Mhatre
On Mon, Aug 4, 2014 at 9:06 PM, Anand Chitipothu anandol...@gmail.com
wrote:

 
  Not only that, it is a pain to download something and open it in some
  application just to know what is inside. It is a lot better to send a
 link
  instead of sending attachments.
 
 
  ​Anand, how do you consume your emails? I get my emails on my phones as
  well, in gmail, which has a preview feature in both desktop and on
 mobile.​
 

 Even when it is a python file?


Attached source code files generally open up as text files.

- d
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Saager Mhatre
On Mon, Aug 4, 2014 at 2:38 PM, Nitin Kumar nitin.n...@gmail.com wrote:

 Hi All,

 is there a way i can override raw_input or input function.


This sooo smells of the XY Problem http://bitly.com/XyProblem. What are
you really trying to do here?

- d
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Balachandran Sivakumar
Hi Jeff,

On Mon, Aug 4, 2014 at 1:29 PM, Jeffrey Jose jeffjosej...@gmail.com wrote:
 I agree with almost all of it, except for these 2.

 1. No HTML emails

I generally look at it from this perspective - Do we really
need HTML to convey something ? Are plain words not sufficient enough
to express ourselves ? Look at it as Simple is better than complex
:)

 2. No attachments.


   Someone already mentioned it - In a mailing list, the server
copies over the attachment to every recipient. Moreover, in these days
of githubs, wikis and pastebin, where we have syntax highlighting and
better viewing experience, why would we want to send attachments ?
Thanks



-- 
Thank you
Balachandran Sivakumar
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers