mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 06:46:17 +00:00
Bump deps
This commit is contained in:
+3
-3
@@ -15,15 +15,15 @@ The html version of this guide is built with [sphinx](http://www.sphinx-doc.org/
|
||||
pip install --user sphinx
|
||||
```
|
||||
|
||||
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
|
||||
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/`
|
||||
|
||||
After navigating to this folder, you can then use python's built in webserver to view your changes locally:
|
||||
After navigating to this folder, you can then use Python's built in webserver to view your changes locally:
|
||||
|
||||
``` bash
|
||||
python3 -m http.server
|
||||
```
|
||||
|
||||
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:
|
||||
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:
|
||||
|
||||
``` bash
|
||||
python3 -m http.server 8005 --bind 127.0.0.1
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
404 — Not Found
|
||||
===============
|
||||
|
||||
**Sorry, but we couldn't find the page you requested.**
|
||||
|
||||
It looks like this was the result of either:
|
||||
|
||||
- a mistyped address
|
||||
- an out-of-date link
|
||||
|
||||
`Click here to go back to the homepage. <http://docs.python-guide.org/>`_
|
||||
|
||||
Or, try `searching <http://docs.python-guide.org/en/latest/search/>`_.
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<script>
|
||||
ga('send', {
|
||||
hitType: 'event',
|
||||
eventCategory: 'error',
|
||||
eventAction: '404',
|
||||
eventLabel: document.referrer,
|
||||
nonInteraction: true
|
||||
});
|
||||
</script>
|
||||
Vendored
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 83 KiB |
Vendored
-46
@@ -1,47 +1 @@
|
||||
<!-- Alabaster (krTheme++) Hacks -->
|
||||
<aside id="python27">
|
||||
<a href="https://www.kennethreitz.org/requests3"><strong>Requests 3.0</strong> development is underway, and your financial help is appreciated!</a>
|
||||
</aside>
|
||||
|
||||
<!-- Python 2 Death Clock™ -->
|
||||
<style type="text/css">
|
||||
body { margin-top: 4em; }
|
||||
#python27 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0; right: 0;
|
||||
height: auto;
|
||||
text-align: center;
|
||||
color: white;
|
||||
background-color: black;
|
||||
font-size: larger;
|
||||
line-height: 3;
|
||||
}
|
||||
#python27 a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
|
||||
<script>
|
||||
var death = new Date('2020-04-12');
|
||||
|
||||
var diff = moment.duration(death - moment());
|
||||
|
||||
document.querySelector('#python27 time').innerText = (diff.years() * 12) + diff.months();
|
||||
</script>
|
||||
-->
|
||||
<script type="text/javascript">
|
||||
var _gauges = _gauges || [];
|
||||
(function() {
|
||||
var t = document.createElement('script');
|
||||
t.type = 'text/javascript';
|
||||
t.async = true;
|
||||
t.id = 'gauges-tracker';
|
||||
t.setAttribute('data-site-id', '56ca79a64b2ffa7a470027ea');
|
||||
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');
|
||||
t.src = 'https://d36ee2fcip1434.cloudfront.net/track.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(t, s);
|
||||
})();
|
||||
</script>
|
||||
Vendored
+1
-5
@@ -8,7 +8,7 @@
|
||||
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.
|
||||
</p>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<h3>Stay Informed</h3>
|
||||
<p>Receive updates on new releases and upcoming projects.</p>
|
||||
@@ -21,10 +21,6 @@
|
||||
<p><a href="http://tinyletter.com/kennethreitz">Join Mailing List</a>.</p>
|
||||
<p><a href="https://saythanks.io/to/kennethreitz">Say Thanks!</a></p>
|
||||
|
||||
<a href="http://www.dataquest.io/?utm_source=hitchhikersguide&utm_medium=ad">
|
||||
<img src="{{ pathto('_static/ad.png', 1) }}" alt="">
|
||||
</a>
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>O'Reilly Book</h3>
|
||||
|
||||
Vendored
+1
-4
@@ -8,6 +8,7 @@
|
||||
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.
|
||||
</p>
|
||||
|
||||
<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>
|
||||
|
||||
<h3>Get Updates</h3>
|
||||
<p>Receive updates on new releases and upcoming projects.</p>
|
||||
@@ -19,10 +20,6 @@
|
||||
<p><a href="https://saythanks.io/to/kennethreitz">Say Thanks!</a></p>
|
||||
<p><a href="http://tinyletter.com/kennethreitz">Join Mailing List</a>.</p>
|
||||
|
||||
<a href="http://www.dataquest.io/?utm_source=hitchhikersguide&utm_medium=ad">
|
||||
<img src="{{ pathto('_static/ad.png', 1) }}" alt="">
|
||||
</a>
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>O'Reilly Book</h3>
|
||||
|
||||
+2
-2
@@ -106,11 +106,11 @@ html_theme = 'alabaster'
|
||||
# documentation.
|
||||
html_theme_options = {
|
||||
'show_powered_by': False,
|
||||
'github_user': 'kennethreitz',
|
||||
'github_user': 'realpython',
|
||||
'github_repo': 'python-guide',
|
||||
'github_banner': True,
|
||||
'show_related': False,
|
||||
'note_bg': '#FFF59C'
|
||||
'note_bg': '#FFF59C',
|
||||
}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
|
||||
@@ -5,7 +5,7 @@ Pipenv & Virtual Environments
|
||||
|
||||
.. image:: https://farm5.staticflickr.com/4290/35294660055_42c02b2316_k_d.jpg
|
||||
|
||||
This tutorial walks you through installing and using Python packages.
|
||||
This tutorial walks you through installing and using Python packages.
|
||||
|
||||
It will show you how to install and use the necessary tools and make strong
|
||||
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
|
||||
`Installing Python`_ section of this guide.
|
||||
|
||||
.. Note:: If you're newcomer and you get an error like this:
|
||||
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> python
|
||||
@@ -76,7 +76,7 @@ cases.
|
||||
|
||||
Use ``pip`` to install Pipenv:
|
||||
|
||||
.. code-block:: python
|
||||
.. code-block:: console
|
||||
|
||||
$ pip install --user pipenv
|
||||
|
||||
@@ -211,7 +211,7 @@ Install virtualenv via pip:
|
||||
.. code-block:: console
|
||||
|
||||
$ pip install virtualenv
|
||||
|
||||
|
||||
Test your installation
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ The Hitchhiker's Guide to Python!
|
||||
Greetings, Earthling! Welcome to The Hitchhiker's Guide to Python.
|
||||
|
||||
**This is a living, breathing guide.** If you'd like to contribute,
|
||||
`fork us on GitHub <https://github.com/kennethreitz/python-guide>`_!
|
||||
`fork us on GitHub <https://github.com/realpython/python-guide>`_!
|
||||
|
||||
This handcrafted guide exists to provide both novice and expert Python
|
||||
developers a best practice handbook to the installation, configuration, and
|
||||
|
||||
+19
-12
@@ -15,13 +15,21 @@ quick-start guide to the language.
|
||||
|
||||
`The Python Tutorial <http://docs.python.org/tutorial/index.html>`_
|
||||
|
||||
Real Python
|
||||
~~~~~~~~~~~
|
||||
|
||||
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.
|
||||
|
||||
`Real Python <https://realpython.com/>`_
|
||||
|
||||
|
||||
Python Basics
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
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.
|
||||
|
||||
`Python basics <https://pythonbasics.org/>`_
|
||||
|
||||
|
||||
Python for Beginners
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -32,14 +40,6 @@ At last it finishes off with tutorial "How to access MySQL db using python"
|
||||
|
||||
`Python for beginners <http://thepythonguru.com/>`_
|
||||
|
||||
Learn Python for Data Science Interactively
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
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.
|
||||
|
||||
|
||||
`Python for data science <http://datacamp.com/?tap_a=5644-dce66f&tap_s=116411-750171>`_
|
||||
|
||||
Learn Python Interactive Tutorial
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -51,12 +51,10 @@ without having to install Python locally.
|
||||
|
||||
`Learn Python <http://www.learnpython.org/>`_
|
||||
|
||||
|
||||
If you want a more traditional book, *Python For You and Me* is an excellent
|
||||
resource for learning all aspects of the language.
|
||||
|
||||
`Python for You and Me <https://pymbook.readthedocs.io/>`_
|
||||
`Learn Python Interactively with DataCamp! <https://www.datacamp.com/>`_
|
||||
|
||||
Learn Python Step by Step
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -198,6 +196,15 @@ making the process of learning Python fun and engaging.
|
||||
Intermediate
|
||||
------------
|
||||
|
||||
Python Tricks: The Book
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Discover Python's best practices with simple examples and start writing even more beautiful + Pythonic code. "Python Tricks: The Book" shows you exactly how.
|
||||
|
||||
You’ll master intermediate and advanced-level features in Python with practical examples and a clear narrative:
|
||||
|
||||
`Python Tricks: The Book <https://realpython.com/products/python-tricks-book/>`_
|
||||
|
||||
Effective Python
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -250,7 +257,7 @@ and can make classes and objects behave in different and magical ways.
|
||||
|
||||
.. note:: The Rafekettler.com is currently down, you can go to their Github version directly. Here you can find a PDF version:
|
||||
`A Guide to Python's Magic Methods (repo on GitHub) <https://github.com/RafeKettler/magicmethods/blob/master/magicmethods.pdf>`_
|
||||
|
||||
|
||||
|
||||
|
||||
For Engineers and Scientists
|
||||
|
||||
@@ -105,5 +105,3 @@ using Python or we can save it to a file and share it with the world.
|
||||
Some more cool ideas to think about are modifying this script to iterate
|
||||
through the rest of the pages of this example dataset, or rewriting this
|
||||
application to use threads for improved speed.
|
||||
|
||||
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.
|
||||
|
||||
+19
-11
@@ -1,12 +1,20 @@
|
||||
alabaster==0.7.7
|
||||
Babel==2.2.0
|
||||
docutils==0.12
|
||||
Jinja2==2.8
|
||||
MarkupSafe==0.23
|
||||
Pygments==2.1.1
|
||||
pytz==2015.7
|
||||
six==1.10.0
|
||||
alabaster==0.7.11
|
||||
Babel==2.6.0
|
||||
certifi==2018.4.16
|
||||
chardet==3.0.4
|
||||
docutils==0.14
|
||||
idna==2.7
|
||||
imagesize==1.0.0
|
||||
Jinja2==2.10
|
||||
MarkupSafe==1.0
|
||||
packaging==17.1
|
||||
Pygments==2.2.0
|
||||
pyparsing==2.2.0
|
||||
pytz==2018.5
|
||||
requests==2.19.1
|
||||
six==1.11.0
|
||||
snowballstemmer==1.2.1
|
||||
Sphinx==1.3.5
|
||||
sphinx-rtd-theme==0.1.9
|
||||
wheel==0.29.0
|
||||
Sphinx==1.7.6
|
||||
sphinx-sitemap==0.3.1
|
||||
sphinxcontrib-websupport==1.1.0
|
||||
urllib3==1.23
|
||||
|
||||
Reference in New Issue
Block a user