-
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.
Merge pull request #3 from Big-Theta/lpe/rename
Rename atools -> funktools everywhere
- Loading branch information
Showing
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,5 @@ venv.bak/ | |
|
||
# Intellij | ||
.idea | ||
|
||
*.swp |
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
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,35 @@ | ||
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 | ||
else: | ||
raise AttributeError(f"Module 'funktools' has no attribute '{attr}'") | ||
|
||
__all__ = [ | ||
'CLI', | ||
'Memoize', | ||
'Key', | ||
'rate', | ||
'Register', | ||
'Throttle', | ||
] | ||
|
||
def __dir__(): | ||
return __all__ |
Oops, something went wrong.