Toolbox with useful Python classes and type magic.
Project description
nr.types
nr.types
is a Python library aiming to provide a broad set of common tools
for developing Python applications.
This library is published to PyPI and Conda-forge. It is compatible with CPython 2.7 and 3.4+.
Table of Contents
nr.types.abc
– Alias forcollections.abc
orcollections
.nr.types.collections
– Additional container data structures.nr.types.generic
– Write classes with type parameters.nr.types.interface
– Programming against interfaces in Python, inspired by Zope.nr.types.meta
– Useful metaclasses.nr.types.proxy
– Eager and lazy object proxies.nr.types.singletons
– Provides singletons likeNotSet
.nr.types.stream
– Streaming iterators in Python.nr.types.structured
– Data-model description library.nr.types.sumtype
– Allows you to create sumtypes in Python.nr.types.utils
– More generic utilities.nr.types.utils.classdef
– Helpers for writing class definitions.nr.types.utils.funcdef
– Helper for writing functions.nr.types.utils.function
– Utilities for function objects.nr.types.utils.module
– Utilities for module objects.nr.types.utils.typing
– Utilities for objects from thetyping
module.
Installation
pip install nr.types
Run Tests
pip install -e .[test]
pytest --cov=./src/nr
Copyright © Niklas Rosenstein 2019
Project details
Release history Release notifications | RSS feed
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-3.0.2.tar.gz
(53.3 kB
view details)
File details
Details for the file nr.types-3.0.2.tar.gz
.
File metadata
- Download URL: nr.types-3.0.2.tar.gz
- Upload date:
- Size: 53.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7fd94d884df5a2f6ab24506a7b6a053afdd4558fa90f85453879c1b1ef054d2 |
|
MD5 | e3ce097cf5fdd303e60c8a6c0ff80016 |
|
BLAKE2b-256 | 6a471535f0f75c7e9cd16d058012a34b164df77ff59339a0092f6cbe00c55d1b |