Skip to main content

Anything related to Python datatypes.

Project description

# nr.types

A collection of useful Python datatypes, including enumerations, generics, enhanced mappings, meta-programming tools and sumtypes.

## Changes

### 1.1.1 (2018-09-14)

  • Fix ValueIterableMap.__len__() and rename iterable argument to map

### 1.1.0 (2018-08-18)

  • Add missing namespace_packages paramater to setup

  • Add nr.types.set module with OrderedSet class

  • Add ValueIterableMap to nr.types.map

  • Add Sumtype.__eq__() and Sumtype.__ne__()

  • Add ChainMap.get()

  • Make maps inherit from collections.MutableMapping

### 1.0.6 (2018-07-14)

  • Default values in annotated fields specified in subclasses of the nr.types.named.Named class can now be functions in which case they behave the same as passing that function to a Named.Initializer

  • Add HashDict class to nr.types.map

### 1.0.5 (2018-07-05)

  • Add missing requirement six to setup.py and requirements.txt

### 1.0.4 (2018-06-29)

  • Add nr.types.function module

  • Add nr.types.generic module

  • Make nr.types.named module Python 2.6 compatible

  • Fix ObjectAsMap.__new__ and MapAsObject.__new__

### 1.0.3 (2018-06-03)

  • Hotfix for the __version__ member in the nr.types module

### 1.0.2 (2018-06-03)

  • Setup script Python 2 compatibility

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

nr.types-1.1.1.tar.gz (16.0 kB view details)

Uploaded Source

File details

Details for the file nr.types-1.1.1.tar.gz.

File metadata

  • Download URL: nr.types-1.1.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for nr.types-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7575356e374b1d90734a80668d405fe897aef611fdde71066c94cacbb078fe3c
MD5 49ffaa8da7dbe9feb8706fb84541d0d3
BLAKE2b-256 2effa05c826fe76e3c4bd20bd15e8db9db35ad0fc67e183fc1864aa21e5f3022

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