https://github.com/grandmoff100/jolly
Import modules and files straight from URLs.
https://github.com/grandmoff100/jolly
Last synced: 7 months ago
JSON representation
Import modules and files straight from URLs.
- Host: GitHub
- URL: https://github.com/grandmoff100/jolly
- Owner: GrandMoff100
- License: gpl-3.0
- Created: 2022-01-15T05:27:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T17:56:18.000Z (over 3 years ago)
- Last Synced: 2025-01-23T12:15:31.538Z (9 months ago)
- Language: Python
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Jolly
Import Python code from modules straight from the internet.
```py
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