Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
i need to know what i should put in a new python project directories,
such as /core, /lib... and what they must contain & what are the other important things todo
i have browsed some articles about python project structure but got nothing useful. http://docs.python-guide.org/en/latest/writing/structure/
/core/ -> what should contain as an example?
....
need some help with that, and thanks in advance
This is advice for someone who is starting completely afresh, as I imagine you do based on your question.
There are generally no core or lib directories in a python project. Start your project in one file. Run it with python. Once your file gets too big, start separating things into other files, and after that into modules (subdirectories with __init__.py files).
Somewhere during that process, read the link you have also included several times, try and understand it, because that contains very good advice on what you need to know about structure.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am learning Django.
I came across the term "contrib" but I don't know what it actually means
It obviously seems from the word "contribution" but why is it named like that?
Thank you
Contrib name is for software that has been contributed to the project,
but which might not actually be maintained by the core developers.
Naming it "contrib" or "Contrib" is a long-established convention, but
there's really nothing special about the name, and it's usually only
used by fairly large projects. Incase of Django it's a package that
contains some of the common functionality required by in web
development [answer copied from below links]
Batteries included is a jargon that refers to a tool that comes packed with stuff that can get you going immediately.
P.S for more details have a look here and first few lines here
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a general question concerning "publishing" python code and referencing it later in my own PhD thesis. I hope someone can provide helpful thoughts about it.
My plan:
During my PhD time I have written several code snippets for time-frequency analysis. These are not large code projects, but snippets that provide functionalities, which are not included in the general scipy.signal package. In approximately 6 month I will hand in the thesis, so now I am thinking about what stuff to include in the thesis. If I include these snippets in my thesis I somehow thought it would be "cooler" to have them already "published" in any form instead of just putting the code in the appendix of the thesis. By doing so I might be able to write something like this in my thesis: The code for analysing the data_x_y is also available at ...
I would like to find the easiest way to accomplish this.
Thanks for any comments!
Publish the code on Github. You can optionally create a Python package, and publish that to PyPI.
Once it's on GitHub, you can get a free DOI for it using Zenodo. This will create a permanent record (including source code), and makes your code easily citable (both by yourself and others).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'd like to write a program that indexes my pdf and music files on my hard drive(not server). I plan to do this via perl or python, or both. I'll basically be writing a crawler for my desctop. The user interface will be in JavaFx, which I think quite fluent in. I've done a couple of projects in JavaFx. I have not done anything in perl/ python. I however, have done a few lines of code in them while teaching myself the syntax.
The question is what topics should I start my research in when embarking on writing a crawler. I've seen quite a number of tutorials online on crawlers but all do web page indexing. Plus what modules should I look into?
In python to find the files you can use os.walk - the examples in the help are very helpful.
Assuming that you are looking to do more than just locate the files and get their names you will need to look into getting some more information about the contents, there are python libraries that can get text from pdf files such as PDFMiner and pdfquery.
Likewise there are numerous python tools that can get you some more information on your music files.
It all depends on how you are planning on indexing them.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I know python and want to contribute on OpenSource projects that features python. Anyone can help me where to contribute and how.
I already googled it and find github and code.google as a good place to contribute but how to start it I don't know.
Suggest how to get started.
Not sure if this is an appropriate question for SO - you might get voted down. But ...
Whenever I have seen this question, the answer is almost always:
find a project you like / you're interested in
find something in that project that you feel you can fix / enhance (have a look through their bug tracker)
fork the project (github makes this easy)
make the change, find out what is appropriate for that project (documentation, unit tests, ...)
submit the change back to the project (github has "request pull")
Good luck!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'd like to be able to list all files found in a directory tree on a server that requires authorization for access. If I were trying to list files within a local directory tree, I would use the os.walk functionality (quite simple, I like that); however, when I'm trying to search a secure server, I'm lost. I know the credentials to log onto that server, but I'm not sure of the steps needed to log in and retrieve the information above (I'm new to python). Can anyone provide examples? Thanks.