Skip to content

GrandMoff100/Jolly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jolly

Import Python code from modules straight from the internet.

from jolly import register_url

# Register a URL of a directory of Python modules, or from single files.
register_url("https://raw.githubusercontent.com/grandmoff100/jolly/master/examples/zipped")

# Import from that URL
import hello

# -> Inside zipped/hello/__init__.py, importing .hello
# -> Inside zipped/hello/hello.py
# -> Hello, world!
# -> Inside zipped/hello/__init__.py (after importing .hello)

# You can also import from zip or tar files!
register_url("https://raw.githubusercontent.com/grandmoff/jolly/master/examples/out.zip")

import zipped.hello

# -> Inside zipped/__init__.py
# -> Inside zipped/hello/__init__.py, importing .hello
# -> Inside zipped/hello/hello.py
# -> Inside zipped/hello/__init__.py (after importing .hello)

TODO

  • Tests

About

Import modules and files straight from URLs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages