Skip to content

Import Python Files, Modules and Zipped Modules over the Web

Notifications You must be signed in to change notification settings

Bod-Studios/Bagel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bagel

Import python scripts over the web!

Open in Gitpod

Doesn't check if it is a real python script, do not feed it a RANDOM website. It will bite.

Installation

Linux/MacOS

python -m pip install git+https://github.com/Bod-Studios/Bagel.git@main#egg=bagel

Windows

py -m pip install git+https://github.com/Bod-Studios/Bagel.git@main#egg=bagel

Basic Usage & Edit Config

from bagel import webImport

MYFILE = WebImport("https://someurl.com/funscript.py")

import bagel
bagel.config.ConfigObject = Config Object -> you create

Example

from bagel import webImport


test = webImport("https://pastebin.com/raw/rtTstHLB")


hi = test.Hello()

Example 2

With webExport()

from bagel import webImport 
test = webImport("https://pastebin.com/raw/EyPw4KUn")

print(test)

Building from Source

It is very basic, all you need todo is pip install -e .