963 shaares
117 results
tagged
python
Flask Biography Tutorial
Python 3.0 was released December 3, 2008. As listed on PyPI - packages in red don't support python 3, packages in green do. Hopefully one day everything will be greener.
Yapf est un reformateur de code, vous lui filez un fichier (ou un dossier à parcourir récursivement), et il reformate le code pour qu’il soit plus lisible, et plus proche du PEP8.
A Twitter Client on Terminal. Smart, nicely displayed, colorful stream.
Fancy commands in interactive mode
Fancy commands in interactive mode
A couple of different problems can occur if your app isn't managing its database connections carefully
Python Env Wrapper is a set of tools to manage multiple virtual environments. The tools can create, delete and copy your environments, using a single command to switch to them wherever you are, while keeping them in a single (configurable) location. Pew makes it easier to work on more than one project at a time without introducing conflicts in their dependencies. It is written in pure python and leverages inve: the idea/alternative implementation of a better activate script.
virtualenv solves a very specific problem: it allows multiple Python projects that have different (and often conflicting) requirements, to coexist on the same computer.
OurSQL est une solution qui est, une fois que l'on a trouvé la procédure, assez facile à mettre en place. Elle permet d'utiliser MySQL de la même manière que MySQLdb sous Python2, qui est le connecteur de référence.
En ce qui concerne les performances, la solution n'est pas forcément parfaite, mais largement suffisante pour tous les besoins. Lorsque le module MySQLdb sera enfin livré, il n'y aura qu'un seul paramètre de connection à changer (adap) pour effectuer la transition. Dans l'intervale, on se sera évité le développement en Python 2 et la réécriture en Python3.
En ce qui concerne les performances, la solution n'est pas forcément parfaite, mais largement suffisante pour tous les besoins. Lorsque le module MySQLdb sera enfin livré, il n'y aura qu'un seul paramètre de connection à changer (adap) pour effectuer la transition. Dans l'intervale, on se sera évité le développement en Python 2 et la réécriture en Python3.
The time module exposes C library functions for manipulating dates and times. Since it is tied to the underlying C implementation, some details (such as the start of the epoch and maximum date value supported) are platform-specific.
Dans beaucoup de cas, plutôt que de se taper la gestion de l’encodage, on préfère tout ramener au plus petit dénominateur commun: l’ASCII. Pas d’accent, pas de problème,
The datetime module includes functions and classes for doing date and time parsing, formatting, and arithmetic.
Simple, secure encryption and decryption for Python 2.7 and 3.
http://pypi.python.org/pypi/simple-crypt
http://pypi.python.org/pypi/simple-crypt
Time and time again you hear about a company having all of their users' passwords, or "password hashes", compromised, and often there's a press response including one or more prominent security researchers demonstrating how 1,000 users had the password "batman", and so on. It's surprising how often this happens considering we've had ways to do password authentication that don't expose users' passwords, or at least makes it significantly harder to crack them, for several decades.
Personally, I think it boils down to a fundamental misunderstanding about what cryptographic hash functions are and what they are—or should be—used for, and a failure on the part of security researchers and advocates, myself included, to properly explain and emphasize the differences. So here's an attempt to explain why "SHA 256-bits enterprise-grade password encryption" is only slightly better than storing passwords in plain text.
Personally, I think it boils down to a fundamental misunderstanding about what cryptographic hash functions are and what they are—or should be—used for, and a failure on the part of security researchers and advocates, myself included, to properly explain and emphasize the differences. So here's an attempt to explain why "SHA 256-bits enterprise-grade password encryption" is only slightly better than storing passwords in plain text.
This article explains the theory for how to store user passwords securely, as well as some example code in Python using a Bcrypt library.
Flask-OAuthlib is designed as a replacement for Flask-OAuth. It depends on the oauthlib module. The client part of Flask-OAuthlib shares the same API as Flask-OAuth, which is pretty and simple.
rfc3339.py is a small Python library to format dates to rfc 3339 strings. Useful if you want to add an Atom feed to you site / project. Grab the file, drop it in your python source code, that's it! Licensed under the term of the ISC License a simple, permissive, BSD-like license.
This is the Tkinter introduction, last updated in November 2005. This is a work in progress.
Python Calendar API V3. Instance methods.
Google API Client for Python Documentation
google-api-python-client is the core Python library for accessing Google APIs.
This is the documentation page.
This is the documentation page.