Skip to main content
Help us improve Python packaging – donate today!

Compound utility library and command-line tools for Python 2/3

Project Description

This library contains a variety of Python programming utilities that didn’t make it into separate modules. Additionally, this library comes with a bunch of command-line tools.

Note that most components can be used independently from each other, and some components may need additional dependencies. These additional dependencies are currently not automatically installed when install nr.

Components

  • nr.archive – Archive handling abstraction.
  • nr.ast – Tools to work with the Python AST.
  • nr.ast.dynamic_eval – Allows you to execute Python code with hooks for when a global variable is accessed or assigned.
  • nr.compat – Simple Python 2/3 compatibility layer.
  • nr.concurrency – Job scheduling and threaded event processing.
  • nr.datastructures – Some data structures, including an OrderedDict for Python 2.6 (from nr.datastructures.ordereddict import OrderedDict).
  • nr.decorators – Some Python function decorators.
  • nr.enum – Python 2/3 compatible enumeration class.
  • nr.generic – Python generic metaclass (type arguments).
  • nr.gitignore – Parser and evaluator for .gitignore files.
  • nr.named – Mutable namedtuples declarables as classes using __annotations__ or the Python3.6+ class-level annotations syntax.
  • nr.path – Alternative interface to os.path and some additional functions (requires glob2 if you want to use the nr.path.glob() function).
  • nr.py.blob – Convert Python source code into a base64 encoded blob.
  • nr.py.bytecode – Helpers for working with Python bytecode.
  • nr.py.context – Python context manager tools.
  • nr.py.meta – Python metaclasses.
  • nr.recordclass – Mutable namedtuples with support for default args.
  • nr.stream – Provides a class for chained stream processing.
  • nr.strex – String scanning and lexing facilities.
  • nr.tempfile – A better temporary file and directory context manager.
  • nr.tools – This package contains only command-line utilities.
  • nr.version – Semantic version parser and evaluator.

Command-line

  • nr archive – Command-line of the nr.archive module
  • nr grablicense – Print text for the specified license, optionally formatted properly for the specified language’s comment syntax.
  • nr jiratime – Sum up work times for a user in JIRA.
  • nr py.blob – Create a base64 encoded blob from Python source code
  • nr versionupgrade – Upgrade version numbers in your project and add a Git commit.

Testing

nosetests tests

Copyright © 2018 Niklas Rosenstein

Release history Release notifications

This version
History Node

2.0.11

History Node

2.0.10

History Node

2.0.9

History Node

2.0.8

History Node

2.0.7

History Node

2.0.6

History Node

2.0.5

History Node

2.0.4

History Node

2.0.3

History Node

2.0.2

History Node

2.0.1

History Node

2.0.0

History Node

1.4.10

History Node

1.4.9

History Node

1.4.8

History Node

1.4.7

History Node

1.4.6

History Node

1.4.5

History Node

1.4.4

History Node

1.4.3

History Node

1.4.2

History Node

1.4.1

History Node

1.4.0

History Node

1.3.5

History Node

1.3.4

History Node

1.3.3

History Node

1.3.2

History Node

1.3.1

History Node

1.3.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
nr-2.0.11.tar.gz (86.0 kB) Copy SHA256 hash SHA256 Source None Apr 7, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page