Skip to content

Commit 83da3aa

Browse files
author
Saeid Darvish
committed
migrate to .club
1 parent f3650f0 commit 83da3aa

File tree

72 files changed

+24952
-24926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+24952
-24926
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
custom: ['https://python.coderz.ir/support.html']
1+
custom: ['https://paypal.me/saeiddrv', 'https://python.coderz.club/support.html']

.gitignore

Lines changed: 43 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
1-
# sphinx build folder
2-
_build
3-
build
4-
5-
# Compiled source #
6-
###################
7-
*.com
8-
*.class
9-
*.dll
10-
*.exe
11-
*.o
12-
*.so
13-
14-
# Packages #
15-
############
16-
# it's better to unpack these files and commit the raw source
17-
# git has its own built in compression methods
18-
*.7z
19-
*.dmg
20-
*.gz
21-
*.iso
22-
*.jar
23-
*.rar
24-
*.tar
25-
*.zip
26-
27-
# Logs and databases #
28-
######################
29-
*.log
30-
*.sql
31-
*.sqlite
32-
33-
# OS generated files #
34-
######################
35-
.DS_Store?
36-
ehthumbs.db
37-
Icon?
38-
Thumbs.db
39-
40-
# Editor backup files #
41-
#######################
42-
*~
1+
# sphinx build folder
2+
_build
3+
build
4+
.venv
5+
6+
# Compiled source #
7+
###################
8+
*.com
9+
*.class
10+
*.dll
11+
*.exe
12+
*.o
13+
*.so
14+
15+
# Packages #
16+
############
17+
# it's better to unpack these files and commit the raw source
18+
# git has its own built in compression methods
19+
*.7z
20+
*.dmg
21+
*.gz
22+
*.iso
23+
*.jar
24+
*.rar
25+
*.tar
26+
*.zip
27+
28+
# Logs and databases #
29+
######################
30+
*.log
31+
*.sql
32+
*.sqlite
33+
34+
# OS generated files #
35+
######################
36+
.DS_Store?
37+
ehthumbs.db
38+
Icon?
39+
Thumbs.db
40+
41+
# Editor backup files #
42+
#######################
43+
*~

.readthedocs.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# .readthedocs.yaml
2-
# Read the Docs configuration file
3-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4-
5-
version: 2
6-
7-
build:
8-
os: ubuntu-22.04
9-
tools:
10-
python: "3.11"
11-
12-
python:
13-
install:
14-
- requirements: requirements.txt
15-
16-
sphinx:
17-
builder: html
18-
configuration: source/conf.py
19-
fail_on_warning: true
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
version: 2
6+
7+
build:
8+
os: ubuntu-22.04
9+
tools:
10+
python: "3.11"
11+
12+
python:
13+
install:
14+
- requirements: requirements.txt
15+
16+
sphinx:
17+
builder: html
18+
configuration: source/conf.py
19+
fail_on_warning: true

Dockerfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM python:3.11.2-alpine
2-
3-
WORKDIR /docs
4-
5-
EXPOSE 80:8000
6-
7-
COPY source /docs/
8-
COPY requirements.txt /docs/requirements.txt
9-
10-
RUN python -m pip install --upgrade pip \
11-
&& python -m pip install -r requirements.txt \
12-
&& python -m sphinx.cmd.build . _build
13-
14-
ENTRYPOINT ["sh", "-c", "cd _build && python -m http.server"]
1+
FROM python:3.11.2-alpine
2+
3+
WORKDIR /docs
4+
5+
EXPOSE 80:8000
6+
7+
COPY source /docs/
8+
COPY requirements.txt /docs/requirements.txt
9+
10+
RUN python -m pip install --upgrade pip \
11+
&& python -m pip install -r requirements.txt \
12+
&& python -m sphinx.cmd.build . _build
13+
14+
ENTRYPOINT ["sh", "-c", "cd _build && python -m http.server"]

Makefile

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# Minimal makefile for Sphinx documentation
2-
#
3-
4-
# You can set these variables from the command line, and also
5-
# from the environment for the first two.
6-
SPHINXOPTS ?=
7-
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = source
9-
BUILDDIR = build
10-
11-
# Put it first so that "make" without argument is like "make help".
12-
help:
13-
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14-
15-
.PHONY: help Makefile
16-
17-
# Catch-all target: route all unknown targets to Sphinx using the new
18-
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19-
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

README.md

Lines changed: 86 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,86 @@
1-
2-
# Python in Persian (Updated with Python 3.11)
3-
4-
[![Documentation Status](https://readthedocs.org/projects/pythonpersiantutorial/badge/?version=latest)](https://readthedocs.org/projects/pythonpersiantutorial/?badge=latest)
5-
6-
<p align="center">
7-
<img height="300" src="https://python.coderz.ir/_images/python-3-11.png">
8-
</p>
9-
10-
This is an open-source and online book that provides a comprehensive tutorial on the Python programming language in Persian. The book is available at [python.coderz.ir](https://python.coderz.ir/) and covers a wide range of topics, including:
11-
12-
- Introduction
13-
- Setup and starting a new project
14-
- Interactive mode
15-
- Data types and data structures
16-
- Control flow statements
17-
- File handling
18-
- Standard library
19-
- Functions
20-
- Decorator‌, Generator and lambda
21-
- Regular expressions
22-
- Object-oriented programming
23-
- Descriptors and Context Manager
24-
- Type hinting and Data class
25-
- Exception and Exception handling
26-
- Warning and Assertion
27-
- Date and Time
28-
29-
This book is designed for Persian-speaking learners without prior experience with programming languages. The book covers all the essential topics, from basic to intermediate programming, and each chapter includes code examples to help learners understand the material.
30-
31-
## Getting Started
32-
33-
To get started with this book, you can:
34-
35-
- Simply visit [python.coderz.ir](https://python.coderz.ir/) and start reading.
36-
37-
- Download the source code from GitHub and run it on your local machine:
38-
39-
```
40-
$ git clone https://github.com/saeiddrv/PythonPersianTutorial.git
41-
42-
$ pip install -U pip
43-
$ pip install virtualenv
44-
$ python -m virtualenv .venv
45-
$ source .venv/bin/activate
46-
47-
$ cd PythonPersianTutorial
48-
$ pip install -r requirements.txt
49-
50-
$ make html
51-
52-
$ cd ./build/html
53-
$ python -m http.server 8000
54-
```
55-
then visit http://127.0.0.1:8000
56-
57-
- Download the source code from GitHub and run it in Docker:
58-
59-
```
60-
$ git clone https://github.com/saeiddrv/PythonPersianTutorial.git
61-
62-
$ cd PythonPersianTutorial
63-
64-
$ docker build -t pypersian .
65-
$ docker run -d --name pypersian -p 80:8000 pypersian
66-
```
67-
then visit http://127.0.0.1
68-
69-
70-
## Contributions
71-
72-
If you'd like to contribute to the book, you can fork the repository on GitHub and submit a pull request with your changes. You can also open an issue to **report errors**.
73-
74-
## Credits
75-
76-
This book was authored by [**Saeid Darvish**](https://saeiddrv.github.io).
77-
78-
## License
79-
80-
This book is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License, which means you are free to use, copy, modify, merge, publish, and distribute the book for non-commercial purposes. Please see the [license](https://creativecommons.org/licenses/by-nc-sa/4.0/) for more details.
81-
82-
## Acknowledgments
83-
84-
Special thanks to the Python community and the contributors of open-source Python packages and libraries, without whom this book would not have been possible.
85-
1+
2+
# Python in Persian (Updated with Python 3.11)
3+
4+
[![Documentation Status](https://readthedocs.org/projects/pythonpersiantutorial/badge/?version=latest)](https://readthedocs.org/projects/pythonpersiantutorial/?badge=latest)
5+
6+
<p align="center">
7+
<img height="300" src="https://python.coderz.club/_images/python-in-persian-book-cover.png">
8+
<img height="300" src="https://python.coderz.club/_images/python-3-11.png">
9+
</p>
10+
11+
This is an open-source and online book that provides a comprehensive tutorial on the Python programming language in Persian. The book is available at [python.coderz.club](https://python.coderz.club/) and covers a wide range of topics, including:
12+
13+
- Introduction
14+
- Setup and starting a new project
15+
- Interactive mode
16+
- Data types and data structures
17+
- Control flow statements
18+
- File handling
19+
- Standard library
20+
- Functions
21+
- Decorator‌, Generator and lambda
22+
- Regular expressions
23+
- Object-oriented programming
24+
- Descriptors and Context Manager
25+
- Type hinting and Data class
26+
- Exception and Exception handling
27+
- Warning and Assertion
28+
- Date and Time
29+
30+
This book is designed for Persian-speaking learners without prior experience with programming languages. The book covers all the essential topics, from basic to intermediate programming, and each chapter includes code examples to help learners understand the material.
31+
32+
## Getting Started
33+
34+
To get started with this book, you can:
35+
36+
- Simply visit [python.coderz.club](https://python.coderz.club/) and start reading.
37+
38+
- Download the source code from GitHub and run it on your local machine:
39+
40+
```
41+
$ git clone https://github.com/saeiddrv/PythonPersianTutorial.git
42+
43+
$ pip install -U pip
44+
$ pip install virtualenv
45+
$ python -m virtualenv .venv
46+
$ source .venv/bin/activate
47+
48+
$ cd PythonPersianTutorial
49+
$ pip install -r requirements.txt
50+
51+
$ make html
52+
53+
$ cd ./build/html
54+
$ python -m http.server 8000
55+
```
56+
then visit http://127.0.0.1:8000
57+
58+
- Download the source code from GitHub and run it in Docker:
59+
60+
```
61+
$ git clone https://github.com/saeiddrv/PythonPersianTutorial.git
62+
63+
$ cd PythonPersianTutorial
64+
65+
$ docker build -t pypersian .
66+
$ docker run -d --name pypersian -p 80:8000 pypersian
67+
```
68+
then visit http://127.0.0.1
69+
70+
71+
## Contributions
72+
73+
If you'd like to contribute to the book, you can fork the repository on GitHub and submit a pull request with your changes. You can also open an issue to **report errors**.
74+
75+
## Credits
76+
77+
This book was authored by [**Saeid Darvish**](https://saeiddrv.com).
78+
79+
## License
80+
81+
This book is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License, which means you are free to use, copy, modify, merge, publish, and distribute the book for non-commercial purposes. Please see the [license](https://creativecommons.org/licenses/by-nc-sa/4.0/) for more details.
82+
83+
## Acknowledgments
84+
85+
Special thanks to the Python community and the contributors of open-source Python packages and libraries, without whom this book would not have been possible.
86+

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sphinx
1+
sphinx
22
sphinxcontrib.jquery

0 commit comments

Comments
 (0)