Skip to main content

Python library with common functionality for other Waikato projects.

Project description

Python library with common functionality for other Waikato projects. Changelog =========

0.0.1 (2019-08-09)

  • Initial release

0.0.2 (2019-08-09)

  • Removed restriction that switch only work with enums. Now can switch on any type. Onus is on the user to handle modifications of the switched value during switching.

  • Added abc package, with utilities for working with abstract classes/methods.

  • Added decorator package, with custom decorators.

0.0.3 (2019-08-30)

  • Added load_dir function to file package, which can load all files in a directory.

  • Added is_hashable to test if an object is hashable.

  • Added Interval class representing intervals on the number line.

  • Added exception InvalidStateError for classes that get into an invalid setup.

  • Added typing module for type-related functionality.

  • Added first, which finds the first element of an iterable to match a predicate.

  • Added statistics package with quartile functions.

  • Added random, which returns the elements of an iterator in random order.

  • Added meta package, with functions to set and retrieve arbitrary meta-data against objects.

  • Added ConstantIterator class, which returns the same value over and over again.

  • Added metadata module to iterate, for working with metadata in iterables of objects.

  • Modified TwoWayDict so type-inference works with Python-3.7.

Project details


Download files

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

Source Distribution

wai.common-0.0.3.tar.gz (38.9 kB view details)

Uploaded Source

File details

Details for the file wai.common-0.0.3.tar.gz.

File metadata

  • Download URL: wai.common-0.0.3.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.8

File hashes

Hashes for wai.common-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ab51efb4c319589c3654fb4e31067f645b753d33ed59ec5d4a533f79c5b2cbee
MD5 07564fc8039e1a17252487aabe0f494b
BLAKE2b-256 22c3d4316303b0654cc35f064523a530ff8a746525d75b7b196cc173fc7155a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page