-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename atools -> funktools everywhere
- Loading branch information
1 parent
9a23484
commit 84962d0
Showing
21 changed files
with
226 additions
and
204 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 was deleted.
Oops, something went wrong.
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
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,10 +1,10 @@ | ||
import atools | ||
import funktools | ||
|
||
|
||
@atools.CLI(__name__) | ||
@funktools.CLI(__name__) | ||
def entrypoint() -> None: | ||
print('haha') | ||
|
||
|
||
if __name__ == '__main__': | ||
atools.CLI(__name__).run() | ||
funktools.CLI(__name__).run() |
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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import typing | ||
|
||
def __getattr__(attr: str) -> typing.Callable: | ||
if attr == "CLI": | ||
from ._cli import CLI | ||
return CLI | ||
elif attr == "Key": | ||
from ._key import Decorator as Key | ||
return Key | ||
elif attr == "Memoize": | ||
from ._memoize import Decorator as Memoize | ||
return Memoize | ||
elif attr == "rate": | ||
from ._rate_decorator import rate | ||
return rate | ||
elif attr == "Register": | ||
from ._register import Decorator as Register | ||
return Register | ||
elif attr == "Throttle": | ||
from ._throttle import Throttle | ||
return Throttle | ||
elif attr == "template": | ||
from ._template import _template | ||
return _template() | ||
|
||
__all__ = [ | ||
'CLI', | ||
'Memoize', | ||
'Key', | ||
'rate', | ||
'Register', | ||
'Throttle', | ||
'template', | ||
] | ||
|
||
def __dir__(): | ||
return __all__ |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.