From the course: Managing Python Projects

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Overview

Overview - Python Tutorial

From the course: Managing Python Projects

Start my 1-month free trial

Overview

- [Instructor] Unlike Java, where there's a very specific directory structure you should follow, Python does not force you to a directory structure. You could have a single .py file or some directory structure. As long as Python can input your model, you should be okay. What we have however, are some best practices on how to structure your project. Our project is an early version of an NLP, natural language processing, package. We're going to use the same directory, nlpy, in the following videos. Here's how the code looks like when you first get it from source control, say doing a Git clone. You have a mix of the actual Python code in the nlp directory, in the dot there init, htpd, stop_words.py. We have some tests in the test directory and then some other files, license, makefile for automation, readme, which you can see on the right, the requirements file, and a setup.py. This structure has served me well for over…

Contents