Loading Page Content...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
In this capstone project, we will apply the software packaging and environment concepts covered across this chapter—Virtual Environments, Pip Management, Dependency Manifests, and PEP 621 Standard Packaging—to structure, package, and install a professional, distributable Command-Line Currency Converter Tool.
A production-ready Python project follows a standardized folder hierarchy that separates application source code, tests, documentation, and configuration files:
requirements.txt & .gitignore.gitignorerequirements.txtrequirements-dev.txtcurrency_converter/__init__.pycurrency_converter/api_client.pycurrency_converter/cli.pypyproject.tomlThe pyproject.toml file is the unified standard configuration for Python packaging, replacing legacy setup.py scripts:
pip install -e .)During development, install your package into your active virtual environment in Editable Mode (-e). This registers the package and its console scripts while linking directly to your source files, meaning edits to code take effect immediately without re-installing:
Hardcoding paths like C:\Users\Sumit\project\data.json will break as soon as another developer clones your project. Use relative paths derived from __file__.
.gitignore FileAlways create a clean .gitignore including __pycache__/, .venv/, and *.pyc before publishing your project repository.
Create a basic setup.py or pyproject.toml configuration that makes your package installable in editable mode using pip install -e ..
-e flag stand for in pip install -e .?setup.py under PEP 518/621?pyproject.toml, what does [project.scripts] define?__init__.py file inside the currency_converter folder important?In the next lesson, we will continue your intermediate Python journey with Introduction to Matplotlib (13: Data Visualization Basics).
Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| Requirements.txt | Introduction to Matplotlib |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.