background preloader

Welcome to Jinja2 — Jinja2 2.8-dev documentation

Welcome to Jinja2 — Jinja2 2.8-dev documentation
Jinja2 is a modern and designer friendly templating language for Python, modelled after Django’s templates. It is fast, widely used and secure with the optional sandboxed template execution environment: <title>{% block title %}{% endblock %}</title><ul>{% for user in users %} <li><a href="{{ user.url }}">{{ user.username }}</a></li>{% endfor %}</ul> Features: sandboxed executionpowerful automatic HTML escaping system for XSS preventiontemplate inheritancecompiles down to the optimal python code just in timeoptional ahead of time template compilationeasy to debug. Additional Information If you can’t find the information you’re looking for, have a look at the index or try to find it using the search function:

BeginnersGuide/NonProgrammers Python for Non-Programmers If you've never programmed before, the tutorials on this page are recommended for you; they don't assume that you have previous experience. If you have programming experience, also check out the BeginnersGuide/Programmers page. Books Each of these books can be purchased online but is also available as free textual, website, or video content. Automate the Boring Stuff with Python - Practical Programming for Total Beginners by Al Sweigart is "written for office workers, students, administrators, and anyone who uses a computer to learn how to code small, practical programs to automate tasks on their computer." You can find many free Python books online. Interactive Courses These sites give you instant feedback on programming problems that you can solve in your browser. CheckiO is a gamified website containing programming tasks that can be solved in Python 3. Resources for Younger Learners Tutorials and Websites Tutorial Aggregators / lists Apps Videos Email Academies Tools

Python Extension Packages for Windows - Christoph Gohlke by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine. This page provides 32- and 64-bit Windows binaries of many scientific open-source extension packages for the official CPython distribution of the Python programming language. The files are unofficial (meaning: informal, unrecognized, personal, unsupported, no warranty, no liability, provided "as is") and made available for testing and evaluation purposes. If downloads fail reload this page, enable JavaScript, disable download managers, disable proxies, clear cache, and use Firefox. Most binaries are built from source code found on PyPI or in the projects public revision control systems. Refer to the documentation of the individual packages for license restrictions and dependencies. Use pip version 8 or newer to install the downloaded .whl files. Install numpy+mkl before other packages that depend on it. The files are provided "as is" without warranty or support of any kind. Build Environment

Flask-OAuth Flask-OAuth is an extension to Flask that allows you to interact with remote OAuth enabled applications. Currently it only implements the consumer interface so you cannot expose your own API with OAuth. Flak-OAuth depends on the python-oauth2 module. Features Support for OAuth 1.0aFriendly APIDirect integration with FlaskBasic support for remote method invocation of RESTful APIs Installation Install the extension with one of the following commands: $ pip install Flask-OAuth Alternatively, use easy_install: $ easy_install Flask-OAuth Defining Remote Applications To connect to a remote application create a OAuth object and register a remote application on it using the remote_app() method: from flask_oauth import OAuth oauth = OAuth()the_remote_app = oauth.remote_app('the remote app', ...) A remote application must define several URLs required by the OAuth machinery: request_token_urlaccess_token_urlauthorize_url Additionally the application should define an issued consumer_key and consumer_secret.

Gunicorn The Python Standard Library — Python v3.3.3 documentation While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions. Python’s standard library is very extensive, offering a wide range of facilities as indicated by the long table of contents listed below. The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming. Some of these modules are explicitly designed to encourage and enhance the portability of Python programs by abstracting away platform-specifics into platform-neutral APIs.

The Django Book Tastypie Scraping for… by Paul Bradshaw Scraping - getting a computer to capture information from online sources - is one of the most powerful techniques for data-savvy journalists who want to get to the story first, or find exclusives that no one else has spotted. Faster than FOI and more detailed than advanced search techniques, scraping also allows you to grab data that organisations would rather you didn’t have - and put it into a form that allows you to get answers. Scraping for Journalists introduces you to a range of scraping techniques - from very simple scraping techniques which are no more complicated than a spreadsheet formula, to more complex challenges such as scraping databases or hundreds of documents. At every stage you'll see results - but you'll also be building towards more ambitious and powerful tools. You’ll be scraping within 5 minutes of reading the first chapter - but more importantly you'll be learning key principles and techniques for dealing with scraping problems.

Instalación de Python/Ninja-IDE y Librerías Extras | Curiosidades de la Tecnología Hola a todos, estoy de regreso solo por un momento, la publicación actual es para proporcionar las ligas para obtener el software necesario para realizar la instalación de Python sobre Windows así como algunos complementos. Los procesos de instalación no los compartiré por completo, para todos los programas es igual, además si lees esto espero ya seas un usuario avanzado o si no lo eres y tienes dudas déjalas en un comentario. Primero debemos realizar la instalación de Python, yo recomiendo la versión 2.7.3 que es la que uso y me es compatible con mi IDE favorito que más adelante te enseñaré a instalar. La instalación se realiza normal, deja como directorio de destino el Disco Local C [Particion Principal] que la cual al terminar la instalación debería de aparecer una carpeta Python27. Segundo ahora comenzamos a realizar la instalación de Ninja-IDE un Entorno de Desarrollo para Python muy bueno con el cual me he encariñado mucho, si no deseas usarlo puedes omitir estos pasos. print "Hola"

Python Django tutorial 1 installing easy_install, virtualenv & django Requests HTML5: todas las nuevas etiquetas HTML5 viene con una buena cantidad de nuevas etiquetas de código así que si eres desarrollador o simplemente quieres empezar a conocerlas apunta, cada elemento de la lista está enlazado a la página de la descripción y modo de uso: Muy pronto vas a empezar a verlas por todas partes, WordPress y sus temas incluidos, así que toma buena nota, hay importantes novedades, sobre todo no pierdas de vista las tags <article>, <nav>, <aside> y <section>. Si quieres empezar a probar códigos aquí tienes una lista de temas WordPress en HTML5: Referencias: w3schools y quackit

Related: