-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
159 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[project] | ||
name = "saleyo" | ||
version = "0.1.2" | ||
description = "Saleyo is a lightwight Python AOP framework, easy to use and integrate." | ||
version = "0.1.3" | ||
description = "Saleyo is a lightwight scalable Python AOP framework, easy to use and integrate." | ||
authors = [{ name = "H2Sxxa", email = "[email protected]" }] | ||
dependencies = [] | ||
requires-python = ">=3.8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,33 @@ | ||
""" | ||
Saleyo is a module to modify external python code in runtime. | ||
The implements are in `mixin`. | ||
The `operation` module defines some default `MixinOperation`. | ||
If you want to call the method manually, you can try the `function` module. | ||
The `base` module is used to extend your own `mixin` method. | ||
If you want to use some decorators, please use the `decorator` module. | ||
Don't know how to start? Please see the part of Basic Tutorial in README. | ||
The `base` module is used to extend your own `mixin` method. | ||
The two links below are available. | ||
https://github.com/H2Sxxa/saleyo/blob/main/README.md | ||
https://pypi.org/project/saleyo/ | ||
""" | ||
|
||
from . import operation as operation | ||
from . import base as base | ||
from . import mixin as mixin | ||
from .mixin import Mixin as Mixin | ||
from .operation import Accessor as Accessor | ||
from .operation import Processor as Processor | ||
from .operation import Intercept as Intercept | ||
from .operation import OverWrite as OverWrite | ||
from .operation import Pre as Pre | ||
from .operation import Post as Post | ||
from .base.toolchain import ToolChain as ToolChain | ||
from .base.toolchain import Arguments as Arguments | ||
from .base.toolchain import InvokeEvent as InvokeEvent | ||
from .base.toolchain import CPyToolChain as CPyToolChain | ||
from .base.toolchain import GCToolChain as GCToolChain | ||
|
||
__version__ = (0, 1, 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
from typing import Any, Dict, List, ParamSpec, Type, TypeVar, Union | ||
|
||
Target = Union[Type, List[Type]] | ||
Target = Union[Type[Any], List[Type[Any]]] | ||
""" | ||
`Target` is the target of `@Mixin`, it's the alias of `Union[Type[Any], List[Type[Any]]]` | ||
""" | ||
NameSpace = Dict[str, Any] | ||
""" | ||
`NameSpace` is the alias of `Dict[str, Any]` | ||
""" | ||
RT = TypeVar("RT") | ||
""" | ||
`RT` means `Return Type` | ||
""" | ||
T = TypeVar("T") | ||
""" | ||
`T` means `Type` | ||
""" | ||
P = ParamSpec("P") | ||
""" | ||
`P` means `Params` | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from .accessor import Accessor as Accessor | ||
from .overwrite import OverWrite as OverWrite | ||
from .processor import Processor as Processor | ||
from .intercept import Intercept as Intercept, InvokeEvent as InvokeEvent | ||
from .hook import Pre as Pre, Post as Post | ||
from .intercept import Intercept as Intercept | ||
from .hook import Pre as Pre | ||
from .hook import Post as Post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.