Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Link fixes. #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from Oct 14, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
580e32f
Update Buildbot URL.
Aug 24, 2013
5609bc8
Update tox URL.
Aug 24, 2013
5982ec6
Update Travis CI URL because always https.
Aug 24, 2013
920aa37
Use Wayback Machine to resolve a dead link.
Aug 24, 2013
c52c918
Add Qt link.
Aug 24, 2013
1e38672
Update Gunicorn help link.
Aug 24, 2013
0b89708
Update link to Gondor documentation.
Aug 24, 2013
c5e3767
Update virtualenvwrapper documentation links.
Aug 24, 2013
8bd2c12
Update link to 'A Byte of Python'.
Aug 24, 2013
4cc1d11
Add link to 'Python in a Nutshell'.
Aug 24, 2013
bbbb24d
Add xmltodict
martinblech Aug 29, 2013
0d259af
fix broken tornado link in web.rst
Aug 30, 2013
eafdcd9
Update brew installation commands
JeffPaine Sep 14, 2013
4842bbb
Add back export PATH=/usr/local/share/python:$PATH section
JeffPaine Sep 15, 2013
353b3aa
Merge pull request #321 from AnSavvides/master
Sep 16, 2013
6b23faf
Merge pull request #319 from JeffPaine/patch-1
Sep 16, 2013
e66ca84
Merge pull request #312 from eluck/patch-1
Sep 16, 2013
6b53b2f
Merge pull request #311 from martinblech/master
Sep 16, 2013
5692448
Update Buildbot URL.
Aug 24, 2013
e094175
Update tox URL.
Aug 24, 2013
8b9e3bb
Update Travis CI URL because always https.
Aug 24, 2013
edf7f04
Use Wayback Machine to resolve a dead link.
Aug 24, 2013
7098237
Add Qt link.
Aug 24, 2013
55fc9b0
Update Gunicorn help link.
Aug 24, 2013
788390e
Update link to Gondor documentation.
Aug 24, 2013
cf93e79
Update virtualenvwrapper documentation links.
Aug 24, 2013
f51141c
Update link to 'A Byte of Python'.
Aug 24, 2013
2cd385e
Add link to 'Python in a Nutshell'.
Aug 24, 2013
78a1284
Merge branch 'patch-2' of github.com:kuyan/python-guide into patch-2
Sep 17, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 6 docs/dev/virtualenvs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ where they were placed.
virtualenvwrapper
-----------------

`virtualenvwrapper <http://www.doughellmann.com/projects/virtualenvwrapper/>`_
`virtualenvwrapper <http://virtualenvwrapper.readthedocs.org/en/latest/index.html>`_
provides a set of commands which makes working with virtual environments much
more pleasant. It also places all your virtual environments in one place.

Expand All @@ -72,7 +72,7 @@ To install (make sure **virtualenv** is already installed):
$ export WORKON_HOME=~/Envs
$ source /usr/local/bin/virtualenvwrapper.sh

(`Full virtualenvwrapper install instructions <http://www.doughellmann.com/docs/virtualenvwrapper/#introduction>`_.)
(`Full virtualenvwrapper install instructions <http://virtualenvwrapper.readthedocs.org/en/latest/install.html>`_.)

For Windows, you can use the `virtualenvwrapper-powershell <https://bitbucket.org/guillermooo/virtualenvwrapper-powershell>`_ clone.

Expand Down Expand Up @@ -136,7 +136,7 @@ Other useful commands
``lssitepackages``
Shows contents of ``site-packages`` directory.

`Full list of virtualenvwrapper commands <http://www.doughellmann.com/docs/virtualenvwrapper/command_ref.html#managing-environments>`_.
`Full list of virtualenvwrapper commands <http://virtualenvwrapper.readthedocs.org/en/latest/command_ref.html>`_.

autoenv
-------
Expand Down
3 changes: 1 addition & 2 deletions 3 docs/intro/learning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ A free introductory book that teaches python at the beginner level, it assumes n
previous programming experience.

`A Byte of Python for Python 2.x <http://www.ibiblio.org/swaroopch/byteofpython/read/>`_
`A Byte of Python for Python 3.x <http://www.swaroopch.org/notes/Python_en:Table_of_Contents>`_
`A Byte of Python for Python 3.x <http://swaroopch.com/notes/Python_en-Preface/>`_


Advanced
Expand Down Expand Up @@ -162,7 +162,6 @@ as writing C extensions.

`Python in a Nutshell <http://shop.oreilly.com/product/9780596001889.do>`_


The Python Language Reference
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
10 changes: 5 additions & 5 deletions 10 docs/scenarios/ci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ engine. Use it.

Buildbot
--------
`Buildbot <http://buildbot.net/buildbot/docs/current>`_ is a Python system to
`Buildbot <http://docs.buildbot.net/current/>`_ is a Python system to
automate the compile/test cycle to validate code changes.


Expand All @@ -38,7 +38,7 @@ Mule?
Tox
---

`tox <https://bitbucket.org/hpk42/tox>`_ is an automation tool providing
`tox <http://tox.readthedocs.org/en/latest/>`_ is an automation tool providing
packaging, testing and deployment of Python software right from the console or
CI server. It is a generic virtualenv management and test command line tool
which provides the following features:
Expand All @@ -53,7 +53,7 @@ which provides the following features:

Travis-CI
---------
`Travis-CI <http://travis-ci.org/>`_ is a distributed CI server which builds tests
`Travis-CI <https://travis-ci.org/>`_ is a distributed CI server which builds tests
for open source projects for free. It provides multiple workers to run Python tests
on and seamlessly integrates with Github. You can even have it comment on your Pull
Requests whether this particular changeset breaks the build or not. So if you are
Expand Down Expand Up @@ -83,6 +83,6 @@ notifications, before and after steps and much more. The
`travis-ci docs <http://about.travis-ci.org/docs/>`_ explain all of those and are very
thorough.

In order to activate testing for your project, go to `the travis-ci site <http://travis-ci.org/>`_
In order to activate testing for your project, go to `the travis-ci site <https://travis-ci.org/>`_
and login with your Github account. Then activate your project in your profile settings and that's
it. From now on, your project's tests will be run on every push to Github.
it. From now on, your project's tests will be run on every push to Github.
2 changes: 1 addition & 1 deletion 2 docs/scenarios/db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Nearly all Python database modules such as `sqlite3`, `psycopg` and

Tutorials that explain how to work with modules that conform to this interface can be found
`here <http://halfcooked.com/presentations/osdc2006/python_databases.html>`__ and
`here <http://www.amk.ca/python/writing/DB-API.html>`__.
`here <http://web.archive.org/web/20120815130844/http://www.amk.ca/python/writing/DB-API.html>`__.

SQLAlchemy
----------
Expand Down
2 changes: 1 addition & 1 deletion 2 docs/scenarios/gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GUI Applications

Qt
--
Qt is a cross-platform application framework that is widely used for developing
`Qt <http://qt-project.org/>`_ is a cross-platform application framework that is widely used for developing
software with a GUI but can also be used for non-GUI applications.

PySide
Expand Down
8 changes: 3 additions & 5 deletions 8 docs/scenarios/web.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Support can be found on its `mailing list <http://werkzeug.pocoo.org/community/#

Tornado
--------
`Tornado <http://http://www.tornadoweb.org/>`_ is a scalable, non-blocking web server and web application framework with
`Tornado <http://www.tornadoweb.org/>`_ is a scalable, non-blocking web server and web application framework with
a relative simple usage. Tornado is known for his high performance.
It was initially developed for `friendfeed <http://friendfeed.com/>`_ , a real time chat and blog system.

Expand Down Expand Up @@ -152,7 +152,7 @@ lightweight, easy to use, and uses many UNIX idioms. Gunicorn is not designed
to face the internet -- it was designed to run behind Nginx which buffers
slow requests and takes care of other important considerations. A sample
setup for Nginx + Gunicorn can be found in the
`Gunicorn help <http://gunicorn.org/deploy.html>`_.
`Gunicorn help <http://gunicorn.org/index.html#deployment>`_.

.. _uwsgi-ref:

Expand Down Expand Up @@ -235,9 +235,7 @@ and Pinax applications. Gondor supports Django versions 1.2 and 1.3 on
Python version 2.7, and can automatically configure your Django site if you
use ``local_settings.py`` for site-specific configuration information.

Gondor publishes guides to deploying `Django projects
<https://gondor.io/support/setting-up-django/>`_ and `Pinax projects
<https://gondor.io/support/setting-up-pinax/>`_ on their platform.
Gondor has a guide on deploying `Django projects <https://gondor.io/support/django/setup/>`_.


Templating
Expand Down
39 changes: 39 additions & 0 deletions 39 docs/scenarios/xml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,42 @@ and then you can get the child elements name like this:

untangle also supports loading XML from a string or an URL.

xmltodict
---------

`xmltodict <http://github.com/martinblech/xmltodict>`_ is another simple
library that aims at making xml feel like working with json.

An xml file like this:

.. code-block:: xml

<mydocument has="an attribute">
<and>
<many>elements</many>
<many>more elements</many>
</and>
<plus a="complex">
element as well
</plus>
</mydocument>

can be loaded into a python dict like this:

.. code-block:: python

import xmltodict
obj = xmltodict.parse('path/to/file.xml')

and then you can access elements, attributes and values like this:

.. code-block:: python

doc['mydocument']['@has'] # == u'an attribute'
doc['mydocument']['and']['many'] # == [u'elements', u'more elements']
doc['mydocument']['plus']['@a'] # == u'complex'
doc['mydocument']['plus']['#text'] # == u'element as well'

xmltodict also lets you roundtrip back to xml with the unparse function,
has a streaming mode suitable for handling files that don't fit in memory
and supports namespaces.
7 changes: 1 addition & 6 deletions 7 docs/starting/install/osx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ line at the bottom of your ``~/.bashrc`` file

Now, we can install Python 2.7: ::

$ brew install python --framework
$ brew install python

This will take a minute or two. Once that's complete, you'll have to add the
new Python scripts directory to your ``PATH``
Expand All @@ -63,11 +63,6 @@ new Python scripts directory to your ``PATH``

export PATH=/usr/local/share/python:$PATH

The ``--framework`` option tells Homebrew to compile a Framework-style Python
build, rather than a UNIX-style build. The outdated version of Python that
Snow Leopard comes packaged with is built as a Framework, so this helps avoid
some future module installation bugs.


Distribute & Pip
----------------
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.