Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Useful extra bits for Python - things that shold be in the standard library

Project description

extras is a set of extensions to the Python standard library, originally written to make the code within testtools cleaner, but now split out for general use outside of a testing context.

Documentation

pydoc extras is your friend. extras currently contains the following functions:

  • try_import
  • try_imports
  • safe_hasattr

Which do what their name suggests.

Licensing

This project is distributed under the MIT license and copyright is owned by the extras authors. See LICENSE for details.

Required Dependencies

  • Python 2.6+ or 3.0+

Bug reports and patches

Please report bugs using github issues at <https://github.com/testing-cabal/extras>. Patches can also be submitted via github. You can mail the authors directly via the mailing list testtools-dev@lists.launchpad.net. (Note that Launchpad discards email from unknown addresses - be sure to sign up for a Launchpad account before mailing the list, or your mail will be silently discarded).

History

extras used to be testtools.helpers, and was factored out when folk wanted to use it separately.

Thanks

  • Martin Pool

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
extras-1.0.0-py2.py3-none-any.whl (7.3 kB) Copy SHA256 hash SHA256 Wheel 2.7
extras-1.0.0.tar.gz (6.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page