forked from CustomIcon/intellivoid-spam-protection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* finalizing example - added raw_ouput example * updated lib to 0.1.0 - added tests and build checks
- Loading branch information
1 parent
4ac83bd
commit da6c027
Showing
8 changed files
with
56 additions
and
9 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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from spamprotection import SPBClient as AsyncClient | ||
from spamprotection.sync import SPBClient as SyncClient | ||
from spamprotection.types import Blacklist | ||
import asyncio | ||
import logging | ||
logging.basicConfig(level=logging.INFO) | ||
|
||
|
||
async def async_types_check(): | ||
return AsyncClient() | ||
|
||
|
||
async def async_raw_check(): | ||
return AsyncClient() | ||
|
||
|
||
def sync_types_check(): | ||
return SyncClient() | ||
|
||
|
||
def sync_raw_check(): | ||
return SyncClient() | ||
|
||
|
||
def types_check(): | ||
return Blacklist | ||
|
||
|
||
if __name__ == "__main__": | ||
asyncio.run(async_types_check()) | ||
asyncio.run(async_raw_check()) | ||
sync_types_check() | ||
sync_raw_check() |
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,4 +1,4 @@ | ||
"""Initial Directory.""" | ||
from .client import SPBClient # noqa: F401 | ||
|
||
__version__ = "0.0.4" | ||
__version__ = "0.1.0" |
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