@@ -11,22 +11,35 @@ SOLID principles, design patterns, and best practices.
1111
1212Ensure that the following tools are installed before setting up the project:
1313
14+ - ** IDE of your choice** - PyCharm, Visual Studio Code, or any other Python IDE
1415- ** Python 3.10+** - the examples rely on modern Python features
1516- ** git** - to clone this repository
1617
1718## Installation
1819
20+ Clone the repository to your local machine:
21+
22+ ``` bash
23+ git clone https://github.com/braboj/python-by-example.git
24+ ```
25+
26+ Change into the project directory:
27+
28+ ``` bash
29+ cd python-by-example
30+ ```
31+
1932Create a virtual environment and install dependencies:
2033
21- #### Linux/ macOS
34+ - For Linx and macOS, use the following commands:
2235
2336``` bash
2437python -m venv .venv
2538source .venv/bin/activate
2639pip install -r requirements.txt
2740```
2841
29- #### Windows
42+ - For Windows, use the following commands:
3043
3144``` cmd
3245python -m venv .venv
@@ -36,13 +49,28 @@ pip install -r requirements.txt
3649
3750## Usage
3851
39- Run the examples using Python:
52+ The examples are intented to be used with an IDE of your choice so that you can
53+ run, debug, and modify them as needed. Just open the project in your IDE, and
54+ you can start exploring the examples.
55+
56+ ``` text
57+ .python-by-example
58+ ├── .venv/ # Virtual environment directory
59+ ├── examples/ # Directory containing all the examples
60+ │ ├── A01_introduction/ # Introduction examples
61+ │ │ ├── hello_world.py
62+ ```
63+
64+ You can also run the examples from the command line. For example, to run the
65+ ` hello_world.py ` example, use the following command:
4066
4167``` bash
42- python path/to/example .py
68+ python examples/A01_introduction/hello_world .py
4369```
4470
4571
4672## License
4773
48- This project is proprietary software. Copying or distribution is prohibited without express permission from the author.
74+ This project is proprietary software. Copying or distribution is prohibited
75+ without express permission from the author. See the [ LICENSE] ( LICENSE ) file for
76+ more details.
0 commit comments