From 58befe505fd651365abc4bb4d9413151cca8d2c8 Mon Sep 17 00:00:00 2001 From: pyfisch Date: Fri, 28 Aug 2020 11:14:04 +0200 Subject: [PATCH 01/36] Remove simplejson from guide The simplejson library was only needed for Python 2.5 and earlier. Update documentation link to Python 3. --- docs/scenarios/json.rst | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/docs/scenarios/json.rst b/docs/scenarios/json.rst index 130ad3031..1c3663777 100644 --- a/docs/scenarios/json.rst +++ b/docs/scenarios/json.rst @@ -5,7 +5,7 @@ JSON .. image:: /_static/photos/33928819683_97b5c6a184_k_d.jpg -The `json `_ library can parse +The `json `_ library can parse JSON from strings or files. The library parses JSON into a Python dictionary or list. It can also convert Python dictionaries or lists into JSON strings. @@ -46,27 +46,3 @@ You can also convert the following to JSON: print(json.dumps(d)) '{"first_name": "Guido", "last_name": "Rossum", "titles": ["BDFL", "Developer"]}' - - -********** -simplejson -********** - -The json library was added to Python in version 2.6. -If you're using an earlier version of Python, the -`simplejson `_ library is -available via PyPI. - -simplejson mimics the json standard library. It is available so that developers -that use older versions of Python can use the latest features available in the -json lib. - -You can start using simplejson when the json library is not available by -importing simplejson under a different name: - -.. code-block:: python - - import simplejson as json - -After importing simplejson as `json`, the above examples will all work as if you -were using the standard json library. From 140f1039acf81c58eb5dfabdda807df5a3ab3437 Mon Sep 17 00:00:00 2001 From: pyfisch Date: Sat, 29 Aug 2020 22:47:06 +0200 Subject: [PATCH 02/36] Remove section on unittest2 Only needed for Python 2.6 and below --- docs/writing/tests.rst | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/docs/writing/tests.rst b/docs/writing/tests.rst index ccfc93892..7809d9ffe 100644 --- a/docs/writing/tests.rst +++ b/docs/writing/tests.rst @@ -248,35 +248,6 @@ simple INI-style configuration file. `tox `_ -Unittest2 ---------- - -unittest2 is a backport of Python 2.7's unittest module which has an improved -API and better assertions over the one available in previous versions of Python. - -If you're using Python 2.6 or below, you can install it with pip: - -.. code-block:: console - - $ pip install unittest2 - -You may want to import the module under the name unittest to make porting code -to newer versions of the module easier in the future - -.. code-block:: python - - import unittest2 as unittest - - class MyTest(unittest.TestCase): - ... - -This way if you ever switch to a newer Python version and no longer need the -unittest2 module, you can simply change the import in your test module without -the need to change any other code. - - `unittest2 `_ - - mock ---- From c53cf42b6b20f6554750d39bea2cf562e128114a Mon Sep 17 00:00:00 2001 From: Henry Harutyunyan Date: Wed, 16 Sep 2020 15:41:44 +0400 Subject: [PATCH 03/36] Fixes for Python 2 End of Life Since Python2 reached the end of its life in January, we need to update the page "Picking a Python Interpreter" accordingly --- docs/starting/which-python.rst | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/docs/starting/which-python.rst b/docs/starting/which-python.rst index d9dcc13ec..ee527a64f 100644 --- a/docs/starting/which-python.rst +++ b/docs/starting/which-python.rst @@ -20,9 +20,9 @@ one might think. The basic gist of the state of things is as follows: -1. Most production applications today use Python 2.7. +1. Most production applications today use Python 3. 2. Python 3 is ready for the production deployment of applications today. -3. Python 2.7 will only receive necessary security updates until 2020 [#pep373_eol]_. +3. Python 2 reached the end of its life on January 1, 2020 [#pep373_eol]_. 4. The brand name "Python" encapsulates both Python 3 and Python 2. @@ -40,10 +40,6 @@ I'll be blunt: - If you're learning Python for the first time, familiarizing yourself with Python 2.7 will be very useful, but not more useful than learning Python 3. - Learn both. They are both "Python". -- Software that is already built often depends on Python 2.7. -- If you are writing a new open source Python library, it's best to write it for both Python 2 and 3 - simultaneously. Only supporting Python 3 for a new library you want to be widely adopted is a - political statement and will alienate many of your users. This is not a problem — slowly, over the next three years, this will become less the case. ********* @@ -58,8 +54,6 @@ Given such, only use Python 2 if you have a strong reason to, such as a pre-existing code-base, a Python 2 exclusive library, simplicity/familiarity, or, of course, you absolutely love and are inspired by Python 2. No harm in that. -Check out `Can I Use Python 3? `_ to see if any -software you're depending on will block your adoption of Python 3. `Further Reading `_ @@ -67,9 +61,7 @@ It is possible to `write code that works on Python 2.6, 2.7, and Python 3 `_. This ranges from trivial to hard depending upon the kind of software you are writing; if you're a beginner there are far more important things to -worry about. Note that Python 2.6 is end-of-life upstream, so you shouldn't -try to write 2.6-compatible code unless you're being paid specifically to -do that. +worry about. *************** @@ -135,7 +127,8 @@ expose Python code to other languages in the .NET framework. IronPython directly into the Visual Studio development environment, making it an ideal choice for Windows developers. -IronPython supports Python 2.7. [#iron_ver]_ +IronPython supports Python 2.7. [#iron_ver]_ IronPython 3 [#iron_ver3]_ +is being developed, but is not ready for use as of September 2020. PythonNet --------- @@ -151,16 +144,16 @@ installations on non-Windows operating systems, such as OS X and Linux, to operate within the .NET framework. It can be run in addition to IronPython without conflict. -Pythonnet supports from Python 2.6 up to Python 3.5. [#pythonnet_ver1]_ [#pythonnet_ver2]_ +Pythonnet is compatible with Python 2.7 and 3.5-3.8. [#pythonnet_ver1]_ .. [#pypy_ver] http://pypy.org/compat.html .. [#jython_ver] https://hg.python.org/jython/file/412a8f9445f7/NEWS -.. [#iron_ver] http://ironpython.codeplex.com/releases/view/81726 +.. [#iron_ver] https://ironpython.net/download/ -.. [#pythonnet_ver1] https://travis-ci.org/pythonnet/pythonnet +.. [#iron_ver3] https://github.com/IronLanguages/ironpython3 -.. [#pythonnet_ver2] https://ci.appveyor.com/project/TonyRoberts/pythonnet-480xs +.. [#pythonnet_ver1] https://pythonnet.github.io/ .. [#pep373_eol] https://www.python.org/dev/peps/pep-0373/#id2 From 4075a0b8408f738ddf5af786d10dc0e259426dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 20 Sep 2020 13:56:53 +0200 Subject: [PATCH 04/36] Update Fedora instructions a bit --- docs/starting/install3/linux.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/starting/install3/linux.rst b/docs/starting/install3/linux.rst index ddd6a6086..b02204bc0 100644 --- a/docs/starting/install3/linux.rst +++ b/docs/starting/install3/linux.rst @@ -37,8 +37,8 @@ For example on Fedora, you would use `dnf`: Note that if the version of the ``python3`` package is not recent enough for you, there may be ways of installing more recent versions as well, -depending on you distribution. For example installing the ``python36`` package -on Fedora 25 to get Python 3.6. If you are a Fedora user, you might want +depending on you distribution. For example installing the ``python3.9`` package +on Fedora 32 to get Python 3.9. If you are a Fedora user, you might want to read about `multiple Python versions available in Fedora`_. .. _multiple Python versions available in Fedora: https://developer.fedoraproject.org/tech/languages/python/multiple-pythons.html @@ -54,13 +54,13 @@ At this point, you may have system Python 2.7 available as well. $ python -This will launch the Python 2 interpreter. +This might launch the Python 2 interpreter. .. code-block:: console $ python3 -This will launch the Python 3 interpreter. +This will always launch the Python 3 interpreter. **************** From 5ae6568805fc7197236bee406ae6cfb435e2145d Mon Sep 17 00:00:00 2001 From: Henry Harutyunyan Date: Mon, 21 Sep 2020 20:14:47 +0400 Subject: [PATCH 05/36] Update docs/starting/which-python.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartosz Zaczyński --- docs/starting/which-python.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/starting/which-python.rst b/docs/starting/which-python.rst index ee527a64f..b1e3a8212 100644 --- a/docs/starting/which-python.rst +++ b/docs/starting/which-python.rst @@ -146,7 +146,7 @@ addition to IronPython without conflict. Pythonnet is compatible with Python 2.7 and 3.5-3.8. [#pythonnet_ver1]_ -.. [#pypy_ver] http://pypy.org/compat.html +.. [#pypy_ver] https://pypy.org/compat.html .. [#jython_ver] https://hg.python.org/jython/file/412a8f9445f7/NEWS From 9385d82078e2532db56c0ddf649496db54267edf Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Mon, 28 Sep 2020 10:34:16 -0400 Subject: [PATCH 06/36] update brew download link if you use the older `ruby` command, the brew installer throws a warning: ``` Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in Bash. Please migrate to the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" ``` --- docs/starting/install3/osx.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/starting/install3/osx.rst b/docs/starting/install3/osx.rst index 654cca115..37252d615 100644 --- a/docs/starting/install3/osx.rst +++ b/docs/starting/install3/osx.rst @@ -50,7 +50,7 @@ your favorite OS X terminal emulator and run .. code-block:: console - $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" The script will explain what changes it will make and prompt you before the installation begins. From 715472dc21666db4164f182e5162289be6d1a244 Mon Sep 17 00:00:00 2001 From: Tomer Cohen Date: Sat, 15 Aug 2020 12:50:03 +0300 Subject: [PATCH 07/36] Fix link to direnv.net on file virtualenvs.rst --- docs/dev/virtualenvs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev/virtualenvs.rst b/docs/dev/virtualenvs.rst index 326b6e288..b4591e43b 100644 --- a/docs/dev/virtualenvs.rst +++ b/docs/dev/virtualenvs.rst @@ -438,4 +438,4 @@ Install it on Mac OS X using ``brew``: $ brew install direnv -On Linux follow the instructions at `direnv.net ` +On Linux follow the instructions at `direnv.net `_ From e438a80ec88bc7b0fec1d267d3032f74da74aecf Mon Sep 17 00:00:00 2001 From: Moritz Schillinger Date: Thu, 8 Oct 2020 23:56:52 +0200 Subject: [PATCH 08/36] Add auto-formatting section --- docs/writing/style.rst | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 91f089374..d40033afa 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -496,6 +496,14 @@ Then run it on a file or series of files to get a report of any violations. optparse.py:472:29: E221 multiple spaces before operator optparse.py:544:21: W601 .has_key() is deprecated, use 'in' +Auto-Formatting +~~~~~~~~~~~~~~~ + +There are several auto-formatting tools that can reformat your code, +in order to comply with PEP 8. + +**autopep8** + The program `autopep8 `_ can be used to automatically reformat code in the PEP 8 style. Install the program with: @@ -513,6 +521,49 @@ Excluding the ``--in-place`` flag will cause the program to output the modified code directly to the console for review. The ``--aggressive`` flag will perform more substantial changes and can be applied multiple times for greater effect. +**yapf** + +While autopep8 focuses on solving the PEP 8 violations, `yapf `_ +tries to improve the format of your code aside from complying with PEP 8. +This formatter aims at providing as good looking code as a programmer who +writes PEP 8 compliant code. +It gets installed with: + +.. code-block:: console + + $ pip install yapf + +Run the auto-formatting of a file with: + +.. code-block:: console + + $ yapf --in-place optparse.py + +Similar to autopep8, running the command without the ``--in-place`` flag will +output the diff for review before applying the changes. + +**black** + +The auto-formatter `black `_ offers an +opinionated and deterministic reformatting of your code base. +Its main focus lies in providing a uniform code style without the need of +configuration throughout its users. Hence, users of black are able to forget +about formatting altogether. Also, due to the deterministic approach minimal +git diffs with only the relevant changes are guaranteed. You can install the +tool as follows: + +.. code-block:: console + + $ pip install black + +A python file can be formatted with: + +.. code-block:: console + + $ black optparse.py + +Adding the ``--diff`` flag provides the code modification for review without +direct application. *********** Conventions From e5caf43179e3241da3007390e46f2b063ece172d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E4=B9=9D=E9=BC=8E?= <109224573@qq.com> Date: Tue, 20 Oct 2020 10:45:24 +0800 Subject: [PATCH 09/36] Remove Eldarion --- docs/scenarios/web.rst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docs/scenarios/web.rst b/docs/scenarios/web.rst index 22e78def1..a2c84818b 100644 --- a/docs/scenarios/web.rst +++ b/docs/scenarios/web.rst @@ -280,13 +280,6 @@ how to set up your first application. Heroku is the recommended PaaS for deploying Python web applications today. -Eldarion --------- - -`Eldarion `_ (formerly known as Gondor) is a PaaS powered -by Kubernetes, CoreOS, and Docker. They support any WSGI application and have a -guide on deploying `Django projects `_. - ********** Templating From 558e60c33cc5b8117546965acf6d13420e9939f9 Mon Sep 17 00:00:00 2001 From: Lokesh Dhakal <9079364+aviranzerioniac@users.noreply.github.com> Date: Sun, 22 Nov 2020 15:54:31 +0100 Subject: [PATCH 10/36] Minor Changes --- docs/index.rst | 6 +++--- docs/writing/documentation.rst | 14 +++++++------- docs/writing/gotchas.rst | 15 ++++++++------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index dcd56579f..df7fcb8ed 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,7 @@ contain the root `toctree` directive. .. meta:: - :description: An opinionated guide to the Python programming language and a best practice handbook to the installation, configuration, and usage of Python on a daily basis. + :description: An opinionated guide to the Python programming language and a best practice handbook for the installation, configuration, and usage of Python on a daily basis. ################################# @@ -17,7 +17,7 @@ Greetings, Earthling! Welcome to The Hitchhiker's Guide to Python. `fork us on GitHub `_! This handcrafted guide exists to provide both novice and expert Python -developers a best practice handbook to the installation, configuration, and +developers a best practice handbook for the installation, configuration, and usage of Python on a daily basis. This guide is **opinionated** in a way that is almost, but not quite, entirely @@ -25,7 +25,7 @@ This guide is **opinionated** in a way that is almost, but not quite, entirely available here. Rather, you'll find a nice concise list of highly recommended options. -.. note:: The use of **Python 3** is *highly* preferred over Python 2. Consider upgrading your applications and infrastructure if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste. +.. note:: The use of **Python 3** is *highly* recommended over Python 2. Consider upgrading your applications and infrastructures if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste. —*Kenneth Reitz* Let's get started! But first, let's make sure you know where your towel is. diff --git a/docs/writing/documentation.rst b/docs/writing/documentation.rst index 4d72a544d..27d85405a 100644 --- a/docs/writing/documentation.rst +++ b/docs/writing/documentation.rst @@ -45,7 +45,7 @@ Project Publication Depending on the project, your documentation might include some or all of the following components: -- An *introduction* should show a very short overview of what can be +- An *introduction* should give a very short overview of what can be done with the product, using one or two extremely simplified use cases. This is the thirty-second pitch for your project. @@ -94,7 +94,7 @@ reStructuredText ~~~~~~~~~~~~~~~~ Most Python documentation is written with reStructuredText_. It's like -Markdown with all the optional extensions built in. +Markdown, but with all the optional extensions built in. The `reStructuredText Primer`_ and the `reStructuredText Quick Reference`_ should help you familiarize yourself with its syntax. @@ -149,8 +149,8 @@ a project's documentation. Additionally, Doctest_ will read all embedded docstrings that look like input from the Python commandline (prefixed with ">>>") and run them, checking to see if the output of the command matches the text on the following line. This -allows developers to embed real examples and usage of functions alongside -their source code, and as a side effect, it also ensures that their code is +allows developers to embed real examples and usage of functions alongside +their source code. As a side effect, it also ensures that their code is tested and works. :: @@ -187,8 +187,8 @@ Docstrings are accessible from both the `__doc__` dunder attribute for almost every Python object, as well as with the built in `help()` function. While block comments are usually used to explain *what* a section of code is -doing, or the specifics of an algorithm, docstrings are more intended for -explaining to other users of your code (or you in 6 months time) *how* a +doing, or the specifics of an algorithm, docstrings are more intended towards +explaining other users of your code (or you in 6 months time) *how* a particular function can be used and the general purpose of a function, class, or module. @@ -214,7 +214,7 @@ In larger or more complex projects however, it is often a good idea to give more information about a function, what it does, any exceptions it may raise, what it returns, or relevant details about the parameters. -For more detailed documentation of code a popular style is the one used for the +For more detailed documentation of code a popular style used, is the one used by the NumPy project, often called `NumPy style`_ docstrings. While it can take up more lines than the previous example, it allows the developer to include a lot more information about a method, function, or class. :: diff --git a/docs/writing/gotchas.rst b/docs/writing/gotchas.rst index 677bdf823..f717858ca 100644 --- a/docs/writing/gotchas.rst +++ b/docs/writing/gotchas.rst @@ -7,13 +7,13 @@ Common Gotchas .. image:: /_static/photos/34435688380_b5a740762b_k_d.jpg For the most part, Python aims to be a clean and consistent language that -avoids surprises. However, there are a few cases that can be confusing to +avoids surprises. However, there are a few cases that can be confusing for newcomers. Some of these cases are intentional but can be potentially surprising. Some could arguably be considered language warts. In general, what follows is a collection of potentially tricky behavior that might seem strange at first -glance, but is generally sensible once you're aware of the underlying cause for +glance, but are generally sensible, once you're aware of the underlying cause for the surprise. @@ -53,8 +53,8 @@ isn't provided, so that the output is:: [12] [42] -What Does Happen -~~~~~~~~~~~~~~~~ +What Actually Happens +~~~~~~~~~~~~~~~~~~~~~ .. testoutput:: @@ -100,6 +100,7 @@ Late Binding Closures Another common source of confusion is the way Python binds its variables in closures (or in the surrounding global scope). + What You Wrote ~~~~~~~~~~~~~~ @@ -125,8 +126,8 @@ variable that multiplies their argument, producing:: 6 8 -What Does Happen -~~~~~~~~~~~~~~~~ +What Actually Happens +~~~~~~~~~~~~~~~~~~~~~ .. testoutput:: @@ -206,7 +207,7 @@ will automatically write a bytecode version of that file to disk, e.g. These ``.pyc`` files should not be checked into your source code repositories. Theoretically, this behavior is on by default for performance reasons. -Without these bytecode files present, Python would re-generate the bytecode +Without these bytecode files, Python would re-generate the bytecode every time the file is loaded. From ad22d2580cc36f0a27060df1ae940dd5266e5b45 Mon Sep 17 00:00:00 2001 From: Lokesh Dhakal <9079364+aviranzerioniac@users.noreply.github.com> Date: Sun, 22 Nov 2020 16:22:12 +0100 Subject: [PATCH 11/36] Minor Polishes --- docs/writing/license.rst | 4 ++-- docs/writing/logging.rst | 10 +++++----- docs/writing/structure.rst | 13 ++++++------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/docs/writing/license.rst b/docs/writing/license.rst index 0a74f5405..820cc9a05 100644 --- a/docs/writing/license.rst +++ b/docs/writing/license.rst @@ -6,8 +6,8 @@ Choosing a License .. image:: /_static/photos/33907149294_82d7535a6c_k_d.jpg -Your source publication *needs* a license. In the US, if no license is -specified, users have no legal right to download, modify, or distribute. +Your source publication *needs* a license. In the US, unless a license is +specified, users have no legal right to download, modify, or distribute the product. Furthermore, people can't contribute to your code unless you tell them what rules to play by. Choosing a license is complicated, so here are some pointers: diff --git a/docs/writing/logging.rst b/docs/writing/logging.rst index b609dc721..b6110f7f7 100644 --- a/docs/writing/logging.rst +++ b/docs/writing/logging.rst @@ -10,7 +10,7 @@ The :mod:`logging` module has been a part of Python's Standard Library since version 2.3. It is succinctly described in :pep:`282`. The documentation is notoriously hard to read, except for the `basic logging tutorial`_. -As an alternative, `loguru `_ provides an approach to logging nearly as simple as using a simple ``print`` statement. +As an alternative, `loguru `_ provides an approach for logging, nearly as simple as using a simple ``print`` statement. Logging serves two purposes: @@ -59,7 +59,7 @@ using the ``__name__`` global variable: the :mod:`logging` module creates a hierarchy of loggers using dot notation, so using ``__name__`` ensures no name collisions. -Here is an example of best practice from the `requests source`_ -- place +Here is an example of the best practice from the `requests source`_ -- place this in your ``__init__.py``: .. code-block:: python @@ -83,7 +83,7 @@ application environment. There are at least three ways to configure a logger: - Using an INI-formatted file: - - **Pro**: possible to update configuration while running using the + - **Pro**: possible to update configuration while running, using the function :func:`logging.config.listen` to listen on a socket. - **Con**: less control (e.g. custom subclassed filters or loggers) than possible when configuring a logger in code. @@ -94,13 +94,13 @@ There are at least three ways to configure a logger: - **Con**: less control than when configuring a logger in code. - Using code: - **Pro**: complete control over the configuration. - - **Con**: modifications require a change to source code. + - **Con**: modifications require a change to the source code. Example Configuration via an INI File ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Let us say the file is named ``logging_config.ini``. +Let us say that the file is named ``logging_config.ini``. More details for the file format are in the `logging configuration`_ section of the `logging tutorial`_. diff --git a/docs/writing/structure.rst b/docs/writing/structure.rst index bbbef47fe..7a73e36a4 100644 --- a/docs/writing/structure.rst +++ b/docs/writing/structure.rst @@ -18,7 +18,7 @@ the project? What features and functions can be grouped together and isolated? By answering questions like these you can begin to plan, in a broad sense, what your finished product will look like. -In this section we take a closer look at Python's module and import +In this section, we take a closer look at Python's modules and import systems as they are the central elements to enforcing structure in your project. We then discuss various perspectives on how to build code which can be extended and tested reliably. @@ -32,7 +32,7 @@ It's Important. ::::::::::::::: Just as Code Style, API Design, and Automation are essential for a -healthy development cycle, Repository structure is a crucial part of +healthy development cycle. Repository structure is a crucial part of your project's `architecture `__. @@ -54,8 +54,7 @@ documentation. Of course, first impressions aren't everything. You and your colleagues will spend countless hours working with this repository, eventually -becoming intimately familiar with every nook and cranny. The layout of -it is important. +becoming intimately familiar with every nook and cranny. The layout is important. Sample Repository ::::::::::::::::: @@ -126,7 +125,7 @@ If you aren't sure which license you should use for your project, check out `choosealicense.com `_. Of course, you are also free to publish code without a license, but this -would prevent many people from potentially using your code. +would prevent many people from potentially using or contributing to your code. Setup.py :::::::: @@ -157,8 +156,8 @@ should be placed at the root of the repository. It should specify the dependencies required to contribute to the project: testing, building, and generating documentation. -If your project has no development dependencies, or you prefer -development environment setup via ``setup.py``, this file may be +If your project has no development dependencies, or if you prefer +setting up a development environment via ``setup.py``, this file may be unnecessary. Documentation From 148e6503a9036a8b3f4e179911555c6e31b28a0a Mon Sep 17 00:00:00 2001 From: Lokesh Dhakal <9079364+aviranzerioniac@users.noreply.github.com> Date: Sun, 22 Nov 2020 17:14:07 +0100 Subject: [PATCH 12/36] Monir Polishes --- docs/writing/structure.rst | 79 +++++++++++++++++++------------------- docs/writing/style.rst | 12 +++--- 2 files changed, 45 insertions(+), 46 deletions(-) diff --git a/docs/writing/structure.rst b/docs/writing/structure.rst index 7a73e36a4..b8da9decd 100644 --- a/docs/writing/structure.rst +++ b/docs/writing/structure.rst @@ -330,42 +330,42 @@ Easy structuring of a project means it is also easy to do it poorly. Some signs of a poorly structured project include: -- Multiple and messy circular dependencies: if your classes +- Multiple and messy circular dependencies: If the classes Table and Chair in :file:`furn.py` need to import Carpenter from :file:`workers.py` to answer a question such as ``table.isdoneby()``, and if conversely the class Carpenter needs to import Table and Chair to answer the question ``carpenter.whatdo()``, then you have a circular dependency. In this case you will have to resort to - fragile hacks such as using import statements inside + fragile hacks such as using import statements inside your methods or functions. -- Hidden coupling: each and every change in Table's implementation +- Hidden coupling: Each and every change in Table's implementation breaks 20 tests in unrelated test cases because it breaks Carpenter's code, - which requires very careful surgery to adapt the change. This means + which requires very careful surgery to adapt to the change. This means you have too many assumptions about Table in Carpenter's code or the reverse. -- Heavy usage of global state or context: instead of explicitly +- Heavy usage of global state or context: Instead of explicitly passing ``(height, width, type, wood)`` to each other, Table and Carpenter rely on global variables that can be modified and are modified on the fly by different agents. You need to - scrutinize all access to these global variables to understand why + scrutinize all access to these global variables in order to understand why a rectangular table became a square, and discover that remote template code is also modifying this context, messing with - table dimensions. + the table dimensions. - Spaghetti code: multiple pages of nested if clauses and for loops with a lot of copy-pasted procedural code and no proper segmentation are known as spaghetti code. Python's - meaningful indentation (one of its most controversial features) make - it very hard to maintain this kind of code. So the good news is that + meaningful indentation (one of its most controversial features) makes + it very hard to maintain this kind of code. The good news is that you might not see too much of it. - Ravioli code is more likely in Python: it consists of hundreds of similar little pieces of logic, often classes or objects, without - proper structure. If you never can remember if you have to use + proper structure. If you never can remember, if you have to use FurnitureTable, AssetTable or Table, or even TableNew for your - task at hand, you might be swimming in ravioli code. + task at hand, then you might be swimming in ravioli code. ******* @@ -383,13 +383,13 @@ in one file, and all low-level operations in another file. In this case, the interface file needs to import the low-level file. This is done with the ``import`` and ``from ... import`` statements. -As soon as you use `import` statements you use modules. These can be either +As soon as you use `import` statements, you use modules. These can be either built-in modules such as `os` and `sys`, third-party modules you have installed in your environment, or your project's internal modules. To keep in line with the style guide, keep module names short, lowercase, and be sure to avoid using special symbols like the dot (.) or question mark (?). -So a file name like :file:`my.spam.py` is one you should avoid! Naming this way +A file name like :file:`my.spam.py` is the one you should avoid! Naming this way will interfere with the way Python looks for modules. In the case of `my.spam.py` Python expects to find a :file:`spam.py` file in a @@ -397,10 +397,10 @@ folder named :file:`my` which is not the case. There is an `example `_ of how the dot notation should be used in the Python docs. -If you'd like you could name your module :file:`my_spam.py`, but even our -friend the underscore should not be seen often in module names. However, using other +If you like, you could name your module :file:`my_spam.py`, but even our trusty +friend the underscore, should not be seen that often in module names. However, using other characters (spaces or hyphens) in module names will prevent importing -(- is the subtract operator), so try to keep module names short so there is +(- is the subtract operator). Try to keep module names short so there is no need to separate words. And, most of all, don't namespace with underscores; use submodules instead. .. code-block:: python @@ -411,15 +411,15 @@ no need to separate words. And, most of all, don't namespace with underscores; u import library.foo_plugin Aside from some naming restrictions, nothing special is required for a Python -file to be a module, but you need to understand the import mechanism in order +file to be a module. But you need to understand the import mechanism in order to use this concept properly and avoid some issues. Concretely, the ``import modu`` statement will look for the proper file, which -is :file:`modu.py` in the same directory as the caller if it exists. If it is +is :file:`modu.py` in the same directory as the caller, if it exists. If it is not found, the Python interpreter will search for :file:`modu.py` in the "path" -recursively and raise an ImportError exception if it is not found. +recursively and raise an ImportError exception when it is not found. -Once :file:`modu.py` is found, the Python interpreter will execute the module in +When :file:`modu.py` is found, the Python interpreter will execute the module in an isolated scope. Any top-level statement in :file:`modu.py` will be executed, including other imports if any. Function and class definitions are stored in the module's dictionary. @@ -436,7 +436,7 @@ unwanted effects, e.g. override an existing function with the same name. It is possible to simulate the more standard behavior by using a special syntax of the import statement: ``from modu import *``. This is generally considered -bad practice. **Using** ``import *`` **makes code harder to read and makes +bad practice. **Using** ``import *`` **makes the code harder to read and makes dependencies less compartmentalized**. Using ``from modu import func`` is a way to pinpoint the function you want to @@ -492,20 +492,20 @@ modules, but with a special behavior for the :file:`__init__.py` file, which is used to gather all package-wide definitions. A file :file:`modu.py` in the directory :file:`pack/` is imported with the -statement ``import pack.modu``. This statement will look for an +statement ``import pack.modu``. This statement will look for :file:`__init__.py` file in :file:`pack` and execute all of its top-level statements. Then it will look for a file named :file:`pack/modu.py` and execute all of its top-level statements. After these operations, any variable, function, or class defined in :file:`modu.py` is available in the pack.modu namespace. -A commonly seen issue is to add too much code to :file:`__init__.py` +A commonly seen issue is adding too much code to :file:`__init__.py` files. When the project complexity grows, there may be sub-packages and sub-sub-packages in a deep directory structure. In this case, importing a single item from a sub-sub-package will require executing all :file:`__init__.py` files met while traversing the tree. -Leaving an :file:`__init__.py` file empty is considered normal and even a good +Leaving an :file:`__init__.py` file empty is considered normal and even good practice, if the package's modules and sub-packages do not need to share any code. @@ -519,45 +519,44 @@ Object-oriented programming *************************** Python is sometimes described as an object-oriented programming language. This -can be somewhat misleading and needs to be clarified. +can be somewhat misleading and requires further clarifications. In Python, everything is an object, and can be handled as such. This is what is meant when we say, for example, that functions are first-class objects. Functions, classes, strings, and even types are objects in Python: like any object, they have a type, they can be passed as function arguments, and they -may have methods and properties. In this understanding, Python is an -object-oriented language. +may have methods and properties. In this understanding, Python can be considered +as an object-oriented language. However, unlike Java, Python does not impose object-oriented programming as the main programming paradigm. It is perfectly viable for a Python project to not be object-oriented, i.e. to use no or very few class definitions, class inheritance, or any other mechanisms that are specific to object-oriented -programming. +programming languages. Moreover, as seen in the modules_ section, the way Python handles modules and namespaces gives the developer a natural way to ensure the encapsulation and separation of abstraction layers, both being the most common reasons to use object-orientation. Therefore, Python programmers have more -latitude to not use object-orientation, when it is not required by the business +latitude as to not use object-orientation, when it is not required by the business model. There are some reasons to avoid unnecessary object-orientation. Defining -custom classes is useful when we want to glue together some state and some -functionality. The problem, as pointed out by the discussions about functional +custom classes is useful when we want to glue some state and some +functionality together. The problem, as pointed out by the discussions about functional programming, comes from the "state" part of the equation. In some architectures, typically web applications, multiple instances of Python -processes are spawned to respond to external requests that can happen at the -same time. In this case, holding some state in instantiated objects, which +processes are spawned as a response to external requests that happen simultaneously. +In this case, holding some state in instantiated objects, which means keeping some static information about the world, is prone to concurrency problems or race conditions. Sometimes, between the initialization of the state of an object (usually done with the ``__init__()`` method) and the actual use of the object state through one of its methods, the world may have changed, and the retained state may be outdated. For example, a request may load an item in memory and mark it as read by a user. If another request requires the deletion -of this item at the same time, it may happen that the deletion actually occurs -after the first process loaded the item, and then we have to mark as read a -deleted object. +of this item at the same time, the deletion may actually occur after the first +process loaded the item, and then we have to mark a deleted object as read. This and other issues led to the idea that using stateless functions is a better programming paradigm. @@ -571,7 +570,7 @@ or deletes data in a global variable or in the persistence layer, it is said to have a side-effect. Carefully isolating functions with context and side-effects from functions with -logic (called pure functions) allow the following benefits: +logic (called pure functions) allows the following benefits: - Pure functions are deterministic: given a fixed input, the output will always be the same. @@ -713,7 +712,7 @@ type. In fact, in Python, variables are very different from what they are in many other languages, specifically statically-typed languages. Variables are not a segment of the computer's memory where some value is written, they are 'tags' or 'names' pointing to objects. It is therefore possible for the variable 'a' to -be set to the value 1, then to the value 'a string', then to a function. +be set to the value 1, then the value 'a string', to a function. The dynamic typing of Python is often considered to be a weakness, and indeed it can lead to complexities and hard-to-debug code. Something named 'a' can be @@ -743,7 +742,7 @@ Some guidelines help to avoid this issue: def func(): pass # Do something -Using short functions or methods helps reduce the risk +Using short functions or methods helps to reduce the risk of using the same name for two unrelated things. It is better to use different names even for things that are related, @@ -845,7 +844,7 @@ most idiomatic way to do this. One final thing to mention about strings is that using ``join()`` is not always best. In the instances where you are creating a new string from a pre-determined -number of strings, using the addition operator is actually faster, but in cases +number of strings, using the addition operator is actually faster. But in cases like above or in cases where you are adding to an existing string, using ``join()`` should be your preferred method. diff --git a/docs/writing/style.rst b/docs/writing/style.rst index d40033afa..93f2ab875 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -8,7 +8,7 @@ Code Style .. image:: /_static/photos/33907150054_5ee79e8940_k_d.jpg If you ask Python programmers what they like most about Python, they will -often cite its high readability. Indeed, a high level of readability +often cite its high readability. Indeed, a high level of readability is at the heart of the design of the Python language, following the recognized fact that code is read much more often than it is written. @@ -644,7 +644,7 @@ provide a powerful, concise way to work with lists. `Generator expressions `_ follow almost the same syntax as list comprehensions but return a generator -instead of a list. +instead of a list. Creating a new list requires more work and uses more memory. If you are just going to loop through the new list, prefer using an iterator instead. @@ -668,7 +668,7 @@ example if you need to use the result multiple times. If your logic is too complicated for a short list comprehension or generator -expression, consider using a generator function instead of returning a list. +expression, consider using a generator function instead of returning a list. **Good**: @@ -688,7 +688,7 @@ expression, consider using a generator function instead of returning a list. yield current_batch -Never use a list comprehension just for its side effects. +Never use a list comprehension just for its side effects. **Bad**: @@ -701,7 +701,7 @@ Never use a list comprehension just for its side effects. .. code-block:: python for x in sequence: - print(x) + print(x) Filtering a list @@ -728,7 +728,7 @@ Don't make multiple passes through the list. **Good**: -Use a list comprehension or generator expression. +Use a list comprehension or generator expression. .. code-block:: python From 46ff6a600f88f8054003269d1e73f98dfb8a29d4 Mon Sep 17 00:00:00 2001 From: Lokesh Dhakal <9079364+aviranzerioniac@users.noreply.github.com> Date: Sun, 22 Nov 2020 21:30:35 +0100 Subject: [PATCH 13/36] Minor Polishes --- docs/scenarios/admin.rst | 2 +- docs/scenarios/ci.rst | 2 +- docs/starting/which-python.rst | 2 +- docs/writing/style.rst | 8 ++++---- docs/writing/tests.rst | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/scenarios/admin.rst b/docs/scenarios/admin.rst index 826906af0..07d263945 100644 --- a/docs/scenarios/admin.rst +++ b/docs/scenarios/admin.rst @@ -199,7 +199,7 @@ Ansible ******* `Ansible `_ is an open source system automation tool. -The biggest advantage over Puppet or Chef is it does not require an agent on +Its biggest advantage over Puppet or Chef is that it does not require an agent on the client machine. Playbooks are Ansible’s configuration, deployment, and orchestration language and are written in YAML with Jinja2 for templating. diff --git a/docs/scenarios/ci.rst b/docs/scenarios/ci.rst index ade9148c4..4296679c7 100644 --- a/docs/scenarios/ci.rst +++ b/docs/scenarios/ci.rst @@ -65,7 +65,7 @@ Travis-CI 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 hosting your code on GitHub, Travis-CI is a great +build or not. So, if you are hosting your code on GitHub, Travis-CI is a great and easy way to get started with Continuous Integration. In order to get started, add a :file:`.travis.yml` file to your repository with diff --git a/docs/starting/which-python.rst b/docs/starting/which-python.rst index b1e3a8212..59d42352e 100644 --- a/docs/starting/which-python.rst +++ b/docs/starting/which-python.rst @@ -31,7 +31,7 @@ Recommendations *************** -.. note:: The use of **Python 3** is *highly* preferred over Python 2. Consider upgrading your applications and infrastructure if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste. +.. note:: The use of **Python 3** is *highly* recommended over Python 2. Consider upgrading your applications and infrastructure if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste. —*Kenneth Reitz* I'll be blunt: diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 93f2ab875..3bf029911 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -226,7 +226,7 @@ but making a public property private might be a much harder operation. Returning values ~~~~~~~~~~~~~~~~ -When a function grows in complexity it is not uncommon to use multiple return +When a function grows in complexity, it is not uncommon to use multiple return statements inside the function's body. However, in order to keep a clear intent and a sustainable readability level, it is preferable to avoid returning meaningful values from many output points in the body. @@ -639,11 +639,11 @@ Short Ways to Manipulate Lists `List comprehensions `_ -provide a powerful, concise way to work with lists. +provides a powerful, concise way to work with lists. `Generator expressions `_ -follow almost the same syntax as list comprehensions but return a generator +follows almost the same syntax as list comprehensions but return a generator instead of a list. Creating a new list requires more work and uses more memory. If you are just going @@ -829,7 +829,7 @@ a white space added to the end of the line, after the backslash, will break the code and may have unexpected results. A better solution is to use parentheses around your elements. Left with an -unclosed parenthesis on an end-of-line the Python interpreter will join the +unclosed parenthesis on an end-of-line, the Python interpreter will join the next line until the parentheses are closed. The same behavior holds for curly and square braces. diff --git a/docs/writing/tests.rst b/docs/writing/tests.rst index 7809d9ffe..28eb3260b 100644 --- a/docs/writing/tests.rst +++ b/docs/writing/tests.rst @@ -9,8 +9,8 @@ Testing Your Code Testing your code is very important. Getting used to writing testing code and running this code in parallel is now -considered a good habit. Used wisely, this method helps you define more -precisely your code's intent and have a more decoupled architecture. +considered a good habit. Used wisely, this method helps to define your +code's intent more precisely and have a more decoupled architecture. Some general rules of testing: @@ -294,6 +294,6 @@ always returns the same result (but only for the duration of the test). # get_search_results runs a search and iterates over the result self.assertEqual(len(myapp.get_search_results(q="fish")), 3) -Mock has many other ways you can configure it and control its behavior. +Mock has many other ways with which you can configure and control its behaviour. `mock `_ From be1ac344d6378e90d481112ef707cfbbe56bd83a Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Mon, 25 Jan 2021 17:16:21 -0800 Subject: [PATCH 14/36] Update --- docs/_extra/ads.txt | 237 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 237 insertions(+) diff --git a/docs/_extra/ads.txt b/docs/_extra/ads.txt index 08a732487..1941fb277 100644 --- a/docs/_extra/ads.txt +++ b/docs/_extra/ads.txt @@ -154,3 +154,240 @@ Newormedia.com, 2169, DIRECT yieldmo.com, 2417496099628458357, DIRECT rhythmone.com, 2310154583, DIRECT, a670c89d4a324e47 + +openx.com, 539824308, RESELLER, 6a698e2ec38604c6 +openx.com, 542511596, RESELLER, 6a698e2ec38604c6 +teads.tv, 19014, DIRECT, 15a9c44f6d26cbe1 +brightcom.com, 20292, DIRECT +onomagic.com, 202921, DIRECT +audienciad.com, 202922, DIRECT +aps.amazon.com,48266a61-b3d9-4cb7-b172-553abc6a42a4,DIRECT +google.com, pub-5231479214411897, RESELLER, f08c47fec0942fa0 +google.com, pub-4207323757133151, RESELLER, f08c47fec0942fa0 +appnexus.com, 11801, RESELLER +appnexus.com, 12061, RESELLER +adtech.com, 11208, RESELLER +pubmatic.com, 159477,RESELLER,5d62403b186f2ace +appnexus.com, 12366, RESELLER, f5ab79cb980f11d1 +indexexchange.com, 189744, RESELLER +rubiconproject.com, 20416, RESELLER, 0bfd66d529a55807 +rubiconproject.com, 21310, RESELLER , 0bfd66d529a55807 +openx.com, 537153209, RESELLER, 6a698e2ec38604c6 +sonobi.com, 37dd19ad4a, RESELLER, d1a215d9eb5aee9e +contextweb.com, 560606, RESELLER, 89ff185a4c4e857c +openx.com,540833447, RESELLER, 6a698e2ec38604c6 +improvedigital.com, 1362, RESELLER +sovrn.com, 270524, RESELLER, fafdf38b16bf6b2b +lijit.com, 270524, RESELLER, fafdf38b16bf6b2b +appnexus.com, 3153, RESELLER, f5ab79cb980f11d1 +pubmatic.com, 159330, RESELLER, 5d62403b186f2ace +33across.com, 0013300001qkdlwAAA, RESELLER +google.com, pub-6314168058065736, RESELLER, f08c47fec0942fa0 +pubmatic.com, 32987, RESELLER, 5d62403b186f2ace +google.com, pub-2290755540215120, RESELLER, f08c47fec0942fa0 +conversantmedia.com, 39882, DIRECT, 03113cd04947736d +contextweb.com, 561998, RESELLER, 89ff185a4c4e857c +pubmatic.com, 158100, RESELLER, 5d62403b186f2ace +districtm.io, 101080, RESELLER +adform.com, 2708, DIRECT, 9f5210a2f0999e32 +sparcmedia.com, 310627, Direct +appnexus.com, 12263, RESELLER +aps.amazon.com,094e2c86-72d9-47d6-a647-d95ce39ad4c7,DIRECT +sovrn.com,217352,DIRECT,fafdf38b16bf6b2b +lijit.com,217352,DIRECT,fafdf38b16bf6b2b +pubmatic.com,157150,RESELLER,5d62403b186f2ace +openx.com,540191398,RESELLER,6a698e2ec38604c6 +rubiconproject.com,18020,RESELLER,0bfd66d529a55807 +appnexus.com,1908,RESELLER,f5ab79cb980f11d1 +smaato.com,1100044650,RESELLER,07bcf65f187117b4 +adtech.com,12068,RESELLER,e1a5b5b6e3255540 +ad-generation.jp,12474,RESELLER,7f4ea9029ac04e53 +districtm.io,100962,RESELLER,3fd707be9c4527c3 +appnexus.com,3663,RESELLER,f5ab79cb980f11d1 +rhythmone.com,1654642120,RESELLER,a670c89d4a324e47 +yahoo.com,55029,RESELLER,e1a5b5b6e3255540 +gumgum.com,14141,RESELLER,ffdef49475d318a9 +pubmatic.com,160006,RESELLER,5d62403b186f2ace +pubmatic.com,160096,RESELLER,5d62403b186f2ace +amxrtb.com, 105199384, DIRECT +appnexus.com, 12290, RESELLER, f5ab79cb980f11d1 +appnexus.com, 11786, RESELLER, f5ab79cb980f11d1 +indexexchange.com, 191503, RESELLER, 50b1c356f2c5c8fc +lijit.com, 260380, RESELLER, fafdf38b16bf6b2b +sovrn.com, 260380, RESELLER, fafdf38b16bf6b2b +pubmatic.com, 158355 , RESELLER, 5d62403b186f2ace +appnexus.com, 9393, RESELLER #Video #Display, f5ab79cb980f11d1 +appnexus.com, 11924, RESELLER, f5ab79cb980f11d1 +appnexus.com, 1356, RESELLER, f5ab79cb980f11d1 +openx.com, 538959099, RESELLER, 6a698e2ec38604c6 +rubiconproject.com, 17960, RESELLER, 0bfd66d529a55807 +indexexchange.com, 186046, RESELLER +pubmatic.com, 158723, RESELLER, 5d62403b186f2ace +33across.com, 0013300001kQj2HAAS, RESELLER, bbea06d9c4d2853c +smaato.com, 1100047713, RESELLER, 07bcf65f187117b4 +yahoo.com, 57289, RESELLER, e1a5b5b6e3255540 +indexexchange.com, 191973, RESELLER, 50b1c356f2c5c8fc +rubiconproject.com, 21642, RESELLER, 0bfd66d529a55807 +rubiconproject.com, 17822, RESELLER, 0bfd66d529a55807 +districtm.io, 100835, DIRECT, 3fd707be9c4527c3 +appnexus.com, 3153, RESELLER +conversantmedia.com, 40790, RESELLER, 03113cd04947736d +gumgum.com, 13504, RESELLER, ffdef49475d318a9 +pubmatic.com, 79136 , RESELLER, 5d62403b186f2ace +sharethrough.com, d09156e5, RESELLER, d53b998a7bd4ecd2 +Sekindo.com, 20749, DIRECT, b6b21d256ef43532 +spotxchange.com, 84294, RESELLER, 7842df1d2fe2db34 +spotx.tv, 84294, RESELLER, 7842df1d2fe2db34 +advertising.com, 7372, RESELLER +advertising.com, 24410, RESELLER +pubmatic.com, 156595, RESELLER, 5d62403b186f2ace +google.com, pub-1320774679920841, RESELLER, f08c47fec0942fa0 +openx.com, 540258065, RESELLER, 6a698e2ec38604c6 +rubiconproject.com, 20130, RESELLER, 0bfd66d529a55807 +freewheel.tv, 19129, RESELLER +freewheel.tv, 19133, RESELLER +tremorhub.com, mb9eo-oqsbf, RESELLER, 1a4e959a1b50034a +telaria.com, mb9eo-oqsbf, RESELLER, 1a4e959a1b50034a +smartadserver.com, 3436, RESELLER +indexexchange.com, 191923, RESELLER +contextweb.com, 562350, RESELLER, 89ff185a4c4e857c +pubmatic.com, 160131, RESELLER, 5d62403b186f2ace +pubmatic.com, 160082 , RESELLER, 5d62403b186f2ace +newormedia.com, 4908, DIRECT +rhythmone.com,2310154583,DIRECT,a670c89d4a324e47 +video.unrulymedia.com, 2310154583, DIRECT +indexexchange.com, 193351, DIRECT +lijit.com, 217352-eb, DIRECT, fafdf38b16bf6b2b +appnexus.com, 1360, RESELLER, f5ab79cb980f11d1 +openx.com, 538959099, RESELLER, 6a698e2ec38604c6 +pubmatic.com, 137711, RESELLER, 5d62403b186f2ace +pubmatic.com, 156212, RESELLER, 5d62403b186f2ace +rubiconproject.com, 17960, RESELLER, 0bfd66d529a55807 +synacor.com, 82350, RESELLER, e108f11b2cdf7d5b +33across.com, 0014000001aXjnGAAS, RESELLER, bbea06d9c4d2853c # 33 Across +adtech.com, 12094, RESELLER # 33 Across +advangelists.com, 8d3bba7425e7c98c50f52ca1b52d3735, RESELLER, 60d26397ec060f98 # 33 Across +appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 # 33 Across +emxdgt.com, 326, RESELLER, 1e1d41537f7cad7f # 33 Across +google.com, pub-9557089510405422, RESELLER, f08c47fec0942fa0 # 33 Across +gumgum.com, 13318, RESELLER, ffdef49475d318a9 # 33 Across +openx.com, 537120563, RESELLER, 6a698e2ec38604c6 # 33 Across +pubmatic.com, 156423, RESELLER, 5d62403b186f2ace # 33 Across +rhythmone.com, 2439829435, RESELLER, a670c89d4a324e47 # 33 Across +rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 # 33 Across +advertising.com, 19623, RESELLER # AOL - One +indexexchange.com, 183965, RESELLER, 50b1c356f2c5c8fc # AOL - One +pubmatic.com, 156084, RESELLER, 5d62403b186f2ace # AOL - One +pubmatic.com, 156325, RESELLER, 5d62403b186f2ace # AOL - One +pubmatic.com, 156458, RESELLER, 5d62403b186f2ace # AOL - One +rubiconproject.com, 18222, RESELLER, 0bfd66d529a55807 # AOL - One +appnexus.com, 9316, RESELLER, f5ab79cb980f11d1 # AppNexus +appnexus.com, 4052, RESELLER, f5ab79cb980f11d1 # Conversant +conversantmedia.com, 20923, RESELLER # Conversant +openx.com, 540031703, RESELLER, 6a698e2ec38604c6 # Conversant +appnexus.com, 1908, RESELLER, f5ab79cb980f11d1 # DistrictM +districtm.io, 101769, RESELLER, 3fd707be9c4527c3 # DistrictM +google.com, pub-9685734445476814, RESELLER, f08c47fec0942fa0 # DistrictM +engagebdr.com, 10417, RESELLER # EngageDBR +improvedigital.com, 1669, RESELLER # ImproveDigital +indexexchange.com, 191740, RESELLER, 50b1c356f2c5c8fc # Index +themediagrid.com, P5JONV, RESELLER, 35d5010d7789b49d # Media Grid (IPONWEB) +onetag.com, 572a470226457b8, RESELLER # OneTag +openx.com, 540401713, RESELLER, 6a698e2ec38604c6 # OpenX +pubmatic.com, 156344, RESELLER, 5d62403b186f2ace # Pubmatic +advertising.com, 28605, RESELLER # RhythmOne +appnexus.com, 6849, RESELLER, f5ab79cb980f11d1 # RhythmOne +indexexchange.com, 182257, RESELLER, 50b1c356f2c5c8fc # RhythmOne +pubmatic.com, 159277, RESELLER, 5d62403b186f2ace # RhythmOne +rhythmone.com, 905992537, RESELLER, a670c89d4a324e47 # RhythmOne +rubiconproject.com, 15268, RESELLER, 0bfd66d529a55807 # RhythmOne +spotx.tv, 285547, RESELLER, 7842df1d2fe2db34 # RhythmOne +spotxchange.com, 285547, RESELLER, 7842df1d2fe2db34 # RhythmOne +video.unrulymedia.com, 905992537, RESELLER, a670c89d4a324e47 # RhythmOne +rubiconproject.com, 13344, RESELLER, 0bfd66d529a55807 # Rubicon +spotx.tv, 94794, RESELLER, 7842df1d2fe2db34 # SpotX +spotxchange.com, 94794, RESELLER, 7842df1d2fe2db34 # SpotX +advertising.com, 8603, RESELLER # Taboola +aol.com, 53392, RESELLER # Taboola +freewheel.tv, 799841, RESELLER # Taboola +freewheel.tv, 799921, RESELLER # Taboola +pubmatic.com, 156307, RESELLER, 5d62403b186f2ace # Taboola +rhythmone.com, 1166984029, RESELLER, a670c89d4a324e47 # Taboola +spotx.tv, 71451, RESELLER, 7842df1d2fe2db34 # Taboola +spotxchange.com, 71451, RESELLER, 7842df1d2fe2db34 # Taboola +tremorhub.com, z87wm, RESELLER, 1a4e959a1b50034a # Taboola +aralego.com, par-488A3E6BD8D997D0ED8B3BD34D8BA4B, RESELLER # ucFunnel +ucfunnel.com, par-488A3E6BD8D997D0ED8B3BD34D8BA4B, RESELLER # ucFunnel +yahoo.com, 55317, RESELLER # Verizon +pubnx.com, 337-1, RESELLER, 8728b7e97e589da4 # Vertoz +contextweb.com, 561118, RESELLER, 89ff185a4c4e857c #yieldmo +appnexus.com, 7911, RESELLER #yieldmo +rubiconproject.com, 17070, RESELLER, 0bfd66d529a55807 #yieldmo +pubnative.net, 1007284, RESELLER, d641df8625486a7b #yieldmodisplay +pubnative.net, 1007285, RESELLER, d641df8625486a7b #yieldmonative +pubnative.net, 1007286, RESELLER, d641df8625486a7b #yieldmovideo +onetag.com, 664e107d9f2b748, RESELLER #yieldmo +conversantmedia.com, 41812, DIRECT +appnexus.com, 4052, RESELLER +openx.com, 540031703, RESELLER, 6a698e2ec38604c6 +contextweb.com, 561998, RESELLER, 89ff185a4c4e857c +pubmatic.com, 158100, RESELLER, 5d62403b186f2ace +yahoo.com, 55771, RESELLER, e1a5b5b6e3255540 +appnexus.com, 7118, RESELLER +spotx.tv, 108933, RESELLER, 7842df1d2fe2db34 +spotxchange.com, 108933, RESELLER, 7842df1d2fe2db34 +improvedigital.com, 185, RESELLER +adform.com, 183, RESELLER +freewheel.tv, 33081, RESELLER +freewheel.tv, 33601, RESELLER +google.com, pub-8172268348509349, RESELLER, f08c47fec0942fa0 +indexexchange.com, 189872, RESELLER +openx.com, 541159484, RESELLER, 6a698e2ec38604c6 +gumgum.com,13174,DIRECT,ffdef49475d318a9 +appnexus.com,1001,reseller,f5ab79cb980f11d1 +appnexus.com,2758,reseller,f5ab79cb980f11d1 +bidtellect.com,1407,reseller,1c34aa2d85d45e93 +contextweb.com,558355,reseller +openx.com,537149485,reseller,6a698e2ec38604c6 +google.com,pub-9557089510405422,reseller,f08c47fec0942fa0 +google.com,pub-3848273848634341,reseller,f08c47fec0942fa0 +rhythmone.com,78519861,reseller,a670c89d4a324e47 +appnexus.com,7597,reseller,f5ab79cb980f11d1 +33across.com,0013300001r0t9mAAA,reseller,bbea06d9c4d2853c +appnexus.com,10239,reseller,f5ab79cb980f11d1 +pubmatic.com,157897,reseller,5d62403b186f2ace +synacor.com,82151,reseller,e108f11b2cdf7d5b +appnexus.com,9316,reseller,f5ab79cb980f11d1 +EMXDGT.com,1284,reseller,1e1d41537f7cad7f +appnexus.com,1356,reseller,f5ab79cb980f11d1 +outbrain.com,00254374f0c468f3b2732db17fd42cb6e5,reseller +aps.amazon.com,2840f06c-5d89-4853-a03e-3bfa567dd33c,reseller +adtech.com, 10947, DIRECT, e1a5b5b6e3255540 +appnexus.com, 7556, DIRECT, f5ab79cb980f11d1 +emxdgt.com, 20, DIRECT, 1e1d41537f7cad7f +indexexchange.com, 184914, DIRECT, 50b1c356f2c5c8fc +indexexchange.com, 186248, DIRECT, 50b1c356f2c5c8fc +lijit.com, 248396, DIRECT, fafdf38b16bf6b2b +openx.com, 537150004, DIRECT, 6a698e2ec38604c6 +pubmatic.com, 156319, DIRECT, 5d62403b186f2ace +sonobi.com, e55fb5d7c2, DIRECT, d1a215d9eb5aee9e +sovrn.com, 248396, DIRECT, fafdf38b16bf6b2b +tremorhub.com, vtrdn-wjdav, DIRECT, 1a4e959a1b50034a +rubiconproject.com, 17632, DIRECT, 0bfd66d529a55807 +openx.com, 539699341, DIRECT, 6a698e2ec38604c6 +rubiconproject.com, 18890, DIRECT, 0bfd66d529a55807 +pubmatic.com, 157367, DIRECT, 5d62403b186f2ace +indexexchange.com, 187454, DIRECT, 50b1c356f2c5c8fc +consumable.com, 2000908, DIRECT, aefcd3d2f45b5070 +sonobi.com, 6e5cfb5420, DIRECT, d1a215d9eb5aee9e +advertising.com, 28409, DIRECT, e1a5b5b6e3255540 +spotxchange.com, 270977, DIRECT, 7842df1d2fe2db34 +spotx.tv, 270977, DIRECT, 7842df1d2fe2db34 +telaria.com, vtrdn-wjdav, DIRECT, 1a4e959a1b50034a +lijit.com, 248396-eb, DIRECT, fafdf38b16bf6b2b +advertising.com, 28509, DIRECT, e1a5b5b6e3255540 +yahoo.com, 55104, DIRECT, e1a5b5b6e3255540 +pubmatic.com, 159117, DIRECT, 5d62403b186f2ace +tremorhub.com, vtrdn-ysjam, DIRECT, 1a4e959a1b50034a +telaria.com, vtrdn-ysjam, DIRECT, 1a4e959a1b50034a +yahoo.com, 57695, DIRECT, e1a5b5b6e3255540 From 3240cd0c808a42da5540264fc0c8ad9a10533045 Mon Sep 17 00:00:00 2001 From: klml Date: Tue, 26 Jan 2021 18:41:50 +0100 Subject: [PATCH 15/36] kennethreitzs essay repository-structure-and-python new URL --- docs/writing/structure.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/structure.rst b/docs/writing/structure.rst index b8da9decd..69c9cf616 100644 --- a/docs/writing/structure.rst +++ b/docs/writing/structure.rst @@ -59,7 +59,7 @@ becoming intimately familiar with every nook and cranny. The layout is important Sample Repository ::::::::::::::::: -**tl;dr**: This is what `Kenneth Reitz recommended in 2013 `__. +**tl;dr**: This is what `Kenneth Reitz recommended in 2013 `__. This repository is `available on GitHub `__. From 266b4c4f42d444e23425167103d785739c220a52 Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Tue, 2 Feb 2021 11:03:11 -0800 Subject: [PATCH 16/36] Update --- docs/_extra/ads.txt | 649 ++++++++++++++++++++------------------------ 1 file changed, 298 insertions(+), 351 deletions(-) diff --git a/docs/_extra/ads.txt b/docs/_extra/ads.txt index 1941fb277..52291a930 100644 --- a/docs/_extra/ads.txt +++ b/docs/_extra/ads.txt @@ -1,393 +1,340 @@ -google.com, pub-2802445174821308, RESELLER, f08c47fec0942fa0 - - -appnexus.com, 8692, DIRECT, f5ab79cb980f11d1 - - -districtm.io, 100835, DIRECT -appnexus.com, 1908, RESELLER, f5ab79cb980f11d1 -google.com, pub-9685734445476814, RESELLER, f08c47fec0942fa0 - - -appnexus.com, 1613, reseller -appnexus.com, 3326, reseller -google.com, pub-1409765517756851, reseller -google.com, pub-4075894099602271, reseller -freewheel.tv, 146081, reseller -rubiconproject.com, 8861, reseller, 0bfd66d529a55807 - - -aol.com, 11119, DIRECT -adtech.com, 11341, DIRECT -coxmt.com, 2000067907202, RESELLER -Openx.com, 537143344, RESELLER -indexexchange.com, 175407, RESELLER - - -sonobi.com, 337f0e70cc, DIRECT -rhythmone.com, 1059622079, RESELLER -contextweb.com, 560606, RESELLER - - -sovrn.com, 217352, DIRECT, fafdf38b16bf6b2b -lijit.com, 217352, DIRECT, fafdf38b16bf6b2b -openx.com, 537120960, RESELLER -openx.com, 83499, RESELLER -openx.com, 538959099, RESELLER -pubmatic.com, 137711, RESELLER -pubmatic.com, 156212, RESELLER -pubmatic.com, 62483, RESELLER -contextweb.com, 558511, RESELLER -gumgum.com, 11645, RESELLER, ffdef49475d318a9 - - -openx.com, 539824308, RESELLER, 6a698e2ec38604c6 - - -rubiconproject.com, 17822, DIRECT, 0bfd66d529a55807 - - -gumgum.com, 13174, DIRECT, ffdef49475d318a9 +33across.com, 0010b00002Mpn7AAAR, DIRECT, bbea06d9c4d2853c +33across.com, 0013300001kQj2HAAS, RESELLER, bbea06d9c4d2853c +33across.com, 0013300001qkdlwAAA, RESELLER 33across.com, 0013300001r0t9mAAA, RESELLER +33across.com, 0014000001aXjnGAAS, RESELLER, bbea06d9c4d2853c # 33 Across +33across.com,0013300001r0t9mAAA,reseller,bbea06d9c4d2853c +ad-generation.jp,12474,RESELLER,7f4ea9029ac04e53 +adform.com, 183, RESELLER +adform.com, 2708, DIRECT, 9f5210a2f0999e32 +adtech.com, 10947, DIRECT, e1a5b5b6e3255540 +adtech.com, 11095, RESELLER +adtech.com, 11119, RESELLER +adtech.com, 11208, RESELLER +adtech.com, 11341, DIRECT +adtech.com, 12094, RESELLER +adtech.com, 12094, RESELLER # 33 Across adtech.com, 9904, RESELLER +adtech.com,12068,RESELLER,e1a5b5b6e3255540 +advangelists.com, 8d3bba7425e7c98c50f52ca1b52d3735, RESELLER, 60d26397ec060f98 +advangelists.com, 8d3bba7425e7c98c50f52ca1b52d3735, RESELLER, 60d26397ec060f98 # 33 Across +advertising.com, 11602, RESELLER Advertising.com, 16736, RESELLER +advertising.com, 19623, RESELLER # AOL - One +advertising.com, 24410, RESELLER +advertising.com, 28409, DIRECT, e1a5b5b6e3255540 +advertising.com, 28509, DIRECT, e1a5b5b6e3255540 +advertising.com, 28605, RESELLER # RhythmOne +advertising.com, 7372, RESELLER +advertising.com, 8603, RESELLER # Taboola +amxrtb.com, 105199384, DIRECT +aol.com, 11119, DIRECT +aol.com, 53392, RESELLER # Taboola aolcloud.net, 9904, RESELLER appnexus.com, 1001, RESELLER, f5ab79cb980f11d1 +appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 +appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 # 33 Across +appnexus.com, 11786, RESELLER, f5ab79cb980f11d1 +appnexus.com, 11801, RESELLER +appnexus.com, 11924, RESELLER, f5ab79cb980f11d1 +appnexus.com, 12061, RESELLER +appnexus.com, 12263, RESELLER +appnexus.com, 12290, RESELLER, f5ab79cb980f11d1 +appnexus.com, 12366, RESELLER, f5ab79cb980f11d1 +appnexus.com, 1314, RESELLER +Appnexus.com, 1356, RESELLER, f5ab79cb980f11d1 +appnexus.com, 1360, RESELLER, f5ab79cb980f11d1 +appnexus.com, 1613, reseller +appnexus.com, 1908, RESELLER +appnexus.com, 1908, RESELLER, f5ab79cb980f11d1 +appnexus.com, 1908, RESELLER, f5ab79cb980f11d1 # DistrictM appnexus.com, 1942, RESELLER, f5ab79cb980f11d1 +appnexus.com, 2530, RESELLER appnexus.com, 2758, RESELLER, f5ab79cb980f11d1 appnexus.com, 3135, RESELLER, f5ab79cb980f11d1 +appnexus.com, 3153, DIRECT +appnexus.com, 3153, RESELLER +appnexus.com, 3153, RESELLER, f5ab79cb980f11d1 +appnexus.com, 3326, reseller +appnexus.com, 4052, RESELLER +appnexus.com, 4052, RESELLER, f5ab79cb980f11d1 # Conversant +appnexus.com, 6849, RESELLER, f5ab79cb980f11d1 # RhythmOne +appnexus.com, 7118, RESELLER +appnexus.com, 7556, DIRECT, f5ab79cb980f11d1 appnexus.com, 7597, RESELLER, f5ab79cb980f11d1 +appnexus.com, 7911, RESELLER #yieldmo +appnexus.com, 7944, RESELLER +appnexus.com, 8692, DIRECT, f5ab79cb980f11d1 +appnexus.com, 9316, RESELLER, f5ab79cb980f11d1 # AppNexus +appnexus.com, 9393, DIRECT +appnexus.com, 9393, RESELLER #Video #Display, f5ab79cb980f11d1 +appnexus.com,1001,reseller,f5ab79cb980f11d1 +appnexus.com,10239,reseller,f5ab79cb980f11d1 +appnexus.com,1356,reseller,f5ab79cb980f11d1 +appnexus.com,1908,RESELLER,f5ab79cb980f11d1 +appnexus.com,2758,reseller,f5ab79cb980f11d1 +appnexus.com,3663,RESELLER,f5ab79cb980f11d1 +appnexus.com,7597,reseller,f5ab79cb980f11d1 +appnexus.com,9316,reseller,f5ab79cb980f11d1 +aps.amazon.com,094e2c86-72d9-47d6-a647-d95ce39ad4c7,DIRECT +aps.amazon.com,2840f06c-5d89-4853-a03e-3bfa567dd33c,reseller +aps.amazon.com,48266a61-b3d9-4cb7-b172-553abc6a42a4,DIRECT +aralego.com, par-488A3E6BD8D997D0ED8B3BD34D8BA4B, RESELLER # ucFunnel +audienciad.com, 202922, DIRECT bidtellect.com, 1407, RESELLER, 1c34aa2d85d45e93 +bidtellect.com,1407,reseller,1c34aa2d85d45e93 +brightcom.com, 20292, DIRECT +ccoxmt.com, 2000067997702, RESELLER +consumable.com, 2000908, DIRECT, aefcd3d2f45b5070 contextweb.com, 558355, RESELLER +contextweb.com, 558511, RESELLER +contextweb.com, 560606, RESELLER +contextweb.com, 560606, RESELLER, 89ff185a4c4e857 +contextweb.com, 560606, RESELLER, 89ff185a4c4e857c +contextweb.com, 561118, RESELLER, 89ff185a4c4e857c #yieldmo +contextweb.com, 561998, RESELLER, 89ff185a4c4e857c +contextweb.com, 562350, RESELLER, 89ff185a4c4e857c +contextweb.com,558355,reseller +conversantmedia.com, 20923, RESELLER # Conversant +conversantmedia.com, 39882, DIRECT, 03113cd04947736d +conversantmedia.com, 40790, RESELLER, 03113cd04947736d +conversantmedia.com, 41812, DIRECT +coxmt.com, 2000067907202, RESELLER criteo.com, 109412, DIRECT, 9fac4a4a87c2a44f +districtm.io, 100808, DIRECT +districtm.io, 100835, DIRECT +districtm.io, 100835, DIRECT, 3fd707be9c4527c3 +districtm.io, 101080, RESELLER +districtm.io, 101769, RESELLER, 3fd707be9c4527c3 # DistrictM +districtm.io,100962,RESELLER,3fd707be9c4527c3 +EMXDGT.com, 1133, DIRECT, 1e1d41537f7cad7f +emxdgt.com, 20, DIRECT, 1e1d41537f7cad7f +emxdgt.com, 326, RESELLER, 1e1d41537f7cad7f +emxdgt.com, 326, RESELLER, 1e1d41537f7cad7f # 33 Across +EMXDGT.com,1284,reseller,1e1d41537f7cad7f +engagebdr.com, 10417, RESELLER # EngageDBR +freewheel.tv, 146081, reseller +freewheel.tv, 19129, RESELLER +freewheel.tv, 19133, RESELLER +freewheel.tv, 33081, RESELLER +freewheel.tv, 33601, RESELLER +freewheel.tv, 799841, RESELLER # Taboola +freewheel.tv, 799921, RESELLER # Taboola +google.com, pub-1320774679920841, RESELLER, f08c47fec0942fa0 +google.com, pub-1409765517756851, reseller +google.com, pub-2290755540215120, RESELLER, f08c47fec0942fa0 +google.com, pub-2802445174821308, RESELLER, f08c47fec0942fa0 google.com, pub-3848273848634341, RESELLER, f08c47fec0942fa0 +google.com, pub-4075894099602271, reseller +google.com, pub-4207323757133151, RESELLER, f08c47fec0942fa0 +google.com, pub-4641608711979091, DIRECT, f08c47fec0942fa0 +google.com, pub-5231479214411897, RESELLER, f08c47fec0942fa0 +Google.com, pub-5995202563537249, RESELLER, f08c47fec0942fa0 +google.com, pub-6314168058065736, RESELLER, f08c47fec0942fa0 +google.com, pub-8172268348509349, RESELLER, f08c47fec0942fa0 google.com, pub-9557089510405422, RESELLER, f08c47fec0942fa0 +google.com, pub-9557089510405422, RESELLER, f08c47fec0942fa0 # 33 Across +google.com, pub-9685734445476814, RESELLER, f08c47fec0942fa0 +google.com, pub-9685734445476814, RESELLER, f08c47fec0942fa0 # DistrictM +google.com,pub-3848273848634341,reseller,f08c47fec0942fa0 +google.com,pub-9557089510405422,reseller,f08c47fec0942fa0 +gumgum.com, 11645, RESELLER, ffdef49475d318a9 +gumgum.com, 13174, DIRECT, ffdef49475d318a9 +gumgum.com, 13318, RESELLER, ffdef49475d318a9 +gumgum.com, 13318, RESELLER, ffdef49475d318a9 # 33 Across +gumgum.com, 13504, RESELLER, ffdef49475d318a9 +gumgum.com,13174,DIRECT,ffdef49475d318a9 +gumgum.com,14141,RESELLER,ffdef49475d318a9 +improvedigital.com, 1362, RESELLER +improvedigital.com, 1669, RESELLER # ImproveDigital +improvedigital.com, 185, RESELLER +indexexchange.com, 175407, RESELLER indexexchange.com, 177754, RESELLER, 50b1c356f2c5c8fc +indexexchange.com, 182257, RESELLER, 50b1c356f2c5c8fc # RhythmOne +indexexchange.com, 183965, RESELLER, 50b1c356f2c5c8fc # AOL - One +indexexchange.com, 184914, DIRECT, 50b1c356f2c5c8fc +indexexchange.com, 186046, RESELLER +indexexchange.com, 186248, DIRECT, 50b1c356f2c5c8fc +indexexchange.com, 187196, DIRECT +indexexchange.com, 187454, DIRECT, 50b1c356f2c5c8fc +indexexchange.com, 189744, RESELLER +indexexchange.com, 189872, RESELLER +indexexchange.com, 191503, RESELLER, 50b1c356f2c5c8fc +indexexchange.com, 191740, RESELLER, 50b1c356f2c5c8fc # Index +indexexchange.com, 191923, RESELLER +indexexchange.com, 191973, RESELLER, 50b1c356f2c5c8fc +indexexchange.com, 193351, DIRECT +lijit.com, 217352, DIRECT, fafdf38b16bf6b2b +lijit.com, 217352-eb, DIRECT, fafdf38b16bf6b2b +lijit.com, 248396, DIRECT, fafdf38b16bf6b2b +lijit.com, 248396-eb, DIRECT, fafdf38b16bf6b2b +lijit.com, 260380, RESELLER, fafdf38b16bf6b2b +lijit.com, 270524, RESELLER, fafdf38b16bf6b2b +lijit.com,217352,DIRECT,fafdf38b16bf6b2b lkqd.com, 470, RESELLER, 59c49fa9598a0117 lkqd.net, 470, RESELLER, 59c49fa9598a0117 +Newormedia.com, 2169, DIRECT +newormedia.com, 4908, DIRECT +onetag.com, 572a470226457b8, RESELLER # OneTag +onetag.com, 664e107d9f2b748, RESELLER #yieldmo +onomagic.com, 202921, DIRECT +openx.com, 539824308, RESELLER, 6a698e2ec38604c6 openx.com, 537120563, RESELLER, 6a698e2ec38604c6 +openx.com, 537120563, RESELLER, 6a698e2ec38604c6 # 33 Across +openx.com, 537120960, RESELLER +openx.com, 537127577, RESELLER, 6a698e2ec38604c6 +Openx.com, 537143344, RESELLER openx.com, 537149485, RESELLER, 6a698e2ec38604c6 +openx.com, 537150004, DIRECT, 6a698e2ec38604c6 +openx.com, 537153209, RESELLER, 6a698e2ec38604c6 +openx.com, 538959099, RESELLER +openx.com, 538959099, RESELLER, 6a698e2ec38604c6 +openx.com, 539699341, DIRECT, 6a698e2ec38604c6 +openx.com, 539824308, RESELLER, 6a698e2ec38604c6 openx.com, 540003333, RESELLER, 6a698e2ec38604c6 -outbrain.com, 01a755b08c8c22b15d46a8b753ab6955d4, RESELLER +openx.com, 540031703, RESELLER, 6a698e2ec38604c6 +openx.com, 540031703, RESELLER, 6a698e2ec38604c6 # Conversant +openx.com, 540258065, RESELLER, 6a698e2ec38604c6 +openx.com, 540274407, RESELLER, 6a698e2ec38604c6 +openx.com, 540337213, RESELLER, 6a698e2ec38604c6 +openx.com, 540401713, RESELLER, 6a698e2ec38604c6 # OpenX +openx.com, 541159484, RESELLER, 6a698e2ec38604c6 +openx.com, 542511596, RESELLER, 6a698e2ec38604c6 +openx.com, 83499, RESELLER +openx.com,537149485,reseller,6a698e2ec38604c6 +openx.com,540191398,RESELLER,6a698e2ec38604c6 +openx.com,540833447, RESELLER, 6a698e2ec38604c6 outbrain.com, 01a755b08c8c22b15d46a8b753ab6955d4, DIRECT +outbrain.com, 01a755b08c8c22b15d46a8b753ab6955d4, RESELLER +outbrain.com,00254374f0c468f3b2732db17fd42cb6e5,reseller +pubmatic.com, 137711, RESELLER +pubmatic.com, 137711, RESELLER, 5d62403b186f2ace +pubmatic.com, 156084, RESELLER, 5d62403b186f2ace # AOL - One +pubmatic.com, 156212, RESELLER +pubmatic.com, 156212, RESELLER, 5d62403b186f2ace +pubmatic.com, 156307, RESELLER, 5d62403b186f2ace # Taboola +pubmatic.com, 156319, DIRECT, 5d62403b186f2ace +pubmatic.com, 156325, RESELLER, 5d62403b186f2ace # AOL - One +pubmatic.com, 156344, RESELLER, 5d62403b186f2ace # Pubmatic +pubmatic.com, 156423, RESELLER, 5d62403b186f2ace +pubmatic.com, 156423, RESELLER, 5d62403b186f2ace # 33 Across +pubmatic.com, 156458, RESELLER, 5d62403b186f2ace # AOL - One +pubmatic.com, 156557, RESELLER +pubmatic.com, 156595, RESELLER, 5d62403b186f2ace +pubmatic.com, 157367, DIRECT, 5d62403b186f2ace +pubmatic.com, 158100, RESELLER, 5d62403b186f2ace +pubmatic.com, 158355 , RESELLER, 5d62403b186f2ace +pubmatic.com, 158723, RESELLER, 5d62403b186f2ace +pubmatic.com, 159117, DIRECT, 5d62403b186f2ace +pubmatic.com, 159277, RESELLER, 5d62403b186f2ace # RhythmOne +pubmatic.com, 159330, RESELLER, 5d62403b186f2ace +pubmatic.com, 159477,RESELLER,5d62403b186f2ace +pubmatic.com, 160082 , RESELLER, 5d62403b186f2ace +pubmatic.com, 160131, RESELLER, 5d62403b186f2ace +pubmatic.com, 32987, RESELLER, 5d62403b186f2ace pubmatic.com, 50758, RESELLER, 5d62403b186f2ace +pubmatic.com, 62483, RESELLER +pubmatic.com, 79136 , RESELLER, 5d62403b186f2ace +pubmatic.com,157150,RESELLER,5d62403b186f2ace +pubmatic.com,157897,reseller,5d62403b186f2ace +pubmatic.com,160006,RESELLER,5d62403b186f2ace +pubmatic.com,160096,RESELLER,5d62403b186f2ace +pubnative.net, 1007284, RESELLER, d641df8625486a7b #yieldmodisplay +pubnative.net, 1007285, RESELLER, d641df8625486a7b #yieldmonative +pubnative.net, 1007286, RESELLER, d641df8625486a7b #yieldmovideo +pubnx.com, 337-1, RESELLER, 8728b7e97e589da4 # Vertoz revcontent.com, 76611, RESELLER -rhythmone.com, 78519861, RESELLER -smaato.com, 1100033117, RESELLER -spotx.tv, 147949, RESELLER, 7842df1d2fe2db34 -spotxchange.com, 147949, RESELLER, 7842df1d2fe2db34 -springserve.com, 686, DIRECT, a24eb641fc82e93d - - -indexexchange.com, 187196, DIRECT - +rhythmone.com, 1059622079, RESELLER rhythmone.com, 1059622079, RESELLER, a670c89d4a324e47 -contextweb.com, 560606, RESELLER, 89ff185a4c4e857 -ccoxmt.com, 2000067997702, RESELLER -adtech.com, 11119, RESELLER -33across.com, 0013300001r0t9mAAA, RESELLER -adtech.com, 9904, RESELLER -Advertising.com, 16736, RESELLER -aolcloud.net, 9904, RESELLER -appnexus.com, 7597, RESELLER, f5ab79cb980f11d1 -bidtellect.com, 1407, RESELLER, 1c34aa2d85d45e93 -contextweb.com, 558355, RESELLER -criteo.com, 109412, DIRECT, 9fac4a4a87c2a44f -indexexchange.com, 177754, RESELLER, 50b1c356f2c5c8fc -lkqd.com, 470, RESELLER, 59c49fa9598a0117 -lkqd.net, 470, RESELLER, 59c49fa9598a0117 -outbrain.com, 01a755b08c8c22b15d46a8b753ab6955d4, RESELLER -outbrain.com, 01a755b08c8c22b15d46a8b753ab6955d4, DIRECT -revcontent.com, 76611, RESELLER -smaato.com, 1100033117, RESELLER -spotx.tv, 147949, RESELLER, 7842df1d2fe2db34 -spotxchange.com, 147949, RESELLER, 7842df1d2fe2db34 -springserve.com, 686, DIRECT, a24eb641fc82e93d - -33across.com, 0010b00002Mpn7AAAR, DIRECT, bbea06d9c4d2853c -rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 -pubmatic.com, 156423, RESELLER, 5d62403b186f2ace -appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 -openx.com, 537120563, RESELLER, 6a698e2ec38604c6 -rhythmone.com, 2439829435, RESELLER, a670c89d4a324e47 -emxdgt.com, 326, RESELLER, 1e1d41537f7cad7f -gumgum.com, 13318, RESELLER, ffdef49475d318a9 -adtech.com, 12094, RESELLER -advangelists.com, 8d3bba7425e7c98c50f52ca1b52d3735, RESELLER, 60d26397ec060f98 -EMXDGT.com, 1133, DIRECT, 1e1d41537f7cad7f -Appnexus.com, 1356, RESELLER, f5ab79cb980f11d1 -Google.com, pub-5995202563537249, RESELLER, f08c47fec0942fa0 -sharethrough.com, 3a0f657b, DIRECT, d53b998a7bd4ecd2 -spotxchange.com, 212457, RESELLER -spotx.tv, 212457, RESELLER -pubmatic.com, 156557, RESELLER -rubiconproject.com, 18694, RESELLER, 0bfd66d529a55807 -openx.com, 540274407, RESELLER, 6a698e2ec38604c6 -appnexus.com, 2530, RESELLER -appnexus.com, 3153, DIRECT -advertising.com, 11602, RESELLER -vertamedia.com, 287605, DIRECT, 7de89dc7742b5b11 -vertamedia.com, 287605, RESELLER, 7de89dc7742b5b11 -appnexus.com, 9393, DIRECT -adtech.com, 11095, RESELLER -coxmt.com, 2000067907202, RESELLER -openx.com, 537143344, RESELLER -indexexchange.com, 175407, RESELLER -districtm.io, 100808, DIRECT -appnexus.com, 7944, RESELLER -appnexus.com, 1908, RESELLER -openx.com, 537127577, RESELLER, 6a698e2ec38604c6 -openx.com, 540337213, RESELLER, 6a698e2ec38604c6 rhythmone.com, 1114124056, RESELLER, a670c89d4a324e47 +rhythmone.com, 1166984029, RESELLER, a670c89d4a324e47 # Taboola rhythmone.com, 2241341073, RESELLER, a670c89d4a324e47 +rhythmone.com, 2310154583, DIRECT, a670c89d4a324e47 +rhythmone.com, 2439829435, RESELLER, a670c89d4a324e47 +rhythmone.com, 2439829435, RESELLER, a670c89d4a324e47 # 33 Across +rhythmone.com, 78519861, RESELLER +rhythmone.com, 905992537, RESELLER, a670c89d4a324e47 # RhythmOne +rhythmone.com,1654642120,RESELLER,a670c89d4a324e47 +rhythmone.com,2310154583,DIRECT,a670c89d4a324e47 +rhythmone.com,78519861,reseller,a670c89d4a324e47 rtk.io, 819, DIRECT +rubiconproject.com, 13344, RESELLER, 0bfd66d529a55807 # Rubicon +rubiconproject.com, 15268, RESELLER, 0bfd66d529a55807 # RhythmOne +rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 +rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 # 33 Across +rubiconproject.com, 17070, RESELLER, 0bfd66d529a55807 #yieldmo +rubiconproject.com, 17632, DIRECT, 0bfd66d529a55807 rubiconproject.com, 17790, RESELLER, 0bfd66d529a55807 rubiconproject.com, 17792, RESELLER, 0bfd66d529a55807 - -triplelift.com, 7205, DIRECT, 6c33edb13117fd86 -appnexus.com, 1314, RESELLER -spotxchange.com, 228454, RESELLER, 7842df1d2fe2db34 -spotx.tv, 228454, RESELLER, 7842df1d2fe2db34 - -google.com, pub-4641608711979091, DIRECT, f08c47fec0942fa0 -Newormedia.com, 2169, DIRECT - -yieldmo.com, 2417496099628458357, DIRECT -rhythmone.com, 2310154583, DIRECT, a670c89d4a324e47 - -openx.com, 539824308, RESELLER, 6a698e2ec38604c6 -openx.com, 542511596, RESELLER, 6a698e2ec38604c6 -teads.tv, 19014, DIRECT, 15a9c44f6d26cbe1 -brightcom.com, 20292, DIRECT -onomagic.com, 202921, DIRECT -audienciad.com, 202922, DIRECT -aps.amazon.com,48266a61-b3d9-4cb7-b172-553abc6a42a4,DIRECT -google.com, pub-5231479214411897, RESELLER, f08c47fec0942fa0 -google.com, pub-4207323757133151, RESELLER, f08c47fec0942fa0 -appnexus.com, 11801, RESELLER -appnexus.com, 12061, RESELLER -adtech.com, 11208, RESELLER -pubmatic.com, 159477,RESELLER,5d62403b186f2ace -appnexus.com, 12366, RESELLER, f5ab79cb980f11d1 -indexexchange.com, 189744, RESELLER +rubiconproject.com, 17822, DIRECT, 0bfd66d529a55807 +rubiconproject.com, 17822, RESELLER, 0bfd66d529a55807 +rubiconproject.com, 17960, RESELLER, 0bfd66d529a55807 +rubiconproject.com, 18222, RESELLER, 0bfd66d529a55807 # AOL - One +rubiconproject.com, 18694, RESELLER, 0bfd66d529a55807 +rubiconproject.com, 18890, DIRECT, 0bfd66d529a55807 +rubiconproject.com, 20130, RESELLER, 0bfd66d529a55807 rubiconproject.com, 20416, RESELLER, 0bfd66d529a55807 rubiconproject.com, 21310, RESELLER , 0bfd66d529a55807 -openx.com, 537153209, RESELLER, 6a698e2ec38604c6 -sonobi.com, 37dd19ad4a, RESELLER, d1a215d9eb5aee9e -contextweb.com, 560606, RESELLER, 89ff185a4c4e857c -openx.com,540833447, RESELLER, 6a698e2ec38604c6 -improvedigital.com, 1362, RESELLER -sovrn.com, 270524, RESELLER, fafdf38b16bf6b2b -lijit.com, 270524, RESELLER, fafdf38b16bf6b2b -appnexus.com, 3153, RESELLER, f5ab79cb980f11d1 -pubmatic.com, 159330, RESELLER, 5d62403b186f2ace -33across.com, 0013300001qkdlwAAA, RESELLER -google.com, pub-6314168058065736, RESELLER, f08c47fec0942fa0 -pubmatic.com, 32987, RESELLER, 5d62403b186f2ace -google.com, pub-2290755540215120, RESELLER, f08c47fec0942fa0 -conversantmedia.com, 39882, DIRECT, 03113cd04947736d -contextweb.com, 561998, RESELLER, 89ff185a4c4e857c -pubmatic.com, 158100, RESELLER, 5d62403b186f2ace -districtm.io, 101080, RESELLER -adform.com, 2708, DIRECT, 9f5210a2f0999e32 -sparcmedia.com, 310627, Direct -appnexus.com, 12263, RESELLER -aps.amazon.com,094e2c86-72d9-47d6-a647-d95ce39ad4c7,DIRECT -sovrn.com,217352,DIRECT,fafdf38b16bf6b2b -lijit.com,217352,DIRECT,fafdf38b16bf6b2b -pubmatic.com,157150,RESELLER,5d62403b186f2ace -openx.com,540191398,RESELLER,6a698e2ec38604c6 -rubiconproject.com,18020,RESELLER,0bfd66d529a55807 -appnexus.com,1908,RESELLER,f5ab79cb980f11d1 -smaato.com,1100044650,RESELLER,07bcf65f187117b4 -adtech.com,12068,RESELLER,e1a5b5b6e3255540 -ad-generation.jp,12474,RESELLER,7f4ea9029ac04e53 -districtm.io,100962,RESELLER,3fd707be9c4527c3 -appnexus.com,3663,RESELLER,f5ab79cb980f11d1 -rhythmone.com,1654642120,RESELLER,a670c89d4a324e47 -yahoo.com,55029,RESELLER,e1a5b5b6e3255540 -gumgum.com,14141,RESELLER,ffdef49475d318a9 -pubmatic.com,160006,RESELLER,5d62403b186f2ace -pubmatic.com,160096,RESELLER,5d62403b186f2ace -amxrtb.com, 105199384, DIRECT -appnexus.com, 12290, RESELLER, f5ab79cb980f11d1 -appnexus.com, 11786, RESELLER, f5ab79cb980f11d1 -indexexchange.com, 191503, RESELLER, 50b1c356f2c5c8fc -lijit.com, 260380, RESELLER, fafdf38b16bf6b2b -sovrn.com, 260380, RESELLER, fafdf38b16bf6b2b -pubmatic.com, 158355 , RESELLER, 5d62403b186f2ace -appnexus.com, 9393, RESELLER #Video #Display, f5ab79cb980f11d1 -appnexus.com, 11924, RESELLER, f5ab79cb980f11d1 -appnexus.com, 1356, RESELLER, f5ab79cb980f11d1 -openx.com, 538959099, RESELLER, 6a698e2ec38604c6 -rubiconproject.com, 17960, RESELLER, 0bfd66d529a55807 -indexexchange.com, 186046, RESELLER -pubmatic.com, 158723, RESELLER, 5d62403b186f2ace -33across.com, 0013300001kQj2HAAS, RESELLER, bbea06d9c4d2853c -smaato.com, 1100047713, RESELLER, 07bcf65f187117b4 -yahoo.com, 57289, RESELLER, e1a5b5b6e3255540 -indexexchange.com, 191973, RESELLER, 50b1c356f2c5c8fc rubiconproject.com, 21642, RESELLER, 0bfd66d529a55807 -rubiconproject.com, 17822, RESELLER, 0bfd66d529a55807 -districtm.io, 100835, DIRECT, 3fd707be9c4527c3 -appnexus.com, 3153, RESELLER -conversantmedia.com, 40790, RESELLER, 03113cd04947736d -gumgum.com, 13504, RESELLER, ffdef49475d318a9 -pubmatic.com, 79136 , RESELLER, 5d62403b186f2ace -sharethrough.com, d09156e5, RESELLER, d53b998a7bd4ecd2 +rubiconproject.com, 8861, reseller, 0bfd66d529a55807 +rubiconproject.com,18020,RESELLER,0bfd66d529a55807 Sekindo.com, 20749, DIRECT, b6b21d256ef43532 -spotxchange.com, 84294, RESELLER, 7842df1d2fe2db34 -spotx.tv, 84294, RESELLER, 7842df1d2fe2db34 -advertising.com, 7372, RESELLER -advertising.com, 24410, RESELLER -pubmatic.com, 156595, RESELLER, 5d62403b186f2ace -google.com, pub-1320774679920841, RESELLER, f08c47fec0942fa0 -openx.com, 540258065, RESELLER, 6a698e2ec38604c6 -rubiconproject.com, 20130, RESELLER, 0bfd66d529a55807 -freewheel.tv, 19129, RESELLER -freewheel.tv, 19133, RESELLER -tremorhub.com, mb9eo-oqsbf, RESELLER, 1a4e959a1b50034a -telaria.com, mb9eo-oqsbf, RESELLER, 1a4e959a1b50034a +sharethrough.com, 3a0f657b, DIRECT, d53b998a7bd4ecd2 +sharethrough.com, d09156e5, RESELLER, d53b998a7bd4ecd2 +smaato.com, 1100033117, RESELLER +smaato.com, 1100047713, RESELLER, 07bcf65f187117b4 +smaato.com,1100044650,RESELLER,07bcf65f187117b4 smartadserver.com, 3436, RESELLER -indexexchange.com, 191923, RESELLER -contextweb.com, 562350, RESELLER, 89ff185a4c4e857c -pubmatic.com, 160131, RESELLER, 5d62403b186f2ace -pubmatic.com, 160082 , RESELLER, 5d62403b186f2ace -newormedia.com, 4908, DIRECT -rhythmone.com,2310154583,DIRECT,a670c89d4a324e47 -video.unrulymedia.com, 2310154583, DIRECT -indexexchange.com, 193351, DIRECT -lijit.com, 217352-eb, DIRECT, fafdf38b16bf6b2b -appnexus.com, 1360, RESELLER, f5ab79cb980f11d1 -openx.com, 538959099, RESELLER, 6a698e2ec38604c6 -pubmatic.com, 137711, RESELLER, 5d62403b186f2ace -pubmatic.com, 156212, RESELLER, 5d62403b186f2ace -rubiconproject.com, 17960, RESELLER, 0bfd66d529a55807 -synacor.com, 82350, RESELLER, e108f11b2cdf7d5b -33across.com, 0014000001aXjnGAAS, RESELLER, bbea06d9c4d2853c # 33 Across -adtech.com, 12094, RESELLER # 33 Across -advangelists.com, 8d3bba7425e7c98c50f52ca1b52d3735, RESELLER, 60d26397ec060f98 # 33 Across -appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 # 33 Across -emxdgt.com, 326, RESELLER, 1e1d41537f7cad7f # 33 Across -google.com, pub-9557089510405422, RESELLER, f08c47fec0942fa0 # 33 Across -gumgum.com, 13318, RESELLER, ffdef49475d318a9 # 33 Across -openx.com, 537120563, RESELLER, 6a698e2ec38604c6 # 33 Across -pubmatic.com, 156423, RESELLER, 5d62403b186f2ace # 33 Across -rhythmone.com, 2439829435, RESELLER, a670c89d4a324e47 # 33 Across -rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 # 33 Across -advertising.com, 19623, RESELLER # AOL - One -indexexchange.com, 183965, RESELLER, 50b1c356f2c5c8fc # AOL - One -pubmatic.com, 156084, RESELLER, 5d62403b186f2ace # AOL - One -pubmatic.com, 156325, RESELLER, 5d62403b186f2ace # AOL - One -pubmatic.com, 156458, RESELLER, 5d62403b186f2ace # AOL - One -rubiconproject.com, 18222, RESELLER, 0bfd66d529a55807 # AOL - One -appnexus.com, 9316, RESELLER, f5ab79cb980f11d1 # AppNexus -appnexus.com, 4052, RESELLER, f5ab79cb980f11d1 # Conversant -conversantmedia.com, 20923, RESELLER # Conversant -openx.com, 540031703, RESELLER, 6a698e2ec38604c6 # Conversant -appnexus.com, 1908, RESELLER, f5ab79cb980f11d1 # DistrictM -districtm.io, 101769, RESELLER, 3fd707be9c4527c3 # DistrictM -google.com, pub-9685734445476814, RESELLER, f08c47fec0942fa0 # DistrictM -engagebdr.com, 10417, RESELLER # EngageDBR -improvedigital.com, 1669, RESELLER # ImproveDigital -indexexchange.com, 191740, RESELLER, 50b1c356f2c5c8fc # Index -themediagrid.com, P5JONV, RESELLER, 35d5010d7789b49d # Media Grid (IPONWEB) -onetag.com, 572a470226457b8, RESELLER # OneTag -openx.com, 540401713, RESELLER, 6a698e2ec38604c6 # OpenX -pubmatic.com, 156344, RESELLER, 5d62403b186f2ace # Pubmatic -advertising.com, 28605, RESELLER # RhythmOne -appnexus.com, 6849, RESELLER, f5ab79cb980f11d1 # RhythmOne -indexexchange.com, 182257, RESELLER, 50b1c356f2c5c8fc # RhythmOne -pubmatic.com, 159277, RESELLER, 5d62403b186f2ace # RhythmOne -rhythmone.com, 905992537, RESELLER, a670c89d4a324e47 # RhythmOne -rubiconproject.com, 15268, RESELLER, 0bfd66d529a55807 # RhythmOne +sonobi.com, 337f0e70cc, DIRECT +sonobi.com, 37dd19ad4a, RESELLER, d1a215d9eb5aee9e +sonobi.com, 6e5cfb5420, DIRECT, d1a215d9eb5aee9e +sonobi.com, e55fb5d7c2, DIRECT, d1a215d9eb5aee9e +sovrn.com, 217352, DIRECT, fafdf38b16bf6b2b +sovrn.com, 248396, DIRECT, fafdf38b16bf6b2b +sovrn.com, 260380, RESELLER, fafdf38b16bf6b2b +sovrn.com, 270524, RESELLER, fafdf38b16bf6b2b +sovrn.com,217352,DIRECT,fafdf38b16bf6b2b +sparcmedia.com, 310627, Direct +spotx.tv, 108933, RESELLER, 7842df1d2fe2db34 +spotx.tv, 147949, RESELLER, 7842df1d2fe2db34 +spotx.tv, 212457, RESELLER +spotx.tv, 228454, RESELLER, 7842df1d2fe2db34 +spotx.tv, 270977, DIRECT, 7842df1d2fe2db34 spotx.tv, 285547, RESELLER, 7842df1d2fe2db34 # RhythmOne -spotxchange.com, 285547, RESELLER, 7842df1d2fe2db34 # RhythmOne -video.unrulymedia.com, 905992537, RESELLER, a670c89d4a324e47 # RhythmOne -rubiconproject.com, 13344, RESELLER, 0bfd66d529a55807 # Rubicon -spotx.tv, 94794, RESELLER, 7842df1d2fe2db34 # SpotX -spotxchange.com, 94794, RESELLER, 7842df1d2fe2db34 # SpotX -advertising.com, 8603, RESELLER # Taboola -aol.com, 53392, RESELLER # Taboola -freewheel.tv, 799841, RESELLER # Taboola -freewheel.tv, 799921, RESELLER # Taboola -pubmatic.com, 156307, RESELLER, 5d62403b186f2ace # Taboola -rhythmone.com, 1166984029, RESELLER, a670c89d4a324e47 # Taboola spotx.tv, 71451, RESELLER, 7842df1d2fe2db34 # Taboola +spotx.tv, 84294, RESELLER, 7842df1d2fe2db34 +spotx.tv, 94794, RESELLER, 7842df1d2fe2db34 # SpotX +spotxchange.com, 108933, RESELLER, 7842df1d2fe2db34 +spotxchange.com, 147949, RESELLER, 7842df1d2fe2db34 +spotxchange.com, 212457, RESELLER +spotxchange.com, 228454, RESELLER, 7842df1d2fe2db34 +spotxchange.com, 270977, DIRECT, 7842df1d2fe2db34 +spotxchange.com, 285547, RESELLER, 7842df1d2fe2db34 # RhythmOne spotxchange.com, 71451, RESELLER, 7842df1d2fe2db34 # Taboola +spotxchange.com, 84294, RESELLER, 7842df1d2fe2db34 +spotxchange.com, 94794, RESELLER, 7842df1d2fe2db34 # SpotX +springserve.com, 686, DIRECT, a24eb641fc82e93d +synacor.com, 82350, RESELLER, e108f11b2cdf7d5b +synacor.com,82151,reseller,e108f11b2cdf7d5b +teads.tv, 19014, DIRECT, 15a9c44f6d26cbe1 +telaria.com, mb9eo-oqsbf, RESELLER, 1a4e959a1b50034a +telaria.com, vtrdn-wjdav, DIRECT, 1a4e959a1b50034a +telaria.com, vtrdn-ysjam, DIRECT, 1a4e959a1b50034a +themediagrid.com, P5JONV, RESELLER, 35d5010d7789b49d # Media Grid (IPONWEB) +tremorhub.com, mb9eo-oqsbf, RESELLER, 1a4e959a1b50034a +tremorhub.com, vtrdn-wjdav, DIRECT, 1a4e959a1b50034a +tremorhub.com, vtrdn-ysjam, DIRECT, 1a4e959a1b50034a tremorhub.com, z87wm, RESELLER, 1a4e959a1b50034a # Taboola -aralego.com, par-488A3E6BD8D997D0ED8B3BD34D8BA4B, RESELLER # ucFunnel +triplelift.com, 7205, DIRECT, 6c33edb13117fd86 ucfunnel.com, par-488A3E6BD8D997D0ED8B3BD34D8BA4B, RESELLER # ucFunnel -yahoo.com, 55317, RESELLER # Verizon -pubnx.com, 337-1, RESELLER, 8728b7e97e589da4 # Vertoz -contextweb.com, 561118, RESELLER, 89ff185a4c4e857c #yieldmo -appnexus.com, 7911, RESELLER #yieldmo -rubiconproject.com, 17070, RESELLER, 0bfd66d529a55807 #yieldmo -pubnative.net, 1007284, RESELLER, d641df8625486a7b #yieldmodisplay -pubnative.net, 1007285, RESELLER, d641df8625486a7b #yieldmonative -pubnative.net, 1007286, RESELLER, d641df8625486a7b #yieldmovideo -onetag.com, 664e107d9f2b748, RESELLER #yieldmo -conversantmedia.com, 41812, DIRECT -appnexus.com, 4052, RESELLER -openx.com, 540031703, RESELLER, 6a698e2ec38604c6 -contextweb.com, 561998, RESELLER, 89ff185a4c4e857c -pubmatic.com, 158100, RESELLER, 5d62403b186f2ace +vertamedia.com, 287605, DIRECT, 7de89dc7742b5b11 +vertamedia.com, 287605, RESELLER, 7de89dc7742b5b11 +video.unrulymedia.com, 2310154583, DIRECT +video.unrulymedia.com, 905992537, RESELLER, a670c89d4a324e47 # RhythmOne yahoo.com, 55771, RESELLER, e1a5b5b6e3255540 -appnexus.com, 7118, RESELLER -spotx.tv, 108933, RESELLER, 7842df1d2fe2db34 -spotxchange.com, 108933, RESELLER, 7842df1d2fe2db34 -improvedigital.com, 185, RESELLER -adform.com, 183, RESELLER -freewheel.tv, 33081, RESELLER -freewheel.tv, 33601, RESELLER -google.com, pub-8172268348509349, RESELLER, f08c47fec0942fa0 -indexexchange.com, 189872, RESELLER -openx.com, 541159484, RESELLER, 6a698e2ec38604c6 -gumgum.com,13174,DIRECT,ffdef49475d318a9 -appnexus.com,1001,reseller,f5ab79cb980f11d1 -appnexus.com,2758,reseller,f5ab79cb980f11d1 -bidtellect.com,1407,reseller,1c34aa2d85d45e93 -contextweb.com,558355,reseller -openx.com,537149485,reseller,6a698e2ec38604c6 -google.com,pub-9557089510405422,reseller,f08c47fec0942fa0 -google.com,pub-3848273848634341,reseller,f08c47fec0942fa0 -rhythmone.com,78519861,reseller,a670c89d4a324e47 -appnexus.com,7597,reseller,f5ab79cb980f11d1 -33across.com,0013300001r0t9mAAA,reseller,bbea06d9c4d2853c -appnexus.com,10239,reseller,f5ab79cb980f11d1 -pubmatic.com,157897,reseller,5d62403b186f2ace -synacor.com,82151,reseller,e108f11b2cdf7d5b -appnexus.com,9316,reseller,f5ab79cb980f11d1 -EMXDGT.com,1284,reseller,1e1d41537f7cad7f -appnexus.com,1356,reseller,f5ab79cb980f11d1 -outbrain.com,00254374f0c468f3b2732db17fd42cb6e5,reseller -aps.amazon.com,2840f06c-5d89-4853-a03e-3bfa567dd33c,reseller -adtech.com, 10947, DIRECT, e1a5b5b6e3255540 -appnexus.com, 7556, DIRECT, f5ab79cb980f11d1 -emxdgt.com, 20, DIRECT, 1e1d41537f7cad7f -indexexchange.com, 184914, DIRECT, 50b1c356f2c5c8fc -indexexchange.com, 186248, DIRECT, 50b1c356f2c5c8fc -lijit.com, 248396, DIRECT, fafdf38b16bf6b2b -openx.com, 537150004, DIRECT, 6a698e2ec38604c6 -pubmatic.com, 156319, DIRECT, 5d62403b186f2ace -sonobi.com, e55fb5d7c2, DIRECT, d1a215d9eb5aee9e -sovrn.com, 248396, DIRECT, fafdf38b16bf6b2b -tremorhub.com, vtrdn-wjdav, DIRECT, 1a4e959a1b50034a -rubiconproject.com, 17632, DIRECT, 0bfd66d529a55807 -openx.com, 539699341, DIRECT, 6a698e2ec38604c6 -rubiconproject.com, 18890, DIRECT, 0bfd66d529a55807 -pubmatic.com, 157367, DIRECT, 5d62403b186f2ace -indexexchange.com, 187454, DIRECT, 50b1c356f2c5c8fc -consumable.com, 2000908, DIRECT, aefcd3d2f45b5070 -sonobi.com, 6e5cfb5420, DIRECT, d1a215d9eb5aee9e -advertising.com, 28409, DIRECT, e1a5b5b6e3255540 -spotxchange.com, 270977, DIRECT, 7842df1d2fe2db34 -spotx.tv, 270977, DIRECT, 7842df1d2fe2db34 -telaria.com, vtrdn-wjdav, DIRECT, 1a4e959a1b50034a -lijit.com, 248396-eb, DIRECT, fafdf38b16bf6b2b -advertising.com, 28509, DIRECT, e1a5b5b6e3255540 yahoo.com, 55104, DIRECT, e1a5b5b6e3255540 -pubmatic.com, 159117, DIRECT, 5d62403b186f2ace -tremorhub.com, vtrdn-ysjam, DIRECT, 1a4e959a1b50034a -telaria.com, vtrdn-ysjam, DIRECT, 1a4e959a1b50034a +yahoo.com, 55317, RESELLER # Verizon +yahoo.com, 57289, RESELLER, e1a5b5b6e3255540 yahoo.com, 57695, DIRECT, e1a5b5b6e3255540 +yahoo.com,55029,RESELLER,e1a5b5b6e3255540 +yieldmo.com, 2417496099628458357, DIRECT From ea10fc92c547a9194330611f34a680cdef94aa7e Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Sat, 20 Feb 2021 18:51:09 -0300 Subject: [PATCH 17/36] Update examples to Python 3 in structure section --- docs/writing/structure.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/writing/structure.rst b/docs/writing/structure.rst index 69c9cf616..5d9645acd 100644 --- a/docs/writing/structure.rst +++ b/docs/writing/structure.rst @@ -788,7 +788,7 @@ compute x + 1, you have to create another integer and give it a name. my_list = [1, 2, 3] my_list[0] = 4 - print my_list # [4, 2, 3] <- The same list has changed + print(my_list) # [4, 2, 3] <- The same list has changed x = 6 x = x + 1 # The new x is another object @@ -822,7 +822,7 @@ most idiomatic way to do this. nums = "" for n in range(20): nums += str(n) # slow and inefficient - print nums + print(nums) **Better** @@ -832,7 +832,7 @@ most idiomatic way to do this. nums = [] for n in range(20): nums.append(str(n)) - print "".join(nums) # much more efficient + print("".join(nums)) # much more efficient **Best** @@ -840,7 +840,7 @@ most idiomatic way to do this. # create a concatenated string from 0 to 19 (e.g. "012..1819") nums = [str(n) for n in range(20)] - print "".join(nums) + print("".join(nums)) One final thing to mention about strings is that using ``join()`` is not always best. In the instances where you are creating a new string from a pre-determined From 9c2d09dfcdc908443f494a512a6e83ce5a4a1a97 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Mon, 22 Feb 2021 19:25:31 -0300 Subject: [PATCH 18/36] Upd to python 3 in explicit code section --- docs/writing/style.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 3bf029911..718a6b4dd 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -65,9 +65,9 @@ it is bad practice to have two disjointed statements on the same line of code. .. code-block:: python - print 'one'; print 'two' + print('one'); print('two') - if x == 1: print 'one' + if x == 1: print('one') if and : # do something @@ -76,11 +76,11 @@ it is bad practice to have two disjointed statements on the same line of code. .. code-block:: python - print 'one' - print 'two' + print('one') + print('two') if x == 1: - print 'one' + print('one') cond1 = cond2 = From ed755c1e6328589ef04be91c8dbb3e068be159d5 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Mon, 22 Feb 2021 19:35:31 -0300 Subject: [PATCH 19/36] Change xrange function to range function --- docs/writing/style.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 718a6b4dd..cd62d81f4 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -357,9 +357,7 @@ Instead, use a list comprehension: .. code-block:: python - four_lists = [[] for __ in xrange(4)] - -Note: Use range() instead of xrange() in Python 3. + four_lists = [[] for __ in range(4)] Create a string from a list ~~~~~~~~~~~~~~~~~~~~~~~~~~~ From 5796581b4fbd581052601b3de9fef42755e64805 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Mon, 22 Feb 2021 19:47:10 -0300 Subject: [PATCH 20/36] Upd of print func to py3 syntax in conventions section --- docs/writing/style.rst | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index cd62d81f4..9858112de 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -582,10 +582,10 @@ list of what is considered false. .. code-block:: python if attr == True: - print 'True!' + print('True!') if attr == None: - print 'attr is None!' + print('attr is None!') **Good**: @@ -593,15 +593,15 @@ list of what is considered false. # Just check the value if attr: - print 'attr is truthy!' + print('attr is truthy!') # or check for the opposite if not attr: - print 'attr is falsey!' + print('attr is falsey!') # or, since None is considered false, explicitly check for it if attr is None: - print 'attr is None!' + print('attr is None!') Access a Dictionary Element ~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -615,9 +615,9 @@ or pass a default argument to :py:meth:`dict.get`. d = {'hello': 'world'} if d.has_key('hello'): - print d['hello'] # prints 'world' + print(d['hello']) # prints 'world' else: - print 'default_value' + print('default_value') **Good**: @@ -625,12 +625,12 @@ or pass a default argument to :py:meth:`dict.get`. d = {'hello': 'world'} - print d.get('hello', 'default_value') # prints 'world' - print d.get('thingy', 'default_value') # prints 'default_value' + print(d.get('hello', 'default_value')) # prints 'world' + print(d.get('thingy', 'default_value')) # prints 'default_value' # Or: if 'hello' in d: - print d['hello'] + print(d['hello']) Short Ways to Manipulate Lists ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -781,7 +781,7 @@ Use :py:func:`enumerate` keep a count of your place in the list. a = [3, 4, 5] for i, item in enumerate(a): - print i, item + print(i, item) # prints # 0 3 # 1 4 @@ -802,7 +802,7 @@ files for you. f = open('file.txt') a = f.read() - print a + print(a) f.close() **Good**: @@ -811,7 +811,7 @@ files for you. with open('file.txt') as f: for line in f: - print line + print(line) The ``with`` statement is better because it will ensure you always close the file, even if an exception is raised inside the ``with`` block. From ed39c488ffb3aabb00525ea82715b7e163b312b0 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Mon, 22 Feb 2021 20:05:12 -0300 Subject: [PATCH 21/36] Upd of print func to py3 syntax --- docs/scenarios/scrape.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/scenarios/scrape.rst b/docs/scenarios/scrape.rst index 3c7493f42..54747b295 100644 --- a/docs/scenarios/scrape.rst +++ b/docs/scenarios/scrape.rst @@ -87,8 +87,8 @@ Let's see what we got exactly: .. code-block:: python - print 'Buyers: ', buyers - print 'Prices: ', prices + print('Buyers: ', buyers) + print('Prices: ', prices) :: From ebb2a21a6500977494313bfda47b950f489acef7 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Mon, 22 Feb 2021 20:17:53 -0300 Subject: [PATCH 22/36] Upd of print func to py3 syntax --- docs/scenarios/speed.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/scenarios/speed.rst b/docs/scenarios/speed.rst index e99b18f4e..e178efb63 100644 --- a/docs/scenarios/speed.rst +++ b/docs/scenarios/speed.rst @@ -176,17 +176,17 @@ What's the difference in speed? Let's try it! #primes implemented with Python import primes - print "Cython:" + print("Cython:") t1= time.time() - print primesCy.primes(500) + print(primesCy.primes(500)) t2= time.time() - print "Cython time: %s" %(t2-t1) - print "" - print "Python" + print("Cython time: %s" %(t2-t1)) + print("") + print("Python") t1= time.time() - print primes.primes(500) + print(primes.primes(500)) t2= time.time() - print "Python time: %s" %(t2-t1) + print("Python time: %s" %(t2-t1)) These lines both need a remark: From 727edfedf20c47e99c59f855a8366a336dc3b02b Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Tue, 23 Feb 2021 09:10:29 -0800 Subject: [PATCH 23/36] Code formatting cleanup --- docs/scenarios/speed.rst | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/docs/scenarios/speed.rst b/docs/scenarios/speed.rst index e178efb63..5dc0cd845 100644 --- a/docs/scenarios/speed.rst +++ b/docs/scenarios/speed.rst @@ -168,25 +168,23 @@ What's the difference in speed? Let's try it! .. code-block:: python import time - #activate pyx compiler + # Activate pyx compiler import pyximport - pyximport.install() - #primes implemented with Cython - import primesCy - #primes implemented with Python - import primes + pyximport.install() + import primesCy # primes implemented with Cython + import primes # primes implemented with Python print("Cython:") - t1= time.time() + t1 = time.time() print(primesCy.primes(500)) - t2= time.time() - print("Cython time: %s" %(t2-t1)) + t2 = time.time() + print("Cython time: %s" % (t2 - t1)) print("") print("Python") - t1= time.time() + t1 = time.time() print(primes.primes(500)) - t2= time.time() - print("Python time: %s" %(t2-t1)) + t2 = time.time() + print("Python time: %s" % (t2 - t1)) These lines both need a remark: From 4050adc9cb2657a7139a04e892501c77e303ae49 Mon Sep 17 00:00:00 2001 From: trk9001 Date: Tue, 4 May 2021 19:54:28 +0600 Subject: [PATCH 24/36] Update gpip function to use explicit false value This commit fixes #1099. See that issue for more details. --- docs/dev/pip-virtualenv.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev/pip-virtualenv.rst b/docs/dev/pip-virtualenv.rst index ee223078e..667f30c7a 100644 --- a/docs/dev/pip-virtualenv.rst +++ b/docs/dev/pip-virtualenv.rst @@ -79,7 +79,7 @@ adding the following to your :file:`~/.bashrc` file: .. code-block:: console gpip() { - PIP_REQUIRE_VIRTUALENV="" pip "$@" + PIP_REQUIRE_VIRTUALENV=false pip "$@" } After saving the changes and sourcing your :file:`~/.bashrc` file you can now From e591eca8dc263d6568850ac0243222e744d9da68 Mon Sep 17 00:00:00 2001 From: Ilya Shubkin Date: Thu, 13 May 2021 07:48:27 +0100 Subject: [PATCH 25/36] docs: fix Expert Python Programming book link --- docs/intro/learning.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro/learning.rst b/docs/intro/learning.rst index c6d534549..b0c957398 100644 --- a/docs/intro/learning.rst +++ b/docs/intro/learning.rst @@ -253,7 +253,7 @@ and eventually an application, including a chapter on using zc.buildout. Later chapters detail best practices such as writing documentation, test-driven development, version control, optimization, and profiling. - `Expert Python Programming `_ + `Expert Python Programming `_ A Guide to Python's Magic Methods From 6cc16258bdc75d5bad4c155359c7fc18f51cfa6d Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Tue, 13 Jul 2021 12:06:22 -0700 Subject: [PATCH 26/36] Fix Netlify build --- runtime.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.txt b/runtime.txt index d70c8f8d8..5a958026d 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -3.6 +3.5 From 0c8dfb2a7c07407f7aed2165abbb98bebb13be72 Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Tue, 13 Jul 2021 12:08:42 -0700 Subject: [PATCH 27/36] Fix Netlify build --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c2886a7fe..4a246ac76 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ docutils==0.14 idna==2.7 imagesize==1.0.0 Jinja2==2.10 -MarkupSafe==1.0 +MarkupSafe==1.1.1 packaging==17.1 Pygments==2.2.0 pyparsing==2.2.0 From d047f536fedf2e4e7ab7d3c45e8b450a46f5c6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Tue, 5 Oct 2021 23:07:02 +0200 Subject: [PATCH 28/36] Update PySide entry --- docs/scenarios/gui.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/scenarios/gui.rst b/docs/scenarios/gui.rst index 1b0ffb427..3ad0af364 100644 --- a/docs/scenarios/gui.rst +++ b/docs/scenarios/gui.rst @@ -79,12 +79,15 @@ PySide ****** PySide is a Python binding of the cross-platform GUI toolkit Qt. +The package name depends on the major Qt version (`PySide` for Qt4, +`PySide2` for Qt5, and `PySide6` for Qt6). +This set of bindings is developed by `The Qt Company `_. .. code-block:: console - $ pip install pyside + $ pip install pyside6 -https://wiki.qt.io/Category:LanguageBindings::PySide::Downloads +https://pyside.org **** From 4eedae744f5a5bd8edc5b5edd021e9e49a68a653 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Sun, 26 Dec 2021 16:57:36 +0000 Subject: [PATCH 29/36] Replacing Tablib fork with the original repo Link currently points to a tablib fork and not to the original repo (https://github.com/jazzband/tablib). Fork doesn't look maintained and is behind the original repo Changing link to use https://github.com/jazzband/tablib --- docs/writing/reading.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/reading.rst b/docs/writing/reading.rst index ad67ea3cb..1e03a4def 100644 --- a/docs/writing/reading.rst +++ b/docs/writing/reading.rst @@ -43,7 +43,7 @@ reading. Each one of these projects is a paragon of Python coding. Requests is an Apache2 Licensed HTTP library, written in Python, for human beings. -- `Tablib `_ +- `Tablib `_ Tablib is a format-agnostic tabular dataset library, written in Python. From 8e7087b41b42609837ed3484732f450c68e86edc Mon Sep 17 00:00:00 2001 From: Thomas Severin Date: Mon, 25 Apr 2022 10:05:30 +0200 Subject: [PATCH 30/36] Code refactoring and wording improvements. --- docs/scenarios/admin.rst | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/docs/scenarios/admin.rst b/docs/scenarios/admin.rst index 07d263945..236d08d2b 100644 --- a/docs/scenarios/admin.rst +++ b/docs/scenarios/admin.rst @@ -155,44 +155,42 @@ tests (net, CPU) fail, it will send an email. # Package for email services: import smtplib import string - MAX_NET_USAGE = 400000 + MAX_NET_USAGE = 400000 # bytes per seconds MAX_ATTACKS = 4 attack = 0 - counter = 0 while attack <= MAX_ATTACKS: sleep(4) - counter = counter + 1 - # Check the cpu usage - if cpu_percent(interval = 1) > 70: - attack = attack + 1 - # Check the net usage - neti1 = net_io_counters()[1] - neto1 = net_io_counters()[0] + + # Check the net usage wit named tuples + neti1 = net_io_counters().bytes_recv + neto1 = net_io_counters().bytes_sent sleep(1) - neti2 = net_io_counters()[1] - neto2 = net_io_counters()[0] + neti2 = net_io_counters().bytes_recv + neto2 = net_io_counters().bytes_sent + # Calculate the bytes per second net = ((neti2+neto2) - (neti1+neto1))/2 - if net > MAX_NET_USAGE: - attack = attack + 1 - if counter > 25: - attack = 0 - counter = 0 + + # Check the net and cpu usage + if (net > MAX_NET_USAGE) or (cpu_percent(interval = 1) > 70): + attack+=1 + elif attack > 1: + attack-=1 + # Write a very important email if attack is higher than 4 TO = "you@your_email.com" FROM = "webmaster@your_domain.com" SUBJECT = "Your domain is out of system resources!" text = "Go and fix your server!" - BODY = string.join(("From: %s" %FROM,"To: %s" %TO,"Subject: %s" %SUBJECT, "",text), "\r\n") + string="\r\n" + BODY = string.join(("From: %s" %FROM,"To: %s" %TO, + "Subject: %s" %SUBJECT, "",text)) server = smtplib.SMTP('127.0.0.1') server.sendmail(FROM, [TO], BODY) server.quit() -A full terminal application like a widely extended top which is based on -psutil and with the ability of a client-server monitoring is -`glance `_. - +A full terminal application like a widely extended top is glance, which is based on psutil and has the ability for client-server monitoring. ******* Ansible From 69580b1179e64da6dca20215aeaf0257e044f369 Mon Sep 17 00:00:00 2001 From: Thomas S Date: Wed, 27 Apr 2022 18:34:21 +0200 Subject: [PATCH 31/36] Broken link to Glance --- docs/scenarios/admin.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scenarios/admin.rst b/docs/scenarios/admin.rst index 236d08d2b..f70268fa9 100644 --- a/docs/scenarios/admin.rst +++ b/docs/scenarios/admin.rst @@ -190,7 +190,7 @@ tests (net, CPU) fail, it will send an email. server.quit() -A full terminal application like a widely extended top is glance, which is based on psutil and has the ability for client-server monitoring. +A full terminal application like a widely extended top is `glance `_, which is based on psutil and has the ability for client-server monitoring. ******* Ansible From 536b08fc804eb9af246a3e707aafb951a3cc14c1 Mon Sep 17 00:00:00 2001 From: Thomas S Date: Wed, 27 Apr 2022 18:34:46 +0200 Subject: [PATCH 32/36] Broken link to Glance --- docs/scenarios/admin.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scenarios/admin.rst b/docs/scenarios/admin.rst index f70268fa9..73df990d7 100644 --- a/docs/scenarios/admin.rst +++ b/docs/scenarios/admin.rst @@ -190,7 +190,7 @@ tests (net, CPU) fail, it will send an email. server.quit() -A full terminal application like a widely extended top is `glance `_, which is based on psutil and has the ability for client-server monitoring. +A full terminal application like a widely extended top is `Glance `_, which is based on psutil and has the ability for client-server monitoring. ******* Ansible From 32db4ae8e27ccc1b2c5a3099166add1543671819 Mon Sep 17 00:00:00 2001 From: Max Weiner Date: Thu, 16 Jun 2022 07:44:27 +0200 Subject: [PATCH 33/36] add section for xmlschema --- docs/scenarios/xml.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/scenarios/xml.rst b/docs/scenarios/xml.rst index 3bdf15b6c..24dab5869 100644 --- a/docs/scenarios/xml.rst +++ b/docs/scenarios/xml.rst @@ -81,3 +81,30 @@ and then you can access elements, attributes, and values like this: 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 XML namespaces. + +********** +xmlschema +********** + +`xmlschema `_ provides support for using XSD-Schemas in Python. +Unlike other XML libraries, automatic type parsing is available, so f.e. if the schema defines an element to be of type ``int``, the parsed ``dict`` will contain also an ``int`` value for that element. +Moreover the library supports automatic and explicit validation of XML documents against a schema. + +.. code-block:: python + + from xmlschema import XMLSchema, etree_tostring + + # load a XSD schema file + schema = XMLSchema("your_schema.xsd") + + # validate against the schema + schema.validate("your_file.xml") + + # or + schema.is_valid("your_file.xml") + + # decode a file + data = schmema.decode("your_file.xml") + + # encode to string + s = etree_tostring(schema.encode(data)) From 20b4160bf8424d881c007b320a3f65d2289c9b14 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Fri, 17 Jun 2022 11:43:46 -0600 Subject: [PATCH 34/36] Update Requests documentation links --- docs/dev/virtualenvs.rst | 2 +- docs/scenarios/client.rst | 2 +- docs/scenarios/scrape.rst | 2 +- docs/writing/style.rst | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/dev/virtualenvs.rst b/docs/dev/virtualenvs.rst index b4591e43b..fe6bd3f9e 100644 --- a/docs/dev/virtualenvs.rst +++ b/docs/dev/virtualenvs.rst @@ -156,7 +156,7 @@ when you share your project with others. You should get output similar to this Adding requests to Pipfile's [packages]... P.S. You have excellent taste! ✨ 🍰 ✨ -.. _Requests: http://docs.python-requests.org/en/master/ +.. _Requests: https://requests.readthedocs.io/en/latest/ Using installed packages diff --git a/docs/scenarios/client.rst b/docs/scenarios/client.rst index 1457fa479..c2d5c289b 100644 --- a/docs/scenarios/client.rst +++ b/docs/scenarios/client.rst @@ -28,7 +28,7 @@ your URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling are 100% automatic, powered by urllib3, which is embedded within Requests. -- `Documentation `_ +- `Documentation `_ - `PyPi `_ - `GitHub `_ diff --git a/docs/scenarios/scrape.rst b/docs/scenarios/scrape.rst index 54747b295..527719200 100644 --- a/docs/scenarios/scrape.rst +++ b/docs/scenarios/scrape.rst @@ -28,7 +28,7 @@ lxml and Requests `lxml `_ is a pretty extensive library written for parsing XML and HTML documents very quickly, even handling messed up tags in the process. We will also be using the -`Requests `_ module instead of the +`Requests `_ module instead of the already built-in urllib2 module due to improvements in speed and readability. You can easily install both using ``pip install lxml`` and ``pip install requests``. diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 9858112de..d8c096a05 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -465,8 +465,7 @@ easy-to-read version of PEP 8 is also available at `pep8.org ` This is highly recommended reading. The entire Python community does their best to adhere to the guidelines laid out within this document. Some project -may sway from it from time to time, while others may -`amend its recommendations `_. +may sway from it from time to time, while others may amend its recommendations. That being said, conforming your Python code to PEP 8 is generally a good idea and helps make code more consistent when working on projects with other From f70533e75f03cd6d45d3ec113705a16c493be529 Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Wed, 2 Nov 2022 18:30:56 -0700 Subject: [PATCH 35/36] Update runtime.txt --- runtime.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.txt b/runtime.txt index 5a958026d..cc1923a40 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -3.5 +3.8 From 9715682d556b13e5a182aaac2a0428da7b31003e Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 13 Mar 2023 12:45:51 -0400 Subject: [PATCH 36/36] Create .github/FUNDING.yml --- .github/FUNDING.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..1b907d32b --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: kennethreitz