etsproxy

Proxy modules for backwards compatibility
Download

etsproxy Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • ETS Developers
  • Publisher web site:
  • http://www.enthought.com

etsproxy Tags


etsproxy Description

Proxy modules for backwards compatibility etsproxy is the ETS proxy package, it contains the proxy modules for all ETS projects which map the old enthought namespace imports to the namespace-refactored ETS packages. For exmaple:from enthought.traits.api import HasTraitsis now simply:from traits.api import HasTraitsFor convenience this package also contains a refactor tool to convert projects to the new namespace (such that the don't relay on the proxy):ets3to4 -husage: ets3to4 DIRECTORYThis 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 DIRECTORYrecursively.Once the conversion of your project is complete, the etsproxy moduleshould no longer be necessary. However, this tool is very simple anddoes 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. Requirements: · Python


etsproxy Related Software