Skip to content

Commit 75b235f

Browse files
committed
Bump deps
1 parent 4f43620 commit 75b235f

File tree

12 files changed

+75
-90
lines changed

12 files changed

+75
-90
lines changed

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ The html version of this guide is built with [sphinx](http://www.sphinx-doc.org/
1515
pip install --user sphinx
1616
```
1717

18-
Then navigate to the directory of the makefile and ```make build``` or ```make html```. Sphinx will then generate the html in a folder called _build/html
18+
Then navigate to the directory of the Makefile and ```make build``` or ```make html```. Sphinx will then generate the HTML in a folder called `_build/html/`
1919

20-
After navigating to this folder, you can then use python's built in webserver to view your changes locally:
20+
After navigating to this folder, you can then use Python's built in webserver to view your changes locally:
2121

2222
``` bash
2323
python3 -m http.server
2424
```
2525

26-
By default, http.server listens on every ip address bound on your host on port 8000. To bind to a specific one, say, localhost on port 8005:
26+
By default, `http.server` listens on every IP address bound on your host on port 8000. To bind to a specific one, say, localhost on port 8005:
2727

2828
``` bash
2929
python3 -m http.server 8005 --bind 127.0.0.1

docs/404.rst

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
404 — Not Found
2+
===============
3+
4+
**Sorry, but we couldn't find the page you requested.**
5+
6+
It looks like this was the result of either:
7+
8+
- a mistyped address
9+
- an out-of-date link
10+
11+
`Click here to go back to the homepage. <http://docs.python-guide.org/>`_
12+
13+
Or, try `searching <http://docs.python-guide.org/en/latest/search/>`_.
14+
15+
.. raw:: html
16+
17+
<script>
18+
ga('send', {
19+
hitType: 'event',
20+
eventCategory: 'error',
21+
eventAction: '404',
22+
eventLabel: document.referrer,
23+
nonInteraction: true
24+
});
25+
</script>

docs/_static/ad.png

-83.2 KB
Binary file not shown.

docs/_templates/hacks.html

-46
Original file line numberDiff line numberDiff line change
@@ -1,47 +1 @@
11
<!-- Alabaster (krTheme++) Hacks -->
2-
<aside id="python27">
3-
<a href="https://www.kennethreitz.org/requests3"><strong>Requests 3.0</strong> development is underway, and your financial help is appreciated!</a>
4-
</aside>
5-
6-
<!-- Python 2 Death Clock™ -->
7-
<style type="text/css">
8-
body { margin-top: 4em; }
9-
#python27 {
10-
position: fixed;
11-
top: 0;
12-
left: 0; right: 0;
13-
height: auto;
14-
text-align: center;
15-
color: white;
16-
background-color: black;
17-
font-size: larger;
18-
line-height: 3;
19-
}
20-
#python27 a {
21-
color: white;
22-
}
23-
24-
</style>
25-
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
26-
<script>
27-
var death = new Date('2020-04-12');
28-
29-
var diff = moment.duration(death - moment());
30-
31-
document.querySelector('#python27 time').innerText = (diff.years() * 12) + diff.months();
32-
</script>
33-
-->
34-
<script type="text/javascript">
35-
var _gauges = _gauges || [];
36-
(function() {
37-
var t = document.createElement('script');
38-
t.type = 'text/javascript';
39-
t.async = true;
40-
t.id = 'gauges-tracker';
41-
t.setAttribute('data-site-id', '56ca79a64b2ffa7a470027ea');
42-
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');
43-
t.src = 'https://d36ee2fcip1434.cloudfront.net/track.js';
44-
var s = document.getElementsByTagName('script')[0];
45-
s.parentNode.insertBefore(t, s);
46-
})();
47-
</script>

docs/_templates/sidebarintro.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This opinionated guide exists to provide both novice and expert Python developers a best practice handbook to the installation, configuration, and usage of Python on a daily basis.
99
</p>
1010

11-
11+
<iframe src="https://ghbtns.com/github-btn.html?user=realpython&repo=python-guide&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
1212

1313
<h3>Stay Informed</h3>
1414
<p>Receive updates on new releases and upcoming projects.</p>
@@ -21,10 +21,6 @@ <h3>Stay Informed</h3>
2121
<p><a href="http://tinyletter.com/kennethreitz">Join Mailing List</a>.</p>
2222
<p><a href="https://saythanks.io/to/kennethreitz">Say Thanks!</a></p>
2323

24-
<a href="http://www.dataquest.io/?utm_source=hitchhikersguide&utm_medium=ad">
25-
<img src="{{ pathto('_static/ad.png', 1) }}" alt="">
26-
</a>
27-
2824
<hr>
2925

3026
<h3>O'Reilly Book</h3>

docs/_templates/sidebarlogo.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
This opinionated guide exists to provide both novice and expert Python developers a best practice handbook to the installation, configuration, and usage of Python on a daily basis.
99
</p>
1010

11+
<iframe src="https://ghbtns.com/github-btn.html?user=realpython&repo=python-guide&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
1112

1213
<h3>Get Updates</h3>
1314
<p>Receive updates on new releases and upcoming projects.</p>
@@ -19,10 +20,6 @@ <h3>Get Updates</h3>
1920
<p><a href="https://saythanks.io/to/kennethreitz">Say Thanks!</a></p>
2021
<p><a href="http://tinyletter.com/kennethreitz">Join Mailing List</a>.</p>
2122

22-
<a href="http://www.dataquest.io/?utm_source=hitchhikersguide&utm_medium=ad">
23-
<img src="{{ pathto('_static/ad.png', 1) }}" alt="">
24-
</a>
25-
2623
<hr>
2724

2825
<h3>O'Reilly Book</h3>

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@
106106
# documentation.
107107
html_theme_options = {
108108
'show_powered_by': False,
109-
'github_user': 'kennethreitz',
109+
'github_user': 'realpython',
110110
'github_repo': 'python-guide',
111111
'github_banner': True,
112112
'show_related': False,
113-
'note_bg': '#FFF59C'
113+
'note_bg': '#FFF59C',
114114
}
115115

116116
# Add any paths that contain custom themes here, relative to this directory.

docs/dev/virtualenvs.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Pipenv & Virtual Environments
55

66
.. image:: https://farm5.staticflickr.com/4290/35294660055_42c02b2316_k_d.jpg
77

8-
This tutorial walks you through installing and using Python packages.
8+
This tutorial walks you through installing and using Python packages.
99

1010
It will show you how to install and use the necessary tools and make strong
1111
recommendations on best practices. Keep in mind that Python is used for a great
@@ -34,7 +34,7 @@ install the latest 3.x version from `python.org`_ or refer to the
3434
`Installing Python`_ section of this guide.
3535

3636
.. Note:: If you're newcomer and you get an error like this:
37-
37+
3838
.. code-block:: python
3939
4040
>>> python
@@ -76,7 +76,7 @@ cases.
7676

7777
Use ``pip`` to install Pipenv:
7878

79-
.. code-block:: python
79+
.. code-block:: console
8080
8181
$ pip install --user pipenv
8282
@@ -211,7 +211,7 @@ Install virtualenv via pip:
211211
.. code-block:: console
212212
213213
$ pip install virtualenv
214-
214+
215215
Test your installation
216216

217217
.. code-block:: console

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Hitchhiker's Guide to Python!
99
Greetings, Earthling! Welcome to The Hitchhiker's Guide to Python.
1010

1111
**This is a living, breathing guide.** If you'd like to contribute,
12-
`fork us on GitHub <https://github.com/kennethreitz/python-guide>`_!
12+
`fork us on GitHub <https://github.com/realpython/python-guide>`_!
1313

1414
This handcrafted guide exists to provide both novice and expert Python
1515
developers a best practice handbook to the installation, configuration, and

docs/intro/learning.rst

+19-12
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,21 @@ quick-start guide to the language.
1515

1616
`The Python Tutorial <http://docs.python.org/tutorial/index.html>`_
1717

18+
Real Python
19+
~~~~~~~~~~~
20+
21+
Real Python is a repository of free and in-depth Python tutorials created by a diverse team of professional Python developers. At Real Python you can learn all things Python from the ground up. Everything from the absolute basics of Python, to web development and web scraping, to data visualization, and beyond.
22+
23+
`Real Python <https://realpython.com/>`_
24+
25+
1826
Python Basics
1927
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2028

2129
pythonbasics.org is an introductiory tutorial for beginners. The tutorial includes exercises. It covers the basics and there are also in-depth lessons like object oriented programming and regular expressions.
2230

2331
`Python basics <https://pythonbasics.org/>`_
24-
32+
2533
Python for Beginners
2634
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2735

@@ -32,14 +40,6 @@ At last it finishes off with tutorial "How to access MySQL db using python"
3240

3341
`Python for beginners <http://thepythonguru.com/>`_
3442

35-
Learn Python for Data Science Interactively
36-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37-
38-
If you prefer an online interactive environment to learn Python for Data Science, `this free python tutorial by DataCamp <https://www.datacamp.com/courses/intro-to-python-for-data-science?tap_a=5644-dce66f&tap_s=116411-750171>`_ is a great way to get started. If you're already somewhat advanced and interested in machine learning, check out this `course on Supervised Learning with scikit-learn <https://www.datacamp.com/courses/supervised-learning-with-scikit-learn?tap_a=5644-dce66f&tap_s=116411-750171>`_, by one the core developers of scikit-learn.
39-
40-
41-
`Python for data science <http://datacamp.com/?tap_a=5644-dce66f&tap_s=116411-750171>`_
42-
4343
Learn Python Interactive Tutorial
4444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4545

@@ -51,12 +51,10 @@ without having to install Python locally.
5151

5252
`Learn Python <http://www.learnpython.org/>`_
5353

54-
5554
If you want a more traditional book, *Python For You and Me* is an excellent
5655
resource for learning all aspects of the language.
5756

5857
`Python for You and Me <https://pymbook.readthedocs.io/>`_
59-
`Learn Python Interactively with DataCamp! <https://www.datacamp.com/>`_
6058

6159
Learn Python Step by Step
6260
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -198,6 +196,15 @@ making the process of learning Python fun and engaging.
198196
Intermediate
199197
------------
200198

199+
Python Tricks: The Book
200+
~~~~~~~~~~~~~~~~~~~~~~~
201+
202+
Discover Python's best practices with simple examples and start writing even more beautiful + Pythonic code. "Python Tricks: The Book" shows you exactly how.
203+
204+
You’ll master intermediate and advanced-level features in Python with practical examples and a clear narrative:
205+
206+
`Python Tricks: The Book <https://realpython.com/products/python-tricks-book/>`_
207+
201208
Effective Python
202209
~~~~~~~~~~~~~~~~
203210

@@ -250,7 +257,7 @@ and can make classes and objects behave in different and magical ways.
250257

251258
.. note:: The Rafekettler.com is currently down, you can go to their Github version directly. Here you can find a PDF version:
252259
`A Guide to Python's Magic Methods (repo on GitHub) <https://github.com/RafeKettler/magicmethods/blob/master/magicmethods.pdf>`_
253-
260+
254261

255262

256263
For Engineers and Scientists

docs/scenarios/scrape.rst

-2
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,3 @@ using Python or we can save it to a file and share it with the world.
105105
Some more cool ideas to think about are modifying this script to iterate
106106
through the rest of the pages of this example dataset, or rewriting this
107107
application to use threads for improved speed.
108-
109-
If you want to learn how to import data using python - this `DataCamp course on Importing Data <https://www.datacamp.com/courses/importing-data-in-r-part-1?tap_a=5644-dce66f&tap_s=116411-750171>`_ is a great place to start.

requirements.txt

+19-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
alabaster==0.7.7
2-
Babel==2.2.0
3-
docutils==0.12
4-
Jinja2==2.8
5-
MarkupSafe==0.23
6-
Pygments==2.1.1
7-
pytz==2015.7
8-
six==1.10.0
1+
alabaster==0.7.11
2+
Babel==2.6.0
3+
certifi==2018.4.16
4+
chardet==3.0.4
5+
docutils==0.14
6+
idna==2.7
7+
imagesize==1.0.0
8+
Jinja2==2.10
9+
MarkupSafe==1.0
10+
packaging==17.1
11+
Pygments==2.2.0
12+
pyparsing==2.2.0
13+
pytz==2018.5
14+
requests==2.19.1
15+
six==1.11.0
916
snowballstemmer==1.2.1
10-
Sphinx==1.3.5
11-
sphinx-rtd-theme==0.1.9
12-
wheel==0.29.0
17+
Sphinx==1.7.6
18+
sphinx-sitemap==0.3.1
19+
sphinxcontrib-websupport==1.1.0
20+
urllib3==1.23

0 commit comments

Comments
 (0)