As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Do you know of well designed open source applications that are instructive to analyse?
Of course this question is strictly related to this other post, but I am specifically interested in applications written in Python.
Django is a python package that is very nicely coded and designed.
Look in the Python Standard Library. It is a great wealth of python code. I particularly like this.py :)
Seriously though there is good code in the std library.
Zope .
Pyramid is Great !
Pyramid - Web Framework
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm looking for a way to make two Python scripts communicate over the internet. Something like what Socket.IO does with NodeJS, but without a browser, and in Python.
A constant connection (socket?) would be the best in my option, but if this is impossible or really difficult, using normal HTTP requests could be fine too.
Are there any frameworks to do this? If yes, which ones? Is there proper documentation? If no, how would this be achievable without a framework?
sockets are indeed what you're looking for. The Python docs have pretty good examples at the bottom of the page I linked.
As for frameworks, there is twisted which might help streamline the socket construction and message handling for you.
Lastly, there is an extremely helpful guide I reference often when programming with sockets. Warning: The guide is written for C, but the concepts apply nonetheless.
You should try to do this with xmlrpclib : http://docs.python.org/2/library/xmlrpclib.html.
It handle HTTP request.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm writing a fairly simple Flask app that requires a cron job. Right now, I have a separate module that imports the classes it needs from my app module. This seems to work just fine.
I stumbled across Flask-Script, and I'm left wondering why it would be used over the solution I have now. Keeping in mind that I am new to Flask, can anyone explain this?
It seems to be a helper module. It just gives you a nice "router" for command line commands instead of URLs.
It's more convenient and (more importantly) easier to read the intent of the code.
- Especially for non-trivial cases (>200loc)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
My question is related to the language to learn for automation task in cloud computing.
will it be python or ruby or some thing else. i want to move into the ladder as a automation engineer for infrastructure in cloud and data centers/companies.
Thanks and Regards,
Your friend.
For an interesting Python counterpart to Puppert/Chef see Ansible.
Chef and Puppet, two tools commonly used for this kind of automation, are both written in Ruby.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Is there a python or ruby library to create a code outline for the given code? The library should support multiple languages.
I am looking for something like outline view in Eclipse. I don't need the UI, and i can write my own. But I am looking for a library which parses the given language and creates an outline datastructure.
As far as I know there is no such library. You could create it yourself though.
A pragmatic way would be to follow the indentation levels in Python. For other languages, you could either follow the indentation level, or use regular expression matching and a stack to keep track your outline.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am looking for good End to End testing framework under python, where the tests can be written in python and managed in a comfortable way. I know there are many unit testing frameworks, but I am looking for bigger scope, something like test director with support for reports etc,where a whole system is under test.
You havent given any details so it is very difficult to know what specific product are you looking for.
Maybe robotframework suits your needs
I used zope.testing and it was very good for my need, but it's not so different from simple unittest.
There is a good comparative here. I guess most of the products cited are more of the unit testing kind. Not sure you will find what you look for.
The TTCN3 is a quite good test framework for black-box testing. The comercial tools are having lot of reporting stuff there. It is not in python.