id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21,600 | layer.py | tgalal_yowsup/yowsup/layers/protocol_presence/layer.py | from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer
from .protocolentities import *
from yowsup.layers.protocol_iq.protocolentities import ErrorIqProtocolEntity
class YowPresenceProtocolLayer(YowProtocolLayer):
def __init__(self):
handleMap = {
"presence": (self.recvPresence, sel... | 1,175 | Python | .py | 23 | 43.913043 | 91 | 0.740838 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,601 | presence_unavailable.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/presence_unavailable.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .presence import PresenceProtocolEntity
class UnavailablePresenceProtocolEntity(PresenceProtocolEntity):
'''
<presence type="unavailable"></presence>
response:
<presence type="unavailable" from="self.jid">
</presence>
'''
def _... | 413 | Python | .py | 11 | 33.363636 | 78 | 0.74938 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,602 | presence_subscribe.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/presence_subscribe.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .presence import PresenceProtocolEntity
class SubscribePresenceProtocolEntity(PresenceProtocolEntity):
'''
<presence type="subscribe" to="jid"></presence>
'''
def __init__(self, jid):
super(SubscribePresenceProtocolEntity, self).... | 1,033 | Python | .py | 27 | 30.962963 | 80 | 0.680723 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,603 | iq_lastseen_result.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/iq_lastseen_result.py | from yowsup.layers.protocol_iq.protocolentities.iq_result import ResultIqProtocolEntity
from yowsup.structs.protocoltreenode import ProtocolTreeNode
class ResultLastseenIqProtocolEntity(ResultIqProtocolEntity):
def __init__(self, jid, seconds, _id = None):
super(ResultLastseenIqProtocolEntity, self).__init_... | 1,028 | Python | .py | 21 | 42.238095 | 106 | 0.710867 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,604 | test_presence_subscribe.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/test_presence_subscribe.py | from yowsup.layers.protocol_presence.protocolentities.presence_subscribe import SubscribePresenceProtocolEntity
from yowsup.layers.protocol_presence.protocolentities.test_presence import PresenceProtocolEntityTest
class SubscribePresenceProtocolEntityTest(PresenceProtocolEntityTest):
def setUp(self):
super... | 539 | Python | .py | 8 | 61.875 | 111 | 0.822976 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,605 | presence_available.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/presence_available.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .presence import PresenceProtocolEntity
class AvailablePresenceProtocolEntity(PresenceProtocolEntity):
'''
<presence type="available"></presence>
response:
<presence from="self.jid">
</presence>
'''
def __init__(self):
... | 387 | Python | .py | 11 | 30.909091 | 74 | 0.742021 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,606 | iq_lastseen.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/iq_lastseen.py | from yowsup.layers.protocol_iq.protocolentities.iq import IqProtocolEntity
from yowsup.structs.protocoltreenode import ProtocolTreeNode
class LastseenIqProtocolEntity(IqProtocolEntity):
XMLNS = "jabber:iq:last"
def __init__(self, jid, _id = None):
super(LastseenIqProtocolEntity, self).__init__(self.__cl... | 711 | Python | .py | 14 | 44.785714 | 112 | 0.723741 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,607 | test_presence_unavailable.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/test_presence_unavailable.py | from yowsup.layers.protocol_presence.protocolentities.presence_unavailable import UnavailablePresenceProtocolEntity
from yowsup.layers.protocol_presence.protocolentities.test_presence import PresenceProtocolEntityTest
class UnavailablePresenceProtocolEntityTest(PresenceProtocolEntityTest):
def setUp(self):
... | 498 | Python | .py | 7 | 66 | 115 | 0.846939 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,608 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/__init__.py | from .presence import PresenceProtocolEntity
from .presence_available import AvailablePresenceProtocolEntity
from .presence_unavailable import UnavailablePresenceProtocolEntity
from .presence_subscribe import SubscribePresenceProtocolEntity
from .presence_unsubscribe import UnsubscribePresenceProto... | 456 | Python | .py | 7 | 64.142857 | 68 | 0.846325 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,609 | presence_unsubscribe.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/presence_unsubscribe.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .presence import PresenceProtocolEntity
class UnsubscribePresenceProtocolEntity(PresenceProtocolEntity):
'''
<presence type="unsubscribe" to="jid"></presence>
'''
def __init__(self, jid):
super(UnsubscribePresenceProtocolEntity, ... | 1,047 | Python | .py | 27 | 31.481481 | 82 | 0.685149 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,610 | test_presence_unsubscribe.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/test_presence_unsubscribe.py | from yowsup.layers.protocol_presence.protocolentities.presence_unsubscribe import UnsubscribePresenceProtocolEntity
from yowsup.layers.protocol_presence.protocolentities.test_presence import PresenceProtocolEntityTest
class UnsubscribePresenceProtocolEntityTest(PresenceProtocolEntityTest):
def setUp(self):
... | 546 | Python | .py | 8 | 62.75 | 115 | 0.825279 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,611 | presence.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/presence.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class PresenceProtocolEntity(ProtocolEntity):
'''
<presence type="{{type}} name={{push_name}}"></presence>
Should normally be either type or name
when contact goes offline:
<presence type="unavailable" from="{{contact_jid}}" last="deny | ?... | 1,929 | Python | .py | 56 | 25.928571 | 77 | 0.575806 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,612 | test_presence.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/test_presence.py | from yowsup.layers.protocol_presence.protocolentities.presence import PresenceProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class PresenceProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
sel... | 475 | Python | .py | 8 | 55.75 | 112 | 0.817597 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,613 | test_presence_available.py | tgalal_yowsup/yowsup/layers/protocol_presence/protocolentities/test_presence_available.py | from yowsup.layers.protocol_presence.protocolentities.presence_available import AvailablePresenceProtocolEntity
from yowsup.layers.protocol_presence.protocolentities.test_presence import PresenceProtocolEntityTest
class AvailablePresenceProtocolEntityTest(PresenceProtocolEntityTest):
def setUp(self):
super... | 486 | Python | .py | 7 | 64.285714 | 111 | 0.843096 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,614 | layer.py | tgalal_yowsup/yowsup/layers/network/layer.py | from yowsup.layers import YowLayer, YowLayerEvent, EventCallback
from yowsup.layers.network.layer_interface import YowNetworkLayerInterface
from yowsup.layers.network.dispatcher.dispatcher import ConnectionCallbacks
from yowsup.layers.network.dispatcher.dispatcher import YowConnectionDispatcher
from yowsup.layers.netwo... | 4,465 | Python | .py | 93 | 40.215054 | 112 | 0.693244 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,615 | layer_interface.py | tgalal_yowsup/yowsup/layers/network/layer_interface.py | from yowsup.layers import YowLayerInterface
class YowNetworkLayerInterface(YowLayerInterface):
def connect(self):
self._layer.createConnection()
def disconnect(self):
self._layer.destroyConnection()
def getStatus(self):
return self._layer.getStatus() | 288 | Python | .py | 8 | 30.375 | 50 | 0.741935 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,616 | dispatcher_socket.py | tgalal_yowsup/yowsup/layers/network/dispatcher/dispatcher_socket.py | from yowsup.layers.network.dispatcher.dispatcher import YowConnectionDispatcher
import socket
import logging
logger = logging.getLogger(__name__)
class SocketConnectionDispatcher(YowConnectionDispatcher):
def __init__(self, connectionCallbacks):
super(SocketConnectionDispatcher, self).__init__(connection... | 1,767 | Python | .py | 50 | 24.28 | 79 | 0.591813 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,617 | dispatcher_asyncore.py | tgalal_yowsup/yowsup/layers/network/dispatcher/dispatcher_asyncore.py | from yowsup.layers.network.dispatcher.dispatcher import YowConnectionDispatcher
import asyncore
import logging
import socket
import traceback
logger = logging.getLogger(__name__)
class AsyncoreConnectionDispatcher(YowConnectionDispatcher, asyncore.dispatcher_with_send):
def __init__(self, connectionCallbacks):
... | 1,673 | Python | .py | 42 | 32.214286 | 91 | 0.682295 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,618 | dispatcher.py | tgalal_yowsup/yowsup/layers/network/dispatcher/dispatcher.py | class ConnectionCallbacks(object):
def onConnected(self):
pass
def onDisconnected(self):
pass
def onRecvData(self, data):
pass
def onConnecting(self):
pass
def onConnectionError(self, error):
pass
class YowConnectionDispatcher(object):
def __init__(s... | 596 | Python | .py | 21 | 21.47619 | 67 | 0.677249 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,619 | layer.py | tgalal_yowsup/yowsup/layers/protocol_notifications/layer.py | from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer
from .protocolentities import *
from yowsup.layers.protocol_acks.protocolentities import OutgoingAckProtocolEntity
import logging
logger = logging.getLogger(__name__)
class YowNotificationsProtocolLayer(YowProtocolLayer):
def __init__(self):
... | 1,752 | Python | .py | 34 | 42.088235 | 128 | 0.679977 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,620 | notification.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/notification.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from yowsup.layers.protocol_receipts.protocolentities import OutgoingReceiptProtocolEntity
class NotificationProtocolEntity(ProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="{{NOTIFICATION_TYPE}}" ... | 1,969 | Python | .py | 49 | 31.020408 | 109 | 0.581837 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,621 | test_notification.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/test_notification.py | from yowsup.layers.protocol_notifications.protocolentities.notification import NotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class NotificationProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(s... | 662 | Python | .py | 16 | 33.625 | 105 | 0.688854 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,622 | test_notification_picture_set.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/test_notification_picture_set.py | from yowsup.layers.protocol_notifications.protocolentities.notification_picture_set import SetPictureNotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_notifications.protocolentities.test_notification_picture import PictureNotificationProtocolEntityTest
class SetPictureN... | 671 | Python | .py | 9 | 69.444444 | 129 | 0.829047 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,623 | test_notification_status.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/test_notification_status.py | from yowsup.layers.protocol_notifications.protocolentities.notification_status import StatusNotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_notifications.protocolentities.test_notification import NotificationProtocolEntityTest
class StatusNotificationProtocolEntityTes... | 607 | Python | .py | 9 | 62.333333 | 118 | 0.830821 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,624 | test_notification_picture_delete.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/test_notification_picture_delete.py | from yowsup.layers.protocol_notifications.protocolentities.notification_picture_delete import DeletePictureNotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_notifications.protocolentities.test_notification_picture import PictureNotificationProtocolEntityTest
class Delet... | 685 | Python | .py | 9 | 71 | 133 | 0.844444 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,625 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/__init__.py | from .notification import NotificationProtocolEntity
from .notification_picture import PictureNotificationProtocolEntity
from .notification_picture_set import SetPictureNotificationProtocolEntity
from .notification_picture_delete import DeletePictureNotificationProtocolEntity
from .n... | 389 | Python | .py | 5 | 76.8 | 85 | 0.8125 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,626 | notification_picture_delete.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/notification_picture_delete.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .notification_picture import PictureNotificationProtocolEntity
class DeletePictureNotificationProtocolEntity(PictureNotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="picture"
... | 1,494 | Python | .py | 31 | 40.806452 | 109 | 0.69945 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,627 | notification_picture.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/notification_picture.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .notification import NotificationProtocolEntity
class PictureNotificationProtocolEntity(NotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="picture"
t="{{TIMESTAMP}}" from... | 815 | Python | .py | 16 | 44.8125 | 114 | 0.718045 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,628 | test_notification_picture.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/test_notification_picture.py | from yowsup.layers.protocol_notifications.protocolentities.notification_picture import PictureNotificationProtocolEntity
from yowsup.layers.protocol_notifications.protocolentities.test_notification import NotificationProtocolEntityTest
class PictureNotificationProtocolEntityTest(NotificationProtocolEntityTest):
de... | 466 | Python | .py | 6 | 73.166667 | 120 | 0.875817 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,629 | notification_status.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/notification_status.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .notification import NotificationProtocolEntity
class StatusNotificationProtocolEntity(NotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="status"
t="{{TIMESTAMP}}" from="... | 1,219 | Python | .py | 27 | 37.592593 | 112 | 0.683898 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,630 | notification_picture_set.py | tgalal_yowsup/yowsup/layers/protocol_notifications/protocolentities/notification_picture_set.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .notification_picture import PictureNotificationProtocolEntity
class SetPictureNotificationProtocolEntity(PictureNotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="picture"
... | 1,405 | Python | .py | 28 | 42.892857 | 106 | 0.691241 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,631 | layer.py | tgalal_yowsup/yowsup/layers/protocol_iq/layer.py | import time
import logging
from threading import Thread, Lock
from yowsup.layers import YowProtocolLayer, YowLayerEvent, EventCallback
from yowsup.common import YowConstants
from yowsup.layers.network import YowNetworkLayer
from yowsup.layers.auth import YowAuthenticationProtocolLayer
from .protocolentities import *
... | 3,932 | Python | .py | 90 | 34.222222 | 122 | 0.636892 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,632 | iq_error.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/iq_error.py | from yowsup.structs import ProtocolTreeNode
from .iq import IqProtocolEntity
class ErrorIqProtocolEntity(IqProtocolEntity):
'''<iq id="1417113419-0" from="{{jid}}" type="error">
<error text="not-acceptable" code="406" backoff="3600">
</error>
</iq>
'''
def __init__(self, _id, _from, code, tex... | 1,645 | Python | .py | 37 | 35.837838 | 108 | 0.62875 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,633 | iq_result.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/iq_result.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq import IqProtocolEntity
class ResultIqProtocolEntity(IqProtocolEntity):
'''
<iq type="result" id="{{id}}" from="{{FROM}}">
</iq>
'''
def __init__(self, xmlns = None, _id = None, to = None, _from = None):
super(ResultIqPro... | 417 | Python | .py | 9 | 41.888889 | 120 | 0.644444 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,634 | iq_push.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/iq_push.py | from .iq import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class PushIqProtocolEntity(IqProtocolEntity):
def __init__(self):
super(PushIqProtocolEntity, self).__init__("urn:xmpp:whatsapp:push", _type="get")
def toProtocolTreeNode(self):
node = super(PushIqProtocolEntity, self)... | 411 | Python | .py | 9 | 40.222222 | 89 | 0.741294 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,635 | test_iq_result.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/test_iq_result.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
class ResultIqProtocolEntityTest(IqProtocolEntityTest):
def setUp(self):
super(ResultIqProtocolEntityTest, self).setUp()
self.node.setAttribute("type", "result") | 265 | Python | .py | 5 | 48.2 | 83 | 0.793103 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,636 | test_iq_error.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/test_iq_error.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
from yowsup.layers.protocol_iq.protocolentities import ErrorIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class ErrorIqProtocolEntityTest(IqProtocolEntityTest):
def setUp(self):
super(ErrorIqProtocolEntityTes... | 505 | Python | .py | 9 | 51 | 83 | 0.789899 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,637 | iq_ping.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/iq_ping.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq import IqProtocolEntity
class PingIqProtocolEntity(IqProtocolEntity):
'''
Receive
<iq type="get" xmlns="urn:xmpp:ping" from="s.whatsapp.net" id="1416174955-ping">
</iq>
Send
<iq type="get" xmlns="w:p" to="s.whatsapp.net" id="1... | 555 | Python | .py | 13 | 38.153846 | 137 | 0.648148 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,638 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/__init__.py | from .iq import IqProtocolEntity
from .iq_result import ResultIqProtocolEntity
from .iq_ping import PingIqProtocolEntity
from .iq_result_pong import PongResultIqProtocolEntity
from .iq_error import ErrorIqProtocolEntity
from .iq_push import PushIqProtocolEntity
from .iq_props import PropsIqProtocolEntity
from .iq_crypt... | 352 | Python | .py | 8 | 43 | 54 | 0.883721 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,639 | test_iq.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/test_iq.py | from yowsup.layers.protocol_iq.protocolentities.iq import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class IqProtocolEntityTest(unittest.TestCase, ProtocolEntityTest):
def setUp(self):
self.ProtocolEntity = IqPro... | 441 | Python | .py | 8 | 51.625 | 109 | 0.785219 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,640 | iq_result_pong.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/iq_result_pong.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_result import ResultIqProtocolEntity
class PongResultIqProtocolEntity(ResultIqProtocolEntity):
'''
<iq type="result" xmlns="w:p" to="self.domain" id="1416174955-ping">
</iq>
'''
def __init__(self, to, _id = None):
super(Po... | 388 | Python | .py | 9 | 38.888889 | 83 | 0.695767 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,641 | iq_crypto.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/iq_crypto.py | from .iq import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class CryptoIqProtocolEntity(IqProtocolEntity):
def __init__(self):
super(CryptoIqProtocolEntity, self).__init__("urn:xmpp:whatsapp:account", _type="get")
def toProtocolTreeNode(self):
node = super(CryptoIqProtocolEnti... | 651 | Python | .py | 12 | 47.916667 | 136 | 0.744914 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,642 | iq.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/iq.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class IqProtocolEntity(ProtocolEntity):
'''
<iq type="{{get | set}}" id="{{id}}" xmlns="{{xmlns}}" to="{{TO}}" from="{{FROM}}">
</iq>
'''
TYPE_SET = "set"
TYPE_GET = "get"
TYPE_ERROR = "error"
TYPE_RESULT = "result"
TYPES... | 2,265 | Python | .py | 62 | 27.806452 | 145 | 0.544872 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,643 | iq_props.py | tgalal_yowsup/yowsup/layers/protocol_iq/protocolentities/iq_props.py | from .iq import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class PropsIqProtocolEntity(IqProtocolEntity):
def __init__(self):
super(PropsIqProtocolEntity, self).__init__("w", _type="get")
def toProtocolTreeNode(self):
node = super(PropsIqProtocolEntity, self).toProtocolTreeNod... | 392 | Python | .py | 9 | 38.111111 | 70 | 0.736292 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,644 | layer_send.py | tgalal_yowsup/yowsup/layers/axolotl/layer_send.py | from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
from yowsup.layers.axolotl.protocolentities import *
from yowsup.layers.auth.layer_authentication import YowAuthenticationProtocolLayer
from yowsup.layers.protocol_groups.protocolentities import InfoGroupsIqProtocolEntity, InfoGroupsResultIqProtocolEntit... | 12,897 | Python | .py | 227 | 44.612335 | 204 | 0.651073 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,645 | layer_receive.py | tgalal_yowsup/yowsup/layers/axolotl/layer_receive.py | from .layer_base import AxolotlBaseLayer
from yowsup.layers.protocol_receipts.protocolentities import OutgoingReceiptProtocolEntity
from yowsup.layers.protocol_messages.proto.e2e_pb2 import *
from yowsup.layers.axolotl.protocolentities import *
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_me... | 8,650 | Python | .py | 153 | 45.431373 | 137 | 0.694753 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,646 | __init__.py | tgalal_yowsup/yowsup/layers/axolotl/__init__.py | from .layer_send import AxolotlSendLayer
from .layer_control import AxolotlControlLayer
from .layer_receive import AxolotlReceivelayer
| 135 | Python | .py | 3 | 44 | 46 | 0.886364 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,647 | layer_base.py | tgalal_yowsup/yowsup/layers/axolotl/layer_base.py | from yowsup.layers import YowProtocolLayer
from yowsup.layers.axolotl.protocolentities import *
from yowsup.layers.network.layer import YowNetworkLayer
from yowsup.layers import EventCallback
from yowsup.profile.profile import YowProfile
from yowsup.axolotl import exceptions
from yowsup.layers.axolotl.props import PRO... | 2,702 | Python | .py | 59 | 34.966102 | 114 | 0.645603 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,648 | layer_control.py | tgalal_yowsup/yowsup/layers/axolotl/layer_control.py | from .layer_base import AxolotlBaseLayer
from yowsup.layers import YowLayerEvent, EventCallback
from yowsup.layers.network.layer import YowNetworkLayer
from yowsup.layers.axolotl.protocolentities import *
from yowsup.layers.auth.layer_authentication import YowAuthenticationProtocolLayer
from yowsup.layers.protocol_acks... | 5,633 | Python | .py | 110 | 41.672727 | 131 | 0.680959 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,649 | iq_key_get.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/iq_key_get.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class GetKeysIqProtocolEntity(IqProtocolEntity):
def __init__(self, jids, reason=None):
super(GetKeysIqProtocolEntity, self).__init__("encrypt", _type=... | 1,343 | Python | .py | 36 | 29.416667 | 110 | 0.632025 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,650 | message_encrypted.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/message_encrypted.py | from yowsup.layers.protocol_messages.protocolentities import MessageProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.axolotl.protocolentities.enc import EncProtocolEntity
class EncryptedMessageProtocolEntity(MessageProtocolEntity):
'''
<message retry="1" from="49xxxxxxxx@s.whatsapp.... | 2,299 | Python | .py | 43 | 45.27907 | 314 | 0.736983 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,651 | iq_keys_get_result.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/iq_keys_get_result.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
from axolotl.state.prekeybundle import PreKeyBundle
from axolotl.identitykey import IdentityKey
from axolotl.ecc.curve import Curve
from axolotl.ecc.djbec impo... | 7,327 | Python | .py | 151 | 39.092715 | 148 | 0.682066 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,652 | test_iq_keys_set.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/test_iq_keys_set.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
from yowsup.layers.axolotl.protocolentities import SetKeysIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class SetKeysIqProtocolEntityTest(IqProtocolEntityTest):
def setUp(self):
super(SetKeysIqProtocolEntityTe... | 999 | Python | .py | 20 | 42.75 | 83 | 0.659857 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,653 | test_notification_encrypt_requestkeys.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/test_notification_encrypt_requestkeys.py | from yowsup.layers.protocol_notifications.protocolentities.test_notification import NotificationProtocolEntityTest
from yowsup.layers.axolotl.protocolentities import RequestKeysEncryptNotification
from yowsup.structs import ProtocolTreeNode
class TestRequestKeysEncryptNotification(NotificationProtocolEntityTest):
... | 532 | Python | .py | 8 | 61.875 | 114 | 0.839388 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,654 | notification_encrypt_identitychange.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/notification_encrypt_identitychange.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_notifications.protocolentities import NotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
class IdentityChangeEncryptNotification(NotificationProtocolEntity):
"""
<notification t="1419824928" id="2451228097" from="s.whatsapp... | 1,028 | Python | .py | 22 | 40.272727 | 92 | 0.738523 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,655 | notification_encrypt_requestkeys.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/notification_encrypt_requestkeys.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_notifications.protocolentities import NotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
class RequestKeysEncryptNotification(NotificationProtocolEntity):
"""
<notification t="1419824928" id="2451228097" from="s.whatsapp.ne... | 1,323 | Python | .py | 32 | 34.53125 | 92 | 0.698054 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,656 | test_iq_keys_get_result.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/test_iq_keys_get_result.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities.test_iq_result import ResultIqProtocolEntityTest
from yowsup.layers.axolotl.protocolentities import ResultGetKeysIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
from axolotl.util.keyhelper import KeyHelper
from axolotl.e... | 2,946 | Python | .py | 45 | 48.711111 | 122 | 0.63885 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,657 | __init__.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/__init__.py | from .iq_key_get import GetKeysIqProtocolEntity
from .iq_keys_set import SetKeysIqProtocolEntity
from .iq_keys_get_result import ResultGetKeysIqProtocolEntity
from .message_encrypted import EncryptedMessageProtocolEntity
from .enc import EncProtocolEntity
from .receipt_outgoing_retry import RetryOutgoingReceiptProtocol... | 558 | Python | .py | 9 | 61 | 82 | 0.905282 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,658 | receipt_incoming_retry.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/receipt_incoming_retry.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_receipts.protocolentities import IncomingReceiptProtocolEntity
from yowsup.layers.axolotl.protocolentities.iq_keys_get_result import ResultGetKeysIqProtocolEntity
class RetryIncomingReceiptProtocolEntity(IncomingReceiptProtocolEntity):
'''
... | 2,417 | Python | .py | 47 | 43.489362 | 158 | 0.70678 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,659 | iq_keys_set.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/iq_keys_set.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
import os, struct
class SetKeysIqProtocolEntity(IqProtocolEntity):
def __init__(self, identityKey, signedPreKey, preKeys, djbType, registrationId = None):
... | 2,901 | Python | .py | 57 | 41.403509 | 114 | 0.666667 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,660 | enc.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/enc.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
import sys
class EncProtocolEntity(ProtocolEntity):
TYPE_PKMSG = "pkmsg"
TYPE_MSG = "msg"
TYPE_SKMSG = "skmsg"
TYPES = (TYPE_PKMSG, TYPE_MSG, TYPE_SKMSG)
def __init__(self, type, version, data, mediaType = None, jid = None):
a... | 1,354 | Python | .py | 36 | 30.277778 | 87 | 0.637405 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,661 | receipt_outgoing_retry.py | tgalal_yowsup/yowsup/layers/axolotl/protocolentities/receipt_outgoing_retry.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_receipts.protocolentities import OutgoingReceiptProtocolEntity
from yowsup.layers.axolotl.protocolentities.iq_keys_get_result import ResultGetKeysIqProtocolEntity
class RetryOutgoingReceiptProtocolEntity(OutgoingReceiptProtocolEntity):
'''
... | 3,411 | Python | .py | 87 | 30.770115 | 116 | 0.658094 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,662 | layer.py | tgalal_yowsup/yowsup/layers/protocol_contacts/layer.py | from yowsup.layers import YowProtocolLayer
from .protocolentities import *
import logging
logger = logging.getLogger(__name__)
class YowContactsIqProtocolLayer(YowProtocolLayer):
def __init__(self):
handleMap = {
"iq": (self.recvIq, self.sendIq),
"notification": (self.recvNotifica... | 1,581 | Python | .py | 32 | 39.4375 | 96 | 0.662776 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,663 | test_layer.py | tgalal_yowsup/yowsup/layers/protocol_contacts/test_layer.py | from yowsup.layers import YowProtocolLayerTest
from yowsup.layers.protocol_contacts import YowContactsIqProtocolLayer
from yowsup.layers.protocol_contacts.protocolentities.test_notification_contact_add import entity as addEntity
from yowsup.layers.protocol_contacts.protocolentities.test_notification_contact_update impo... | 1,216 | Python | .py | 20 | 55.9 | 116 | 0.828571 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,664 | test_notification_contact_add.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/test_notification_contact_add.py | from yowsup.layers.protocol_contacts.protocolentities import AddContactNotificationProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import time
import unittest
entity = AddContactNotificationProtocolEntity("1234", "jid@s.whatsapp.net", int(time.time()), "notify", False,
... | 672 | Python | .py | 11 | 52.454545 | 110 | 0.760243 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,665 | test_iq_sync_result.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/test_iq_sync_result.py | from yowsup.layers.protocol_contacts.protocolentities.iq_sync_result import ResultSyncIqProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
entity = ResultSyncIqProtocolEntity("123", "1.30615237617e+17", 0,
True, "123456", {"12345678":... | 760 | Python | .py | 13 | 47.384615 | 102 | 0.680108 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,666 | notification_contact_add.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notification_contact_add.py | from yowsup.structs import ProtocolTreeNode
from .notification_contact import ContactNotificationProtocolEntity
class AddContactNotificationProtocolEntity(ContactNotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="contacts"
t="{{TIMESTA... | 1,271 | Python | .py | 26 | 41.884615 | 106 | 0.706119 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,667 | notification_contact_remove.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notification_contact_remove.py | from yowsup.structs import ProtocolTreeNode
from .notification_contact import ContactNotificationProtocolEntity
class RemoveContactNotificationProtocolEntity(ContactNotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="contacts"
t="{{TIME... | 1,295 | Python | .py | 26 | 42.807692 | 109 | 0.71169 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,668 | iq_sync_get.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/iq_sync_get.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from .iq_sync import SyncIqProtocolEntity
class GetSyncIqProtocolEntity(SyncIqProtocolEntity):
MODE_FULL = "full"
MODE_DELTA = "delta"
CONTEXT_REGISTRATION = "registration"
CONTEXT_INTER... | 2,766 | Python | .py | 63 | 35.206349 | 117 | 0.609084 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,669 | test_notification_contact_update.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/test_notification_contact_update.py | from yowsup.layers.protocol_contacts.protocolentities import UpdateContactNotificationProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import time
import unittest
entity = UpdateContactNotificationProtocolEntity("1234", "jid@s.whatsapp.net",
i... | 612 | Python | .py | 10 | 53.1 | 111 | 0.771667 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,670 | notification_contact.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notification_contact.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from yowsup.layers.protocol_notifications.protocolentities import NotificationProtocolEntity
class ContactNotificationProtocolEntity(NotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="cont... | 812 | Python | .py | 15 | 47.8 | 115 | 0.731646 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,671 | iq_sync.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/iq_sync.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
import time
class SyncIqProtocolEntity(IqProtocolEntity):
'''
<iq type="get" id="{{id}}" xmlns="urn:xmpp:whatsapp:sync">
<sync
sid="{{str((int(time.time()) + 11644477200) * 1... | 1,903 | Python | .py | 48 | 31 | 102 | 0.58587 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,672 | test_notification_contact_remove.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/test_notification_contact_remove.py | from yowsup.layers.protocol_contacts.protocolentities import RemoveContactNotificationProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import time
import unittest
entity = RemoveContactNotificationProtocolEntity("1234", "jid@s.whatsapp.net",
i... | 613 | Python | .py | 10 | 53.2 | 112 | 0.770383 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,673 | notification_contact_update.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notification_contact_update.py | from yowsup.structs import ProtocolTreeNode
from .notification_contact import ContactNotificationProtocolEntity
class UpdateContactNotificationProtocolEntity(ContactNotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="contacts"
t="{{TIME... | 1,295 | Python | .py | 26 | 42.807692 | 109 | 0.71169 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,674 | notificiation_contacts_sync.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notificiation_contacts_sync.py | from yowsup.structs import ProtocolTreeNode
from .notification_contact import ContactNotificationProtocolEntity
class ContactsSyncNotificationProtocolEntity(ContactNotificationProtocolEntity):
'''
<notification from="4917667738517@s.whatsapp.net" t="1437251557" offline="0" type="contacts" id="4174521704">
... | 1,237 | Python | .py | 25 | 42.76 | 113 | 0.72622 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,675 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/__init__.py | from .iq_sync import SyncIqProtocolEntity
from .iq_sync_get import GetSyncIqProtocolEntity
from .iq_sync_result import ResultSyncIqProtocolEntity
from .notification_contact_add import AddContactNotificationProtocolEntity
from .notification_contact_remove import RemoveContactNotificationProtocolEntity
from .notification... | 463 | Python | .py | 7 | 65.142857 | 80 | 0.910088 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,676 | test_iq_sync_get.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/test_iq_sync_get.py | from yowsup.layers.protocol_contacts.protocolentities.iq_sync_get import GetSyncIqProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
entity = GetSyncIqProtocolEntity(["12345678", "8764543121"])
class GetSyncIqProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def s... | 433 | Python | .py | 8 | 50.5 | 96 | 0.832547 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,677 | iq_sync_result.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/iq_sync_result.py | from yowsup.structs import ProtocolTreeNode
from .iq_sync import SyncIqProtocolEntity
class ResultSyncIqProtocolEntity(SyncIqProtocolEntity):
'''
<iq type="result" from="491632092557@s.whatsapp.net" id="1417046561-4">
<sync index="0" wait="166952" last="true" version="1417046548593182" sid="1.30615237617e+... | 4,048 | Python | .py | 83 | 39.325301 | 125 | 0.620041 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,678 | layer.py | tgalal_yowsup/yowsup/layers/protocol_calls/layer.py | from yowsup.layers import YowProtocolLayer
from .protocolentities import *
from yowsup.layers.protocol_acks.protocolentities import OutgoingAckProtocolEntity
from yowsup.layers.protocol_receipts.protocolentities import OutgoingReceiptProtocolEntity
class YowCallsProtocolLayer(YowProtocolLayer):
def __init__(self):... | 1,119 | Python | .py | 24 | 38.75 | 106 | 0.688991 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,679 | test_call.py | tgalal_yowsup/yowsup/layers/protocol_calls/protocolentities/test_call.py | from yowsup.layers.protocol_calls.protocolentities.call import CallProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class CallProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
self.ProtocolEntit... | 662 | Python | .py | 16 | 33.8125 | 81 | 0.671318 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,680 | call.py | tgalal_yowsup/yowsup/layers/protocol_calls/protocolentities/call.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class CallProtocolEntity(ProtocolEntity):
'''
<call offline="0" from="{{CALLER_JID}}" id="{{ID}}" t="{{TIMESTAMP}}" notify="{{CALLER_PUSHNAME}}" retry="{{RETRY}}" e="{{?}}">
</call>
'''
def __init__(self, _id, _type, timestamp, notify ... | 3,829 | Python | .py | 97 | 29.42268 | 142 | 0.547916 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,681 | layer_interface_authentication.py | tgalal_yowsup/yowsup/layers/auth/layer_interface_authentication.py | from yowsup.layers import YowLayerInterface
class YowAuthenticationProtocolLayerInterface(YowLayerInterface):
def setCredentials(self, phone, keypair):
self._layer.setCredentials((phone, keypair))
def getUsername(self, full = False):
return self._layer.getUsername(full)
| 297 | Python | .py | 6 | 44.166667 | 65 | 0.778547 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,682 | layer_authentication.py | tgalal_yowsup/yowsup/layers/auth/layer_authentication.py | from yowsup.common import YowConstants
from yowsup.layers import YowLayerEvent, YowProtocolLayer, EventCallback
from yowsup.layers.network import YowNetworkLayer
from .protocolentities import *
from .layer_interface_authentication import YowAuthenticationProtocolLayerInterface
from .protocolentities import StreamErrorP... | 2,805 | Python | .py | 55 | 43.272727 | 118 | 0.725512 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,683 | response.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/response.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class ResponseProtocolEntity(ProtocolEntity):
def __init__(self, data, xmlns = "urn:ietf:params:xml:ns:xmpp-sasl"):
super(ResponseProtocolEntity, self).__init__("response")
self.xmlns = xmlns
self.data = data
def toProtocol... | 579 | Python | .py | 11 | 46.090909 | 101 | 0.724689 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,684 | test_success.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/test_success.py | from yowsup.layers.auth.protocolentities.success import SuccessProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class SuccessProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
self.ProtocolEntit... | 552 | Python | .py | 14 | 32.285714 | 77 | 0.705224 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,685 | success.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/success.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class SuccessProtocolEntity(ProtocolEntity):
def __init__(self, creation, props, t, location):
super(SuccessProtocolEntity, self).__init__("success")
self.location = location
self.creation = int(creation)
self.props = props
... | 1,202 | Python | .py | 31 | 29.709677 | 62 | 0.57485 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,686 | challenge.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/challenge.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class ChallengeProtocolEntity(ProtocolEntity):
def __init__(self, nonce):
super(ChallengeProtocolEntity, self).__init__("challenge")
self.nonce = nonce
def getNonce(self):
return self.nonce
def toProtocolTreeNode(self)... | 803 | Python | .py | 19 | 34.947368 | 100 | 0.664948 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,687 | stream_features.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/stream_features.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class StreamFeaturesProtocolEntity(ProtocolEntity):
def __init__(self, features = None):
super(StreamFeaturesProtocolEntity, self).__init__("stream:features")
self.setFeatures(features)
def setFeatures(self, features = None):
... | 699 | Python | .py | 13 | 47.307692 | 91 | 0.740849 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,688 | auth.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/auth.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class AuthProtocolEntity(ProtocolEntity):
def __init__(self, user, mechanism = "WAUTH-2", passive = False, nonce = None):
super(AuthProtocolEntity, self).__init__("auth")
self.user = user
self.mechanism = mechanism
self.pass... | 956 | Python | .py | 23 | 32.347826 | 91 | 0.617457 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,689 | failure.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/failure.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class FailureProtocolEntity(ProtocolEntity):
def __init__(self, reason):
super(FailureProtocolEntity, self).__init__("failure")
self.reason = reason
def __str__(self):
out = "Failure:\n"
out += "Reason: %s\n" % self.r... | 612 | Python | .py | 16 | 31.4375 | 68 | 0.675127 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,690 | __init__.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/__init__.py | from .auth import AuthProtocolEntity
from .challenge import ChallengeProtocolEntity
from .response import ResponseProtocolEntity
from .stream_features import StreamFeaturesProtocolEntity
from .success import SuccessProtocolEntity
from .failure import FailureProtocolEntity
from .stream_error import StreamErrorProtocolEn... | 325 | Python | .py | 7 | 45.428571 | 57 | 0.90566 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,691 | test_failure.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/test_failure.py | from yowsup.layers.auth.protocolentities.failure import FailureProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class FailureProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
self.ProtocolEntit... | 424 | Python | .py | 8 | 49.25 | 77 | 0.828502 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,692 | stream_error.py | tgalal_yowsup/yowsup/layers/auth/protocolentities/stream_error.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class StreamErrorProtocolEntity(ProtocolEntity):
TYPE_CONFLICT = "conflict"
'''
<stream:error>
<conflict></conflict>
<text>Replaced by new connection</text>
</stream:error>
'''
TYPE_ACK = "ack"
'''
<stream:er... | 1,782 | Python | .py | 53 | 26.037736 | 75 | 0.613054 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,693 | layer.py | tgalal_yowsup/yowsup/layers/protocol_acks/layer.py | from yowsup.layers import YowProtocolLayer
from .protocolentities import *
class YowAckProtocolLayer(YowProtocolLayer):
def __init__(self):
handleMap = {
"ack": (self.recvAckNode, self.sendAckEntity)
}
super(YowAckProtocolLayer, self).__init__(handleMap)
def __str__(self):
... | 529 | Python | .py | 14 | 31.071429 | 74 | 0.693359 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,694 | test_layer.py | tgalal_yowsup/yowsup/layers/protocol_acks/test_layer.py | from yowsup.layers import YowProtocolLayerTest
from yowsup.layers.protocol_acks import YowAckProtocolLayer
from yowsup.layers.protocol_acks.protocolentities.test_ack_incoming import entity as incomingAckEntity
from yowsup.layers.protocol_acks.protocolentities.test_ack_outgoing import entity as outgoingAckEntity
class Y... | 596 | Python | .py | 11 | 49.727273 | 102 | 0.823328 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,695 | ack_outgoing.py | tgalal_yowsup/yowsup/layers/protocol_acks/protocolentities/ack_outgoing.py | from .ack import AckProtocolEntity
class OutgoingAckProtocolEntity(AckProtocolEntity):
'''
<ack type="{{delivery | read}}" class="{{message | receipt | ?}}" id="{{MESSAGE_ID}} to={{TO_JID}}">
</ack>
<ack to="{{GROUP_JID}}" participant="{{JID}}" id="{{MESSAGE_ID}}" class="receipt" type="{{read | }}">
... | 1,662 | Python | .py | 40 | 33.35 | 105 | 0.610905 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,696 | ack_incoming.py | tgalal_yowsup/yowsup/layers/protocol_acks/protocolentities/ack_incoming.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .ack import AckProtocolEntity
class IncomingAckProtocolEntity(AckProtocolEntity):
'''
<ack t="{{TIMESTAMP}}" from="{{FROM_JID}}" id="{{MESSAGE_ID}}" class="{{message | receipt | ?}}">
</ack>
'''
def __init__(self, _id, _class, _from,... | 1,304 | Python | .py | 32 | 33.1875 | 101 | 0.648177 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,697 | ack.py | tgalal_yowsup/yowsup/layers/protocol_acks/protocolentities/ack.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class AckProtocolEntity(ProtocolEntity):
'''
<ack class="{{receipt | message | ?}}" id="{{message_id}}">
</ack>
'''
def __init__(self, _id, _class):
super(AckProtocolEntity, self).__init__("ack")
self._id = _id
sel... | 995 | Python | .py | 31 | 24 | 71 | 0.552521 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,698 | test_ack_outgoing.py | tgalal_yowsup/yowsup/layers/protocol_acks/protocolentities/test_ack_outgoing.py | from yowsup.layers.protocol_acks.protocolentities.ack_outgoing import OutgoingAckProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
entity = OutgoingAckProtocolEntity("12345", "receipt", "delivery", "to_jid")
class OutgoingAckProtocolEntityTest(ProtocolEntityTest, unittest.Tes... | 453 | Python | .py | 8 | 52.875 | 95 | 0.826185 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,699 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_acks/protocolentities/__init__.py | from .ack import AckProtocolEntity
from .ack_incoming import IncomingAckProtocolEntity
from .ack_outgoing import OutgoingAckProtocolEntity | 138 | Python | .py | 3 | 45.333333 | 51 | 0.897059 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |