Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Does anyone know anywhere there's a wide collection of Python source code on the net with decent documentation? If so, can someone post it up here?
Perhaps the Python Standard Library? Or are you looking for something more specific?
I am not sure what you meant by "source code"? Source code of Python libraries or code examples and recipes?
Well the link to Python STL is great (#zenazn).
In addition to that if you are looking for specific issues and their solutions and recipes, I will suggest:
http://code.activestate.com/recipes/langs/python/
Stack overflow itself.
Though you won't find much documentation at these sources, but that is supplemented by great answers, comments and discussions.
you can find a huge number of python libraries at the cheese shop.
A great place covering several libraries with very clear examples is:
http://nullege.com/codes/
I like:
The Python Cookbook
Google Code Search
The cpython source code (the original python project) is at http://hg.python.org/cpython/file/default/
Not the Python itself but the 3rd party package source codes that you can even search within the source codes:
http://pydoc.net/
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have been working on a face-tracking turret with OpenCV_Python 4.1.0, but I don't know many commands and functions. So I have been looking for some documentation or a cheat sheet for OpenCV_Python that has all the possible functions and brief explanations about them.
I only found a cheat sheet for OpenCV_C++ 2.7.0, but none for OpenCV_Python.
I saw the official OpenCV 3.0.0 documentation for Python as well, but that only shows a few general-purpose functions.
Is there any source or document (or book) that I can learn all the possible functions of OpenCV_Python?
There is one here:
OpenCV 4.x for Python cheat sheet
I hope it's useful ;)
The best documentation is the code followed by the API. I find myself referring to the API frequently. Although all of the C++ API is not available in Python, all of the Python functions can be found in the C++ API, since it is generated from them. Additionally it is useful to know numpy, since the Mat class is represented in Python as a numpy array.
OpenCV is kind of a hodge podge of algorithms, there are a lot of tutorials that are useful to go through to gain some understanding of the different capabilities available, but it isn't very linear.
If you do want something a little more organized and linear, I recommend finding a good book, I would start with Learning OpenCV, by Gary Bradski. Although I haven't been through the latest edition, I thought the book was helpful. There are a lot of other great books, tutorials, and blogs. Books and blogs will fail to cover in detail every available function and algorithm, so there will still be gaps to fill. Take your time and remember, Rome wasn't built in a day.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I need to import this python project to Unity3d. How can i do that? Based on my search, i see that there are plugins like this. However, i need to perform this tasks without using any plugin? How should i do that, i am experienced in Unity but i have no python experience? Can i get .dlls from python project so that i can use the .dlls in Unity. Or should i do something else?
If someone lead me, i'd appereciate.
I'm not sure if you can. I know that's not what you're looking for, and don't let me discourage you, but start looking for another answer. I've been trying for a while now, and even with plugins the best I could do cost about $40, and that guy spent about a year working on it. Maybe try manually converting it to C#?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I recently started working in a lab that generate a lot of data. I need to manipulate files very often for various needs. I have learnt awk programming but it seems not enough for my work. I know python but not to that extent where I can comfortably work on files. Could anyone please suggest to me any book or online tutorial where I can find exclusively the use of Python on files. most of the python books do not dwell intensively on this subject.
thanks
You can find these materials are helpful:
http://www.diveintopython.net/file_handling/file_objects.html
http://opentechschool.github.io/python-data-intro/core/text-files.html
For data manipulation, you may need to improve your skills in string processing, regular expression operations, data structures,....
You can attend this course:
https://www.edx.org/course/introduction-python-data-science-microsoft-dat208x-0
I would recommend familiarizing yourself with the os and sys standard libraries. Here is a comprehensive tutorial that covers both libraries and other necessary aspects of file management in Python.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm having a really hard time finding a good comprehensive source for Mechanize's documentation. Even the main documentation on mechanize's site isn't really that great: it only seems to list examples.
Is there a more formal place for documentation where I can see lists of classes and methods for this module? I'm a bit new to python, so maybe there's a simple answer for this.
More specifically I need a good source of information for mechanize.Browser(), which I've only been able to find information on through random questions on Stack Overflow.
UPDATED:
How about
https://github.com/python-mechanize/mechanize
prior answer: A google search turned up the below, courtesy of one Joe. He parsed the source through pydoc and posted the generated results. Nice one, Joe.
http://joesourcecode.com/Documentation/mechanize0.2.5/
http://joesourcecode.com/Documentation/mechanize0.2.5/mechanize._mechanize.Browser-class.html
If you're not happy with mechanize's site, then I'm afraid the best you can do is look at the examples you've found or at the code from the library ifself.
Regarding mechanize.Browser if you take a look at the code, then you'll see:
class Browser(UserAgentBase):
class UserAgentBase(_opener.OpenerDirector):
class OpenerDirector(urllib2.OpenerDirector):
So, for starters, you can assume that a mechanize.Browser object is just a specialized urllib2.OpenerDirector.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I want to add captcha support to some forms, I'm using a very lightweight Python framework, bottle, and I don't want to use something provided by an online service, like recaptcha.
Is there something already available in this direction, or is messing around with PIL the only solution?
Take a look at SkimpyGimpy, it's a python package that let's you generate CAPTCHA images and audio files. This is the package most framework-specific captcha generators that do not use re-captcha rely on.
It's a bit primitive, you may want to look at the source of collective.captcha as an example of how to use SkimpyGimpy in your own code.
Obligatory disclaimer: I am the original author of the collective.captcha package. Your mileage may vary. Don't code and drive, especially based on the say-so from others.
Found a couple: http://pypi.python.org/pypi?%3Aaction=search&term=captcha&submit=search
Pick one, cut the version number and use one of these commands (for example):
easy_install collective.captcha
pip install collective.captcha