-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpython.html
36 lines (34 loc) · 2.45 KB
/
python.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p style="text-align: center;"><span style="font-size: 24px; color: rgb(97, 189, 109);"><strong>Python</strong></span></p>
<p style="text-align: left;"><strong><span style="font-size: 24px; color: rgb(65, 168, 95);"><u>Fantastic Python Cheatsheet & Online Book</u></span></strong></p>
<ul>
<li><a href="http://overapi.com" rel="noopener noreferrer" target="_blank"><span style="font-size: 24px;"><strong>http://overapi.com</strong></span></a><span style="font-size: 24px;"><strong> <span style="color: rgb(250, 197, 28);">and</span> </strong><a href="https://docs.python-guide.org/"></a></span><a href="https://docs.python-guide.org/" rel="noopener noreferrer" target="_blank"><span style="font-size: 24px;">https://docs.python-guide.org/ </span></a></li>
</ul>
<p><br></p>
<p style="text-align: left;"><span style="font-size: 24px; color: rgb(250, 197, 28);"><strong>Creating Virtual Enviroment:</strong></span></p>
<ul>
<li style="text-align: left;"><span style="font-size: 24px;">python3 -m venv <name your venv></span></li>
<li style="text-align: left;"><span style="font-size: 24px;">source ./<name of venv></span></li>
<li style="text-align: left;"><span style="font-size: 24px;">. ./<path to venv>/bin/activate</span></li>
</ul>
<p style="text-align: left;"><span style="font-size: 24
px; color: rgb(44, 130, 201);"><strong>Requirements text:</strong></span></p>
<ul>
<li style="text-align: left;"><span style="font-size: 24px;">pip install -r requirements.txt</span></li>
</ul>
<p style="text-align: left;"><span style="font-size: 24px; color: rgb(85, 57, 130);"><strong>Using Pydoc3:</strong></span></p>
<ul>
<li style="text-align: left;"><span style="font-size: 24px;">found in your venv dir, cd lib, cd python3.*, cd site-packages</span></li>
<li style="text-align: left;"><span style="font-size: 24px;">To use: pdoc3 <py file></span></li>
<li style="text-align: left;"><span style="font-size: 24px;">Output as html/pdf : pdoc3 -html <py file></span></li>
<li style="text-align: left;"><span style="font-size: 24px;">Access via browser: file:///<path></span></li>
</ul>
<p style="text-align: left;"><span style="font-size: 24px;"> </span></p>
<p style="text-align: left;"><br></p>
</body>
</html>