Skip to content
forked from jurev/knockout

Lazily imports python modules directly from the web.

Notifications You must be signed in to change notification settings

senyai/knockout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knockout

Knockout aims to extend the basic importing mechanisms in Python by allowing more exotic stuff to be added to sys.path.

Importers

Currently, the available importers are:

  • urlimport.py: Import modules from anywhere on the web by adding URLs to sys.path.

Basic usage

>>> from knockout import urlimport
>>> urlimport.register()
Url importing enabled. Add urls to sys.path.
A valid url looks like this: http://example.com/path/to/repository/#packagename
This stuff is experimental, use at your own risk. Enjoy.

>>> import sys
>>> sys.path.insert(0, 'http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-3.0.8/#BeautifulSoup')
>>> import BeautifulSoup
...

>>> BeautifulSoup
<module 'BeautifulSoup' from 'http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-3.0.8/BeautifulSoup.py'>

About

Lazily imports python modules directly from the web.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published