skip to navigation
skip to content

Not Logged In

pkgimp 0.0.1

Python Java-style Package imports

Latest Version: 0.0.3

# PkgImp - Python Java-style imports

*PkgImp* is a module for Python 2.3 and newer that implements a
`sys.meta_path` Importer for importing Python modules in a Java-style
package based manner.

## Usage

Imagine you expect some Python module or packages to be located somewhere
on the `sys.path`, let's say even two of them with different structure.

some/
- directory/
module.py

some /
- package/
__init__.py

They can be imported like so

```python
import pkgimp
pkgimp.install('some')

# Do directory based module imports.
import some.directory.module as module
import some.directory.package as package
```

## Advantage

Just like with Java packages, namespaces can be put together without
merging with an existing package structure.

## License

*PkgImp* is licensed under the MIT License.
Copyright (c) 2014, Niklas Rosenstein  
File Type Py Version Uploaded on Size
pkgimp-0.0.1.zip (md5) Source 2014-02-06 4KB
  • Downloads (All Versions):
  • 18 downloads in the last day
  • 67 downloads in the last week
  • 210 downloads in the last month