Skip to main content

Toolbox with useful Python classes and type magic.

Project description

nr.types

CircleCI

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 for collections.abc or collections.
  • 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.persist – Simple Persistable class which is useful in quick scripts that need to cache some data.
  • nr.types.proxy – Eager and lazy object proxies.
  • nr.types.singletons – Provides singletons like NotSet.
  • nr.types.stream – Streaming iterators in Python.
  • nr.types.struct – 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.logging – Currently only provides a DeferredMessage class.
    • nr.types.utils.module – Utilities for module objects.
    • nr.types.utils.typing – Utilities for objects from the typing module.

Installation

pip install nr.types

Run Tests

pip install -e .[test]
pytest --cov=./src/nr

Copyright © Niklas Rosenstein 2019

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-4.0.1.tar.gz (61.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: nr.types-4.0.1.tar.gz
  • Upload date:
  • Size: 61.0 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.33.0 CPython/3.7.2

File hashes

Hashes for nr.types-4.0.1.tar.gz
Algorithm Hash digest
SHA256 249c479e35969b11156766fe503328f84d91ba8de9a55e8ca4e12b77c1f8b464
MD5 93dce04d68ef51ecbfce2de58f0f13a9
BLAKE2b-256 ca2bf44087be1d1a9377373ec958064dddea0e4331af26933c8b3734972bbbac

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