Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python
Branch: master

REL: master is now 0.1.2

latest commit 6bae80f9a3
Ilan Schnell authored
Failed to load latest commit information.
enthought BUG: fixed import error in enthought.naming
.gitignore add .gitignore
LICENSE.txt DOC: add standard license
README.rst
setup.py REL: master is now 0.1.2

README.rst

etsproxy: proxy modules for backwards compatibility

This is the ETS proxy package, it contains the proxy modules for all ETS projects which map the old enthought namespace imports (version 3) to the namespace-refactored ETS packages (version 4). For example:

from enthought.traits.api import HasTraits

is now simply:

from traits.api import HasTraits

For convenience this package also contains a refactor tool to convert projects to the new namespace (such that the don't rely on the proxy):

$ ets3to4 -h
usage: ets3to4 DIRECTORY

This utility, can be used to convert projects from ETS version 3 to 4.
It simply replaces old namespace strings (e.g. 'enthought.traits.api')
to new ones (e.g. 'traits.api'), in all Python files in DIRECTORY
recursively.
Once the conversion of your project is complete, the etsproxy module
should no longer be necessary.  However, this tool is very simple and
does not catch all corner cases.

This module will be removed in the future, and old-style (enthought.xxx) imports should be converted (over time) to the new ones.

Something went wrong with that request. Please try again.