Skip to content

A package that implement the import and export method

License

Notifications You must be signed in to change notification settings

huer512/export-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

export-module

让Python支持import/export功能

安装 Installation

pip:

pip install export-module

用法 Usage

Import

from export-module import *
Import("module name")
Import("object name").From("module name")
Import("object name").As("variable name") #Temporarily unavailable

Export

from export-module import *
Export(object)
Export(name=object,)

示例 Examples

file1.py
from export-module import *
def test(name):
    print(name)
class a(object):
    def __init__(self):
        pass
Export(test,obj=a)
file2.py
from export-module import *
t2 = Import('test').From("file1")
a = Import('obj').From("file1")

About

A package that implement the import and export method

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages