Installation — Passlib v1.7.4 Documentation (2024)

Supported Platforms

Passlib requires Python 2 (>= 2.6) or Python 3 (>= 3.3).It is known to work with the following Python implementations:

Warning

Passlib 1.8 will drop support for Python 2.x, 3.3, and 3.4;and will require Python >= 3.5. The 1.7 series will be thelast to support Python 2. (See issue 119 for rationale).

  • CPython 2 – v2.6 or newer.
  • CPython 3 – v3.3 or newer.
  • PyPy – v2.0 or newer.
  • PyPy3 – v5.3 or newer.
  • Jython – v2.7 or newer.

Passlib should work with all operating systems and environments,as it contains builtin fallbacks for almost all OS-dependant features.Google App Engine is supported as well.

Changed in version 1.7: Support for Python 2.5, 3.0-3.2 was dropped.Support for PyPy 1.x was dropped.

Optional Libraries

  • bcrypt,py-bcrypt, orbcryptor

    Warning

    Support for py-bcrypt and bcryptor will be dropped in Passlib 1.8,as these libraries are unmaintained.

    If any of these packages are installed, they will be used to providesupport for the BCrypt hash algorithm.This is required if you want to handle BCrypt hashes,and your OS does not provide native BCrypt supportvia stdlib’s crypt (which includes pretty much all non-BSD systems).

    bcrypt is currently the recommendedoption – it’s actively maintained, and compatible with both CPython and PyPy.

    Use pip install passlib[bcrypt] to get the recommended bcrypt setup.

  • argon2_cffi (>= 18.2.0), orargon2pure (>= 1.3)

    If any of these packages are installed, they will be used to providesupport for the argon2 hash algorithm.argon2_cffi is currently the recommendedoption.

    Use pip install passlib[argon2] to get the recommended argon2 setup.

  • Cryptography

    If installed, will be used to enable encryption of TOTP secrets for storage(see passlib.totp).

    Use pip install passlib[totp] to get the recommended TOTP setup.

  • fastpbkdf2

    If installed, will be used to greatly speed up pbkdf2_hmac(),and any pbkdf2-based hashes.

  • SCrypt (>= 0.6)

    If installed, this will be used to provide support for the scrypthash algorithm. If not installed, a MUCH slower builtin reference implementation will be used.

Changed in version 1.7: Added fastpbkdf2, cryptography, argon2_cffi, argon2pure, and scrypt support.Removed M2Crypto support.

Installation Instructions

Caution

All PyPI releases are signed with the gpg key4D8592DF4CE1ED31.

To install from PyPi using pip:

pip install passlib

To install from the source using setup.py:

python setup.py install

Testing

Passlib contains a comprehensive set of unittests (about 38% of the total code),which provide nearly complete coverage, and verification of the hashalgorithms using multiple external sources (if detected at runtime).

All unit tests are contained within the passlib.tests subpackage,and are designed to be run using theNose unit testing library(as well as the unittest2 library under Python 2.6).

Once Passlib and Nose have been installed, the main suite of tests may be run using:

nosetests --tests passlib.tests

By default, this runs the main battery of tests, but omits some additional ones(such as internal cross-checks, and mock-testing of features not provided natively by the host OS).To run these tests as well, set the following environmental variable:

PASSLIB_TEST_MODE="full" nosetests --tests passlib.tests

To run a quick check to confirm just basic functionality, with a pared-down set of tests:

PASSLIB_TEST_MODE="quick" nosetests --tests passlib.tests

Tests may also be run via setup.py test or the included tox.ini file.The tox.ini file is used to test passlib before each release,and contains a number different environment setups.These tests require tox 2.5 or later.

Building the Documentation

The latest copy of this documentation should always be availableonline at https://passlib.readthedocs.io.If you wish to generate your own copy of the documentation,you will need to:

  1. Download the Passlib source, extract it, and cd into the source directory.
  2. Install all the dependencies required via pip install -e .[build_docs].
  3. Run python setup.py build_sphinx.
  4. Once Sphinx completes its run, point a web browser to the file at SOURCE/build/sphinx/html/index.htmlto access the Passlib documentation in html format.
Installation — Passlib v1.7.4 Documentation (2024)
Top Articles
Proton VPN Says ‘Likely’ Blocked in Russia - The Moscow Times
Calculating Profitability: EBIT vs. EBITDA
Sdn Md 2023-2024
Citibank Branch Locations In Orlando Florida
Kansas Craigslist Free Stuff
Alpha Kenny Buddy - Songs, Events and Music Stats | Viberate.com
Fnv Turbo
Fototour verlassener Fliegerhorst Schönwald [Lost Place Brandenburg]
Big Y Digital Coupon App
Find your energy supplier
Sports Clips Plant City
Breakroom Bw
Jack Daniels Pop Tarts
Lenscrafters Huebner Oaks
Craigslist Farm And Garden Cincinnati Ohio
Missouri Highway Patrol Crash
Eine Band wie ein Baum
Scout Shop Massapequa
Cbssports Rankings
Never Give Up Quotes to Keep You Going
Stoney's Pizza & Gaming Parlor Danville Menu
Greenville Sc Greyhound
Thick Ebony Trans
Wkow Weather Radar
Dark Entreaty Ffxiv
Craigslist Pennsylvania Poconos
Skycurve Replacement Mat
Violent Night Showtimes Near Amc Dine-In Menlo Park 12
Harrison County Wv Arrests This Week
Keshi with Mac Ayres and Starfall (Rescheduled from 11/1/2024) (POSTPONED) Tickets Thu, Nov 1, 2029 8:00 pm at Pechanga Arena - San Diego in San Diego, CA
Dl.high Stakes Sweeps Download
Uky Linkblue Login
Panchang 2022 Usa
Mg Char Grill
Greencastle Railcam
Iban's staff
Laurin Funeral Home | Buried In Work
Dr. John Mathews Jr., MD – Fairfax, VA | Internal Medicine on Doximity
Wal-Mart 2516 Directory
Main Street Station Coshocton Menu
Spn-523318
Adam Bartley Net Worth
Wasmo Link Telegram
Newsweek Wordle
Clausen's Car Wash
Grizzly Expiration Date Chart 2023
Craigslist Binghamton Cars And Trucks By Owner
Trending mods at Kenshi Nexus
R/Gnv
Movie Hax
Madden 23 Can't Hire Offensive Coordinator
What your eye doctor knows about your health
Latest Posts
Article information

Author: Lakeisha Bayer VM

Last Updated:

Views: 6135

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.