Skip to content

Commit

Permalink
some unfinished shit
Browse files Browse the repository at this point in the history
  • Loading branch information
h4n1virus committed May 23, 2020
1 parent 37114ea commit c882c85
Show file tree
Hide file tree
Showing 67 changed files with 972 additions and 882 deletions.
27 changes: 0 additions & 27 deletions example.py

This file was deleted.

18 changes: 18 additions & 0 deletions examples/get_cheapest_price.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from smspva_wrapper import Client, Services
from smspva_wrapper.types import country_dict

SIMSMS_API_KEY = '' # SIMSMS KEY

c = Client(api_key=SIMSMS_API_KEY)


prices = []
for country in country_dict:
a = c.get_service_price(Services.TELEGRAM, country)
item = (a.price, a.country)
prices.append(item)

prices.sort()

for item in prices:
print(f"{item[1]}: {item[0]}")
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requests
3 changes: 0 additions & 3 deletions smspva_wrapper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from smspva_wrapper.client import Client
from smspva_wrapper.errors import Errors
from smspva_wrapper.types import Countries, Services, Backends, Operators
1 change: 1 addition & 0 deletions smspva_wrapper/async/#TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO: ASYNC WRAPPER
Empty file.
1 change: 0 additions & 1 deletion smspva_wrapper/caller/__init__.py

This file was deleted.

52 changes: 0 additions & 52 deletions smspva_wrapper/caller/caller.py

This file was deleted.

1 change: 1 addition & 0 deletions smspva_wrapper/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ class Errors:
from .errors import ProverkaNumberError
from .errors import RedirectFailError
from .errors import RedirectInvalidNumberFormat
from .errors import UnrecognizableBackEndError
8 changes: 6 additions & 2 deletions smspva_wrapper/errors/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ class GeneralError(Exception):
"""Base class for exceptions in this module."""


class UnrecognizableBackEndError(GeneralError):
"""Unrecognizable backend"""


class NetworkingError(GeneralError):
"""Networking Error"""

Expand Down Expand Up @@ -61,7 +65,7 @@ class NumberAlreadyTakenError(APIError):

# ban
class BanError(APIError):
"""Ban request has failed"""
"""RawBan request has failed"""


# get_sms
Expand All @@ -71,7 +75,7 @@ class GetSMSError(APIError):

# denial
class DenialFailedError(APIError):
"""Denial request has failed"""
"""RawDenial request has failed"""


# clearsms
Expand Down
14 changes: 0 additions & 14 deletions smspva_wrapper/methods/__init__.py

This file was deleted.

40 changes: 0 additions & 40 deletions smspva_wrapper/methods/balance_sim.py

This file was deleted.

41 changes: 0 additions & 41 deletions smspva_wrapper/methods/ban.py

This file was deleted.

42 changes: 0 additions & 42 deletions smspva_wrapper/methods/denial.py

This file was deleted.

36 changes: 0 additions & 36 deletions smspva_wrapper/methods/get_2fa.py

This file was deleted.

38 changes: 0 additions & 38 deletions smspva_wrapper/methods/get_balance.py

This file was deleted.

Loading

0 comments on commit c882c85

Please sign in to comment.