background preloader

Python 3

Facebook Twitter

Numpy and Scipy Documentation — Numpy and Scipy documentation. Numpy (development version) Reference Guide, [HTML+zip], [PDF] Numpy (development version) User Guide, [PDF]

Numpy and Scipy Documentation — Numpy and Scipy documentation

Colored 1.3.4. Simple library for color and formatting to terminal Very simple Python library for color and formatting in terminal.

colored 1.3.4

Collection of color codes and names for 256 color terminal setups. The following is a list of 256 colors for Xterm, containing an example of the displayed color, Xterm Name, Xterm Number and HEX. Video Demo The following colors works with most terminals and terminals emulators. Jq. Command Line Interface — Pygments. You can use Pygments from the shell, provided you installed the pygmentize script: $ pygmentize test.py print "Hello World" will print the file test.py to standard output, using the Python lexer (inferred from the file name extension) and the terminal formatter (because you didn’t give an explicit formatter name).

Command Line Interface — Pygments

If you want HTML output: Glade - A User Interface Designer. Pygubu 0.9.8.1. Package Index > pygubu > 0.9.8.1 Not Logged In Status.

pygubu 0.9.8.1

Python on the Web: The Amazing Things You Can Build. In many ways, we’re living in the golden age of web development.

Python on the Web: The Amazing Things You Can Build

Web technologies have never been as refined and flexible as they are today, and if you want to build a high-quality website or web app, you have so many viable ways to get there — including the use of Python. 5 Reasons Why Python Programming Is Not Useless 5 Reasons Why Python Programming Is Not Useless Python -- You either love it or you hate it. You might even swing from one end to the other like a pendulum. Regardless, Python is a language that's hard to be ambivalent about. Read More Contrary to popular belief, Python isn’t only useful for data processing and utility scripts. How Python Is Used in Web Development When developing a web app, Python serves in similar capacity to languages like PHP and Ruby: it’s mainly used to handle back-end processing and routing.

6.8. rlcompleter — Completion function for GNU readline — Python 3.5.3 documentation. Source code: Lib/rlcompleter.py The rlcompleter module defines a completion function suitable for the readline module by completing valid Python identifiers and keywords.

6.8. rlcompleter — Completion function for GNU readline — Python 3.5.3 documentation

When this module is imported on a Unix platform with the readline module available, an instance of the Completer class is automatically created and its complete() method is set as the readline completer. Overview — Sphinx 1.4.9 documentation. Getting Started with Django Channels. Documenting your API - Django REST framework. A REST API should spend almost all of its descriptive effort in defining the media type(s) used for representing resources and driving application state.— Roy Fielding, REST APIs must be hypertext driven There are a variety of approaches to API documentation.

Documenting your API - Django REST framework

This document introduces a few of the various tools and options you might choose from. The approaches should not be considered exclusive - you may want to provide more than one documentation style for you API, such as a self describing API that also includes static documentation of the various API endpoints. Endpoint documentation The most common way to document Web APIs today is to produce documentation that lists the API endpoints verbatim, and describes the allowable operations on each. DRF Docs DRF Docs allows you to document Web APIs made with Django REST Framework and it is authored by Emmanouil Konstantinidis. Both this package and Django REST Swagger are fully documented, well supported, and come highly recommended. Supports: Integrate OAuth 2 Into Your Django/DRF Back-end. We’ve all been there.

Integrate OAuth 2 Into Your Django/DRF Back-end

You’re working on the API back-end, and you’re happy with how it’s going. You’ve recently completed the minimal viable product (MVP), the tests are all passing, and you’re looking forward to implementing some new features. Then the boss sends you an email: “By the way, we need to let people log in via Facebook and Google; they shouldn’t have to create an account just for a little site like ours.” Great. Scope creep strikes again. The good news is that OAuth 2 has emerged as the industry standard for social and third-party authentication (used by services such as Facebook, Google, etc.) so you can focus on understanding and implementing that standard to support a wide range of social authentication providers.

It’s likely you’re not familiar with OAuth 2; I wasn’t, when this happened to me. Full Stack Python. Python binding. The README file of the source code has a quick summary of information.

Python binding

We also have generated documentation here. The Sphinx docs contain autogenerated coverage of the API as presented in Python, as well as descriptions of where PyZMQ may differ from other ØMQ bindings. The definitive guide on how to use static, class or abstract methods in Python. Doing code reviews is a great way to discover things that people might struggle to comprehend.

The definitive guide on how to use static, class or abstract methods in Python

While proof-reading OpenStack patches recently, I spotted that people were not using correctly the various decorators Python provides for methods. So here's my attempt at providing me a link to send them to in my next code reviews. :-) This article has been kindly converted and recorded as a video by Webucator, provider of Python training.

It's a good alternative to reading, if you prefer listening to someone and following step-by-step explanation of the code.. (A Semi-Official) Python FAQ Zone. This effbot zone, a sister site to the Python Tutorial Wiki, contains a copy of the standard Python FAQ. This site replaces the version hosted at infogami. This site is being used as an editing and staging area; “stable” versions will be published over at python.org at regular intervals, once all the tools are in place. Modifying the __add__ method of a Python Class. Learn how you should modify the __add__ method of a Python class to be able to add two instances of a custom object. We also talk about the __radd__ method, necessary to sum a list of instances.

When we sum two objects in Python, like a + b what really happens is that the __add__ method of the a object is called: Advanced Objects: Special Methods. At first glance, The __new__() method seems similar to the __init__() method, but it is actually quite different. You will remember that you instantiate a class (that is, create a new instance of that class) by calling the class. The __init__() method returns nothing—it merely initializes what __new__() has created. The __new__() method, on the other hand, returns the object that will become the return value of the instantiation call. Like __init__(), __new__() receives the arguments that the caller passes when calling the class. Python3 Tutorial: Magic Methods. Introduction The so-called magic methods have nothing to do with wizardry. IdleX - IDLE Extensions for Python. Redis Quick Start – Redis. This is a quick start document that targets people without prior experience with Redis. Reading this document will help you: Download and compile Redis to start hacking.

Virtualenv with Eclipse with PyDev on Windows 10 – London App Developer. This article will explain how to install virtualenv and create a new Python Project in eclipse which uses a custom virtual environment. There is also a little Hello World style example at the end! This article assumes that you have Python, Eclipse and the PyDev plugin installed on your machine. Python Virtual Environments - a primer. Multiprocessing — Manage Processes Like Threads — PyMOTW 3. What’s New In Python 3.6 — Python 3.6.0 documentation. Communication Between Processes - Python Module of the Week.

As with threads, a common use pattern for multiple processes is to divide a job up among several workers to run in parallel. Effective use of multiple processes usually requires some communication between them, so that work can be divided and results can be aggregated. Passing Messages to Processes. Welcome to the wxPython Phoenix Project — wxPython Phoenix 3.0.3 documentation. Index of /Phoenix/snapshot-builds. How to install Django on Windows. Installation — Wand 0.4.5. Wand itself can be installed from PyPI using pip:

Requests: HTTP for Humans — Requests 2.10.0 documentation. Jupyter and the future of IPython — IPython. Try Jupyter! Python Properties. Inner functions - what are they good for? Python-xy.GitHub.io by python-xy.