Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install resolve

How to install resolve

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install resolve
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.0 Available View build log
Windows (64-bit)
1.0.0 Available View build log
Mac OS X (10.5+)
1.0.0 Available View build log
Linux (32-bit)
1.0.0 Available View build log
Linux (64-bit)
1.0.0 Available View build log
Lastest release
version 1.0.0 on Jan 5th, 2011

This small package seeks to encapsulate code that resolves a string containing a dotted name into the patching python object in one place.

Having seen variants of this type of code duplicated in so many places, the author decided to make one package with this as its sole purpose.

If your use case isn't met by resolve, please let the author no and a new version that caters for your requirement will be released as soon as possible!

To install resolve, do one of:

  • easy_install resolve
  • add resolve as a required egg in your buildout config.
  • download the appropriate resolve.tar.gz from


You'll then need to unpack it and do the usual python setup.py install


>>> from resolve import resolve
>>> resolve('unittest')
<module 'unittest' from '...'>
>>> resolve('datetime.datetime')
<type 'datetime.datetime'>
>>> resolve('datetime.datetime.now')
<built-in method now of type object at ...>
>>> resolve('non existent module')
Traceback (most recent call last):
ImportError: No module named non existent module
>>> resolve('__doc__')
Traceback (most recent call last):
ImportError: No module named __doc__
>>> resolve('datetime.foo')
Traceback (most recent call last):
AttributeError: 'module' object has no attribute 'foo'


Copyright (c) 2008 Simplistix Ltd See license.txt for details.


  • Initial Release

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.