Skip to main content

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

Download files

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

Source Distribution

extras-0.0.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file extras-0.0.1.tar.gz.

File metadata

  • Download URL: extras-0.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for extras-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1f9093969fa4aff484ad7e1730c9e1e712d6bcb8e5f0489b8170b37428b9968e
MD5 f82833481239487ae05e25ca84a5f46c
BLAKE2b-256 e2a050b1d2c13c20c4fc997454ec69168dfa6f8e4e5ee219e3f5238045ef9924

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

2 files

0.0.3

1 file

0.0.2

1 file

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page