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,700 | test_ack_incoming.py | tgalal_yowsup/yowsup/layers/protocol_acks/protocolentities/test_ack_incoming.py | from yowsup.layers.protocol_acks.protocolentities.ack_incoming import IncomingAckProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
import time
entity = IncomingAckProtocolEntity("12345", "message", "sender@s.whatsapp.com", int(time.time()))
class IncomingAckProtocolEntityTest... | 486 | Python | .py | 9 | 50.555556 | 97 | 0.825263 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,701 | layer.py | tgalal_yowsup/yowsup/layers/protocol_ib/layer.py | from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer
from .protocolentities import *
import logging
logger = logging.getLogger(__name__)
class YowIbProtocolLayer(YowProtocolLayer):
def __init__(self):
handleMap = {
"ib": (self.recvIb, self.sendIb),
"iq": (None, self... | 1,346 | Python | .py | 31 | 34.741935 | 76 | 0.655462 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,702 | dirty_ib.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/dirty_ib.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .ib import IbProtocolEntity
class DirtyIbProtocolEntity(IbProtocolEntity):
'''
<ib>
<dirty type="{{groups | ?}}" timestamp="{{ts}}"></dirty>
</ib>
'''
def __init__(self, timestamp, _type):
super(DirtyIbProtocolEntity, s... | 1,281 | Python | .py | 33 | 31.484848 | 70 | 0.646489 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,703 | test_clean_iq.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/test_clean_iq.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_ib.protocolentities.clean_iq import CleanIqProtocolEntity
from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
class CleanIqProtocolEntityTest(IqProtocolEntityTest):
def setUp(self):
super(CleanIqProtocol... | 501 | Python | .py | 9 | 50.666667 | 85 | 0.800813 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,704 | account_ib.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/account_ib.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .ib import IbProtocolEntity
class AccountIbProtocolEntity(IbProtocolEntity):
'''
<ib from="s.whatsapp.net">
<account status="active | ?" kind="paid" creation="timestamp" expiration="timestamp"></account>
</ib>
'''
STATUS_ACTIV... | 1,996 | Python | .py | 47 | 30.06383 | 103 | 0.561566 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,705 | clean_iq.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/clean_iq.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
class CleanIqProtocolEntity(IqProtocolEntity):
'''
<iq id="" type="set" to="self.domain" xmlns="urn:xmpp:whatsapp:dirty">
<clean type="{{dirty_type}}"></clean>
</iq>
... | 1,297 | Python | .py | 33 | 31.666667 | 74 | 0.645519 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,706 | offline_ib.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/offline_ib.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .ib import IbProtocolEntity
class OfflineIbProtocolEntity(IbProtocolEntity):
'''
<ib from="s.whatsapp.net">
<offline count="{{X}}"></offline>
</ib>
'''
def __init__(self, count):
super(IbProtocolEntity, self).__init__()... | 1,064 | Python | .py | 28 | 30.964286 | 78 | 0.663096 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,707 | test_dirty_ib.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/test_dirty_ib.py | from yowsup.layers.protocol_ib.protocolentities.test_ib import IbProtocolEntityTest
from yowsup.layers.protocol_ib.protocolentities.dirty_ib import DirtyIbProtocolEntity
from yowsup.structs import ProtocolTreeNode
class DirtyIbProtocolEntityTest(IbProtocolEntityTest):
def setUp(self):
super(DirtyIbProtocolE... | 559 | Python | .py | 11 | 45.181818 | 85 | 0.777778 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,708 | test_offline_iq.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/test_offline_iq.py | from yowsup.layers.protocol_ib.protocolentities.test_ib import IbProtocolEntityTest
from yowsup.layers.protocol_ib.protocolentities.offline_ib import OfflineIbProtocolEntity
from yowsup.structs import ProtocolTreeNode
class OfflineIbProtocolEntityTest(IbProtocolEntityTest):
def setUp(self):
super(OfflineIbP... | 478 | Python | .py | 8 | 55.375 | 89 | 0.815287 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,709 | test_ib.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/test_ib.py | from yowsup.layers.protocol_ib.protocolentities.ib import IbProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class IbProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
self.ProtocolEntity = IbPro... | 375 | Python | .py | 8 | 43.25 | 74 | 0.833333 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,710 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/__init__.py | from .clean_iq import CleanIqProtocolEntity
from .dirty_ib import DirtyIbProtocolEntity
from .offline_ib import OfflineIbProtocolEntity
from .account_ib import AccountIbProtocolEntity | 183 | Python | .py | 4 | 45 | 47 | 0.888889 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,711 | ib.py | tgalal_yowsup/yowsup/layers/protocol_ib/protocolentities/ib.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class IbProtocolEntity(ProtocolEntity):
'''
<ib></ib>
'''
def __init__(self):
super(IbProtocolEntity, self).__init__("ib")
def toProtocolTreeNode(self):
return self._createProtocolTreeNode({}, None, None)
def __str... | 461 | Python | .py | 15 | 24.466667 | 59 | 0.649203 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,712 | layer.py | tgalal_yowsup/yowsup/layers/logger/layer.py | from yowsup.layers import YowLayer
import logging
logger = logging.getLogger(__name__)
class YowLoggerLayer(YowLayer):
def send(self, data):
ldata = list(data) if type(data) is bytearray else data
logger.debug("tx:\n%s" % ldata)
self.toLower(data)
def receive(self, data):
ldata... | 491 | Python | .py | 14 | 29.071429 | 63 | 0.652632 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,713 | layer.py | tgalal_yowsup/yowsup/layers/protocol_receipts/layer.py | from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer
from .protocolentities import *
class YowReceiptProtocolLayer(YowProtocolLayer):
def __init__(self):
handleMap = {
"receipt": (self.recvReceiptNode, self.sendReceiptEntity)
}
super(YowReceiptProtocolLayer, self).... | 591 | Python | .py | 14 | 35.428571 | 78 | 0.72028 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,714 | receipt_outgoing.py | tgalal_yowsup/yowsup/layers/protocol_receipts/protocolentities/receipt_outgoing.py | import time
from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .receipt import ReceiptProtocolEntity
class OutgoingReceiptProtocolEntity(ReceiptProtocolEntity):
'''
delivered:
If we send the following without "to" specified, whatsapp will consider the message delivered,
but will not noti... | 2,940 | Python | .py | 74 | 30.567568 | 100 | 0.615439 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,715 | test_receipt_outgoing.py | tgalal_yowsup/yowsup/layers/protocol_receipts/protocolentities/test_receipt_outgoing.py | from yowsup.layers.protocol_receipts.protocolentities import OutgoingReceiptProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class OutgoingReceiptProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
self.ProtocolEntity = OutgoingReceiptProto... | 425 | Python | .py | 7 | 56.857143 | 95 | 0.839713 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,716 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_receipts/protocolentities/__init__.py | from .receipt import ReceiptProtocolEntity
from .receipt_incoming import IncomingReceiptProtocolEntity
from .receipt_outgoing import OutgoingReceiptProtocolEntity | 162 | Python | .py | 3 | 53.333333 | 59 | 0.9125 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,717 | test_receipt_incoming.py | tgalal_yowsup/yowsup/layers/protocol_receipts/protocolentities/test_receipt_incoming.py | from yowsup.layers.protocol_receipts.protocolentities import IncomingReceiptProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
import time
class IncomingReceiptProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
self.ProtocolEntity = Incoming... | 448 | Python | .py | 8 | 52.375 | 105 | 0.838269 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,718 | receipt_incoming.py | tgalal_yowsup/yowsup/layers/protocol_receipts/protocolentities/receipt_incoming.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .receipt import ReceiptProtocolEntity
from yowsup.layers.protocol_acks.protocolentities import OutgoingAckProtocolEntity
class IncomingReceiptProtocolEntity(ReceiptProtocolEntity):
'''
delivered:
<receipt to="xxxxxxxxxxx@s.whatsapp.net" id=... | 4,690 | Python | .py | 103 | 36.320388 | 134 | 0.62697 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,719 | receipt.py | tgalal_yowsup/yowsup/layers/protocol_receipts/protocolentities/receipt.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class ReceiptProtocolEntity(ProtocolEntity):
'''
delivered:
<receipt to="xxxxxxxxxxx@s.whatsapp.net" id="1415389947-15"></receipt>
read
<receipt to="xxxxxxxxxxx@s.whatsapp.net" id="1415389947-15" type="read || played"></receipt>
INCO... | 1,051 | Python | .py | 29 | 28.862069 | 119 | 0.622398 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,720 | layer.py | tgalal_yowsup/yowsup/layers/protocol_privacy/layer.py | from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer
from .protocolentities import *
class YowPrivacyProtocolLayer(YowProtocolLayer):
def __init__(self):
handleMap = {
"iq": (self.recvIq, self.sendIq)
}
super(YowPrivacyProtocolLayer, self).__init__(handleMap)
... | 535 | Python | .py | 15 | 28.6 | 67 | 0.653772 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,721 | privacylist_iq.py | tgalal_yowsup/yowsup/layers/protocol_privacy/protocolentities/privacylist_iq.py | from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class PrivacyListIqProtocolEntity(IqProtocolEntity):
def __init__(self, name = "default"):
super(PrivacyListIqProtocolEntity, self).__init__("jabber:iq:privacy", _type="get")
self.setL... | 983 | Python | .py | 21 | 39.761905 | 91 | 0.719499 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,722 | layer.py | tgalal_yowsup/yowsup/layers/protocol_groups/layer.py | from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer
from yowsup.layers.protocol_iq.protocolentities import ErrorIqProtocolEntity
from yowsup.layers.protocol_iq.protocolentities.iq_result import ResultIqProtocolEntity
from .protocolentities import *
import logging
logger = logging.getLogger(__name__)
c... | 6,769 | Python | .py | 113 | 50.362832 | 105 | 0.739406 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,723 | group.py | tgalal_yowsup/yowsup/layers/protocol_groups/structs/group.py | class Group(object):
def __init__(self, groupId, creatorJid, subject, subjectOwnerJid, subjectTime, creationTime, participants=None):
self._groupId = groupId
self._creatorJid = creatorJid
self._subject = subject
self._subjectOwnerJid = subjectOwnerJid
... | 1,287 | Python | .py | 28 | 38.071429 | 178 | 0.6408 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,724 | iq_groups_subject.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_subject.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups import GroupsIqProtocolEntity
class SubjectGroupsIqProtocolEntity(GroupsIqProtocolEntity):
'''
<iq type="set" id="{{id}}" xmlns="w:g2", to={{group_jid}}">
<subject>
{{NEW_VAL}}
</subject>
</iq>
'''
... | 1,076 | Python | .py | 25 | 36.08 | 111 | 0.682252 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,725 | notification_groups.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/notification_groups.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from yowsup.layers.protocol_notifications.protocolentities import NotificationProtocolEntity
class GroupsNotificationProtocolEntity(NotificationProtocolEntity):
'''
<notification notify="WhatsApp" id="{{id}}" t="1420402514" participant="{{participant... | 1,740 | Python | .py | 34 | 44.058824 | 132 | 0.719008 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,726 | iq_groups_info.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_info.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups import GroupsIqProtocolEntity
class InfoGroupsIqProtocolEntity(GroupsIqProtocolEntity):
'''
<iq id="{{id}}"" type="get" to="{{group_jid}}" xmlns="w:g2">
<query request="interactive"></query>
</iq>
'''
def __init__... | 1,297 | Python | .py | 28 | 39.357143 | 105 | 0.675119 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,727 | notification_groups_add.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/notification_groups_add.py | from .notification_groups import GroupsNotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
class AddGroupsNotificationProtocolEntity(GroupsNotificationProtocolEntity):
'''
<notification participant="{{participant_jiid}}" t="{{TIMESTAMP}}" from="{{group_jid}}" type="w:gp2" id="{{id}}" notify="What... | 1,946 | Python | .py | 43 | 38.139535 | 131 | 0.679325 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,728 | iq_groups_participants_remove_success.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_remove_success.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
class SuccessRemoveParticipantsIqProtocolEntity(ResultIqProtocolEntity):
'''
<iq type="result" from="{{group_jid}}" id="{{id}}">
<remove type="success" participant="{{jid}}"></remove... | 1,821 | Python | .py | 39 | 38.153846 | 135 | 0.676802 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,729 | iq_groups_leave_success.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_leave_success.py | from yowsup.common import YowConstants
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
class SuccessLeaveGroupsIqProtocolEntity(ResultIqProtocolEntity):
'''
<iq type="result" from="g.us" id="{{ID}}">
<leave>
<group i... | 1,491 | Python | .py | 37 | 32.513514 | 121 | 0.664824 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,730 | test_iq_groups_list.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/test_iq_groups_list.py | from yowsup.layers.protocol_groups.protocolentities.iq_groups_list import ListGroupsIqProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
entity = ListGroupsIqProtocolEntity()
class ListGroupsIqProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
... | 421 | Python | .py | 8 | 48.875 | 100 | 0.846715 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,731 | iq_result_participants_list.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_result_participants_list.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
class ListParticipantsResultIqProtocolEntity(ResultIqProtocolEntity):
'''
<iq type="result" from="{{GROUP_ID}}" id="{{IQ_ID}}">
<participant jid="{{PARTICIPANT_JID}}">
</part... | 1,628 | Python | .py | 36 | 37.333333 | 129 | 0.696338 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,732 | test_iq_groups_create_success.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/test_iq_groups_create_success.py | from yowsup.structs.protocolentity import ProtocolEntityTest
from yowsup.layers.protocol_groups.protocolentities import SuccessCreateGroupsIqProtocolEntity
import unittest
entity = SuccessCreateGroupsIqProtocolEntity("123-456", "431-123")
class SuccessCreateGroupsIqProtocolEntityTest(ProtocolEntityTest, unittest.Test... | 462 | Python | .py | 8 | 54 | 94 | 0.849558 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,733 | notification_groups_create.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/notification_groups_create.py | from .notification_groups import GroupsNotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
class CreateGroupsNotificationProtocolEntity(GroupsNotificationProtocolEntity):
"""
<notification from="{{owner_username}}-{{group_id}}@g.us" type="w:gp2" id="{{message_id}}" participant="{{participan... | 5,442 | Python | .py | 111 | 39.135135 | 134 | 0.627591 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,734 | iq_result_groups_list.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_result_groups_list.py | from yowsup.common import YowConstants
from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
from ..structs import Group
class ListGroupsResultIqProtocolEntity(ResultIqProtocolEntity):
'''
<iq type="result" from="g.us" id="{{IQ_... | 3,389 | Python | .py | 73 | 35.917808 | 161 | 0.597096 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,735 | iq_groups_list.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_list.py | from yowsup.common import YowConstants
from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups import GroupsIqProtocolEntity
class ListGroupsIqProtocolEntity(GroupsIqProtocolEntity):
'''
<iq id="{{id}}"" type="get" to="g.us" xmlns="w:g2">
<"{{participating | owning}}"></"{{participat... | 2,183 | Python | .py | 44 | 41.727273 | 161 | 0.639568 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,736 | iq_groups_participants.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups import GroupsIqProtocolEntity
class ParticipantsGroupsIqProtocolEntity(GroupsIqProtocolEntity):
'''
<iq type="get" id="{{id}}" xmlns="w:g2", to={{group_jid}}">
<list></list>
</iq>
'''
modes=["add","promote","remove... | 1,641 | Python | .py | 33 | 41.909091 | 121 | 0.668122 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,737 | iq_groups_participants_remove.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_remove.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups_participants import ParticipantsGroupsIqProtocolEntity
class RemoveParticipantsIqProtocolEntity(ParticipantsGroupsIqProtocolEntity):
'''
<iq type="set" id="{{id}}" xmlns="w:g2", to="{{group_jid}}">
<remove>
<partici... | 1,128 | Python | .py | 22 | 43.409091 | 121 | 0.703941 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,738 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/__init__.py | from .iq_groups_create import CreateGroupsIqProtocolEntity
from .iq_groups_create_success import SuccessCreateGroupsIqProtocolEntity
from .iq_groups_leave import LeaveGroupsIqProtocolEntity
from .iq_groups_leave_success import SuccessLeaveGroupsIqProtocolEntity
from .iq_groups_list import ListGroupsIq... | 1,706 | Python | .py | 23 | 73.173913 | 92 | 0.890077 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,739 | iq_groups_create_success.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_create_success.py | from yowsup.common import YowConstants
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
class SuccessCreateGroupsIqProtocolEntity(ResultIqProtocolEntity):
'''
<iq type="result" id="{{id}}" from="g.us">
<group id="{group_id}"></grou... | 1,143 | Python | .py | 24 | 41.291667 | 123 | 0.730045 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,740 | iq_result_groups_info.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_result_groups_info.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
class InfoGroupsResultIqProtocolEntity(ResultIqProtocolEntity):
'''
<iq type="result" from="{{GROUP_ID}}" id="{{IQ_ID}}">
<group subject="{{GROUPSUBJ}}" creation="{{GROUP_CREATION_TYIME}}"
... | 4,256 | Python | .py | 93 | 36.462366 | 95 | 0.631363 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,741 | iq_groups_participants_add_failure.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_add_failure.py | from yowsup.layers.protocol_iq.protocolentities import ErrorIqProtocolEntity
class FailureAddParticipantsIqProtocolEntity(ErrorIqProtocolEntity):
'''
<iq type="error" from="{{group_jid}}" id="{{id}}">
<error text="item-not-found" code="404">
</error>
</iq>
'''
def __init__(self, _id... | 846 | Python | .py | 17 | 36.176471 | 102 | 0.569361 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,742 | iq_groups_participants_add.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_add.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups_participants import ParticipantsGroupsIqProtocolEntity
class AddParticipantsIqProtocolEntity(ParticipantsGroupsIqProtocolEntity):
'''
<iq type="set" id="{{id}}" xmlns="w:g2", to="{{group_jid}}">
<add>
<participant j... | 1,089 | Python | .py | 22 | 42.181818 | 115 | 0.696429 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,743 | iq_groups_leave.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_leave.py | from yowsup.common import YowConstants
from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups import GroupsIqProtocolEntity
class LeaveGroupsIqProtocolEntity(GroupsIqProtocolEntity):
'''
<iq id="{{id}}"" type="set" to="{{group_jid}}" xmlns="w:g2">
<leave action="delete">
<grou... | 1,743 | Python | .py | 36 | 40.583333 | 115 | 0.666471 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,744 | test_iq_groups_create.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/test_iq_groups_create.py | from yowsup.layers.protocol_groups.protocolentities.iq_groups_create import CreateGroupsIqProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
entity = CreateGroupsIqProtocolEntity("group subject")
class CreateGroupsIqProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
... | 446 | Python | .py | 8 | 52 | 104 | 0.848624 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,745 | iq_groups.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
class GroupsIqProtocolEntity(IqProtocolEntity):
'''
<iq type="{{get | set?}}" id="{{id}}" xmlns="w:g2", to="{{group_jid}}">
</iq>
'''
def __init__(self, to = None, _fro... | 455 | Python | .py | 9 | 46.444444 | 96 | 0.652466 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,746 | iq_groups_participants_promote.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_promote.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups_participants import ParticipantsGroupsIqProtocolEntity
class PromoteParticipantsIqProtocolEntity(ParticipantsGroupsIqProtocolEntity):
'''
<iq type="set" id="{{id}}" xmlns="w:g2", to="{{group_jid}}">
<promote>
<part... | 1,130 | Python | .py | 22 | 43.863636 | 123 | 0.705722 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,747 | notification_groups_remove.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/notification_groups_remove.py | from .notification_groups import GroupsNotificationProtocolEntity
from yowsup.structs import ProtocolTreeNode
class RemoveGroupsNotificationProtocolEntity(GroupsNotificationProtocolEntity):
'''
<notification notify="{{NOTIFY_NAME}}" id="{{id}}" t="{{TIMESTAMP}}" participant="{{participant_jiid}}" from="{{group_jid}... | 2,126 | Python | .py | 47 | 37 | 150 | 0.667472 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,748 | iq_groups_participants_demote.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_demote.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups_participants import ParticipantsGroupsIqProtocolEntity
class DemoteParticipantsIqProtocolEntity(ParticipantsGroupsIqProtocolEntity):
'''
<iq type="set" id="{{id}}" xmlns="w:g2", to="{{group_jid}}">
<demote>
<partic... | 1,121 | Python | .py | 22 | 43.454545 | 121 | 0.703297 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,749 | iq_groups_create.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_create.py | from yowsup.common import YowConstants
from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_groups import GroupsIqProtocolEntity
class CreateGroupsIqProtocolEntity(GroupsIqProtocolEntity):
'''
<iq type="set" id="{{id}}" xmlns="w:g2", to="g.us">
<create subject="{{subject}}">
... | 1,825 | Python | .py | 41 | 36.439024 | 125 | 0.677347 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,750 | notification_groups_subject.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/notification_groups_subject.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from yowsup.layers.protocol_notifications.protocolentities import NotificationProtocolEntity
from .notification_groups import GroupsNotificationProtocolEntity
class SubjectGroupsNotificationProtocolEntity(GroupsNotificationProtocolEntity):
'''
<notif... | 2,304 | Python | .py | 44 | 44.75 | 134 | 0.703424 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,751 | test_iq_result_groups_list.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/test_iq_result_groups_list.py | from yowsup.layers.protocol_groups.protocolentities.iq_result_groups_list import ListGroupsResultIqProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
from yowsup.layers.protocol_groups.structs import Group
import unittest
import time
entity = ListGroupsResultIqProtocolEntity(
[
Gro... | 784 | Python | .py | 15 | 48.2 | 125 | 0.774446 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,752 | iq_groups_participants_add_success.py | tgalal_yowsup/yowsup/layers/protocol_groups/protocolentities/iq_groups_participants_add_success.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
class SuccessAddParticipantsIqProtocolEntity(ResultIqProtocolEntity):
'''
<iq type="result" from="{{group_jid}}" id="{{id}}">
<add type="success" participant="{{jid}}"></add>
... | 1,785 | Python | .py | 39 | 37.230769 | 129 | 0.670115 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,753 | manager.py | tgalal_yowsup/yowsup/config/manager.py | from yowsup.config.v1.config import Config
from yowsup.config.transforms.dict_keyval import DictKeyValTransform
from yowsup.config.transforms.dict_json import DictJsonTransform
from yowsup.config.v1.serialize import ConfigSerialize
from yowsup.common.tools import StorageTools
import logging
import os
logger = logging.... | 5,552 | Python | .py | 130 | 31.792308 | 123 | 0.589335 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,754 | config.py | tgalal_yowsup/yowsup/config/v1/config.py | from yowsup.config.base import config
import logging
logger = logging.getLogger(__name__)
class Config(config.Config):
def __init__(
self,
phone=None,
cc=None,
login=None,
password=None,
pushname=None,
id=None,
mcc=No... | 4,470 | Python | .py | 146 | 22.671233 | 93 | 0.604293 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,755 | serialize.py | tgalal_yowsup/yowsup/config/v1/serialize.py | from yowsup.config.base import serialize
from yowsup.config.transforms.filter import FilterTransform
from yowsup.config.transforms.meta import MetaPropsTransform
from yowsup.config.transforms.map import MapTransform
from yowsup.config.transforms.config_dict import ConfigDictTransform
from yowsup.config.transforms.props... | 2,180 | Python | .py | 38 | 42.710526 | 135 | 0.591865 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,756 | meta.py | tgalal_yowsup/yowsup/config/transforms/meta.py | from yowsup.config.base.transform import ConfigTransform
from yowsup.config.transforms.props import PropsTransform
class MetaPropsTransform(ConfigTransform):
META_FORMAT = "__%s__"
def __init__(self, meta_props=None, meta_format=META_FORMAT):
meta_props = meta_props or ()
meta_format = meta_f... | 887 | Python | .py | 18 | 41.5 | 100 | 0.680185 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,757 | filter.py | tgalal_yowsup/yowsup/config/transforms/filter.py | from yowsup.config.base.transform import ConfigTransform
class FilterTransform(ConfigTransform):
def __init__(self, transform_filter=None, reverse_filter=None):
"""
:param transform_filter:
:type transform_filter: function | None
:param reverse_filter:
:type reverse_filter... | 1,036 | Python | .py | 27 | 27.851852 | 74 | 0.573705 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,758 | dict_keyval.py | tgalal_yowsup/yowsup/config/transforms/dict_keyval.py | from yowsup.config.base.transform import ConfigTransform
class DictKeyValTransform(ConfigTransform):
def transform(self, data):
"""
:param data:
:type data: dict
:return:
:rtype:
"""
out=[]
keys = sorted(data.keys())
for k in keys:
... | 781 | Python | .py | 24 | 22.583333 | 75 | 0.476127 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,759 | dict_json.py | tgalal_yowsup/yowsup/config/transforms/dict_json.py | from yowsup.config.base.transform import ConfigTransform
import json
class DictJsonTransform(ConfigTransform):
def transform(self, data):
return json.dumps(data, sort_keys=True, indent=4, separators=(',', ': '))
def reverse(self, data):
return json.loads(data)
| 289 | Python | .py | 7 | 36.285714 | 81 | 0.726619 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,760 | config_dict.py | tgalal_yowsup/yowsup/config/transforms/config_dict.py | from yowsup.config.base.transform import ConfigTransform
class ConfigDictTransform(ConfigTransform):
def __init__(self, cls):
self._cls = cls
def transform(self, config):
"""
:param config:
:type config: dict
:return:
:rtype: yowsup.config.config.Config
... | 635 | Python | .py | 23 | 19.478261 | 56 | 0.560855 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,761 | props.py | tgalal_yowsup/yowsup/config/transforms/props.py | from yowsup.config.base.transform import ConfigTransform
import types
class PropsTransform(ConfigTransform):
def __init__(self, transform_map=None, reverse_map=None):
self._transform_map = transform_map or {}
self._reverse_map = reverse_map or {}
def transform(self, data):
"""
... | 1,070 | Python | .py | 28 | 28.428571 | 100 | 0.577519 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,762 | serialize.py | tgalal_yowsup/yowsup/config/transforms/serialize.py | from yowsup.config.transforms.props import PropsTransform
class SerializeTransform(PropsTransform):
def __init__(self, serialize_map):
"""
{
"keystore": serializer
}
:param serialize_map:
:type serialize_map:
"""
transform_map = {}
rever... | 654 | Python | .py | 16 | 32.0625 | 102 | 0.625592 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,763 | map.py | tgalal_yowsup/yowsup/config/transforms/map.py | from yowsup.config.base.transform import ConfigTransform
class MapTransform(ConfigTransform):
def __init__(self, transform_map=None, reverse_map=None):
"""
:param transform_map:
:type transform_map: function | None
:param reverse_map:
:type reverse_map: function | None
... | 997 | Python | .py | 27 | 26.703704 | 68 | 0.558549 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,764 | config.py | tgalal_yowsup/yowsup/config/base/config.py | class Config(object):
def __init__(self, version):
self._version = version
def __contains__(self, item):
return self[item] is not None
def __getitem__(self, item):
return getattr(self, "_%s" % item)
def __setitem__(self, key, value):
setattr(self, key, value)
def ... | 446 | Python | .py | 14 | 25.071429 | 46 | 0.590164 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,765 | transform.py | tgalal_yowsup/yowsup/config/base/transform.py | class ConfigTransform(object):
def transform(self, config):
"""
:param config:
:type config: yowsup.config.base.config.Config
:return: dict
:rtype:
"""
def reverse(self, data):
"""
:param data:
:type data:
:return:
:rtype: ... | 365 | Python | .py | 15 | 16.333333 | 54 | 0.532951 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,766 | serialize.py | tgalal_yowsup/yowsup/config/base/serialize.py | class ConfigSerialize(object):
def __init__(self, transforms):
self._transforms = transforms
def serialize(self, config):
"""
:param config:
:type config: yowsup.config.base.config.Config
:return:
:rtype: bytes
"""
for transform in self._transfor... | 702 | Python | .py | 24 | 20.625 | 54 | 0.57037 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,767 | protocolentity.py | tgalal_yowsup/yowsup/structs/protocolentity.py | from .protocoltreenode import ProtocolTreeNode
import unittest, time
class ProtocolEntity(object):
__ID_GEN = 0
def __init__(self, tag):
self.tag = tag
def getTag(self):
return self.tag
def isType(self, typ):
return self.tag == typ
def _createProtocolTreeNode(self, attri... | 1,474 | Python | .py | 39 | 30.051282 | 116 | 0.653521 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,768 | protocoltreenode.py | tgalal_yowsup/yowsup/structs/protocoltreenode.py | import binascii
class ProtocolTreeNode(object):
_STR_MAX_LEN_DATA = 500
_STR_INDENT = ' '
def __init__(self, tag, attributes = None, children = None, data = None):
# type: (str, dict, list[ProtocolTreeNode], bytes) -> None
if data is not None:
assert type(data) is bytes, type... | 4,704 | Python | .py | 121 | 26.942149 | 107 | 0.53103 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,769 | existsrequest.py | tgalal_yowsup/yowsup/registration/existsrequest.py | from yowsup.common.http.warequest import WARequest
from yowsup.common.http.waresponseparser import JSONResponseParser
from yowsup.env import YowsupEnv
class WAExistsRequest(WARequest):
def __init__(self, config):
"""
:param config:
:type config: yowsup.config.v1.config.Config
"""
... | 821 | Python | .py | 18 | 36.611111 | 106 | 0.638645 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,770 | regrequest.py | tgalal_yowsup/yowsup/registration/regrequest.py | '''
Copyright (c) <2012> Tarek Galal <tare2.galal@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merg... | 1,827 | Python | .py | 35 | 47.028571 | 87 | 0.737079 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,771 | coderequest.py | tgalal_yowsup/yowsup/registration/coderequest.py | from yowsup.common.http.warequest import WARequest
from yowsup.common.http.waresponseparser import JSONResponseParser
from yowsup.common.tools import WATools
from yowsup.registration.existsrequest import WAExistsRequest
from yowsup.env import YowsupEnv
class WACodeRequest(WARequest):
def __init__(self, method, co... | 1,856 | Python | .py | 39 | 37.948718 | 105 | 0.623894 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,772 | __init__.py | tgalal_yowsup/yowsup/registration/__init__.py | from .coderequest import WACodeRequest
from .existsrequest import WAExistsRequest
from .regrequest import WARegRequest | 118 | Python | .py | 3 | 38.666667 | 42 | 0.896552 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,773 | factory.py | tgalal_yowsup/yowsup/axolotl/factory.py | from yowsup.axolotl.manager import AxolotlManager
from yowsup.common.tools import StorageTools
from yowsup.axolotl.store.sqlite.liteaxolotlstore import LiteAxolotlStore
import logging
logger = logging.getLogger(__name__)
class AxolotlManagerFactory(object):
DB = "axolotl.db"
def get_manager(self, profile_na... | 583 | Python | .py | 12 | 43.916667 | 92 | 0.768959 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,774 | manager.py | tgalal_yowsup/yowsup/axolotl/manager.py | from axolotl.util.keyhelper import KeyHelper
from axolotl.identitykeypair import IdentityKeyPair
from axolotl.groups.senderkeyname import SenderKeyName
from axolotl.axolotladdress import AxolotlAddress
from axolotl.sessioncipher import SessionCipher
from axolotl.groups.groupcipher import GroupCipher
from axolotl.groups... | 12,168 | Python | .py | 253 | 39.217391 | 113 | 0.677354 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,775 | exceptions.py | tgalal_yowsup/yowsup/axolotl/exceptions.py | class NoSessionException(Exception):
pass
class UntrustedIdentityException(Exception):
def __init__(self, name, identity_key):
self._name = name
self._identity_key = identity_key
@property
def name(self):
return self._name
@property
def identity_key(self):
ret... | 503 | Python | .py | 18 | 22.555556 | 44 | 0.723629 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,776 | liteprekeystore.py | tgalal_yowsup/yowsup/axolotl/store/sqlite/liteprekeystore.py | from axolotl.state.prekeystore import PreKeyStore
from axolotl.state.prekeyrecord import PreKeyRecord
from yowsup.axolotl.exceptions import InvalidKeyIdException
import sys
class LitePreKeyStore(PreKeyStore):
def __init__(self, dbConn):
"""
:type dbConn: Connection
"""
self.dbConn ... | 2,838 | Python | .py | 67 | 33.776119 | 101 | 0.64016 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,777 | liteidentitykeystore.py | tgalal_yowsup/yowsup/axolotl/store/sqlite/liteidentitykeystore.py | from axolotl.state.identitykeystore import IdentityKeyStore
from axolotl.identitykey import IdentityKey
from axolotl.identitykeypair import IdentityKeyPair
from axolotl.util.keyhelper import KeyHelper
from axolotl.ecc.djbec import *
import sys
class LiteIdentityKeyStore(IdentityKeyStore):
def __init__(self, dbCon... | 3,163 | Python | .py | 67 | 37.507463 | 112 | 0.647173 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,778 | liteaxolotlstore.py | tgalal_yowsup/yowsup/axolotl/store/sqlite/liteaxolotlstore.py | from axolotl.state.axolotlstore import AxolotlStore
from .liteidentitykeystore import LiteIdentityKeyStore
from .liteprekeystore import LitePreKeyStore
from .litesessionstore import LiteSessionStore
from .litesignedprekeystore import LiteSignedPreKeyStore
from .litesenderkeystore import LiteSenderKeyStore
import sqlite... | 3,343 | Python | .py | 63 | 46.206349 | 84 | 0.781567 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,779 | litesessionstore.py | tgalal_yowsup/yowsup/axolotl/store/sqlite/litesessionstore.py | from axolotl.state.sessionstore import SessionStore
from axolotl.state.sessionrecord import SessionRecord
import sys
class LiteSessionStore(SessionStore):
def __init__(self, dbConn):
"""
:type dbConn: Connection
"""
self.dbConn = dbConn
dbConn.execute("CREATE TABLE IF NOT EXI... | 2,250 | Python | .py | 48 | 38.416667 | 109 | 0.654039 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,780 | litesignedprekeystore.py | tgalal_yowsup/yowsup/axolotl/store/sqlite/litesignedprekeystore.py | from axolotl.state.signedprekeystore import SignedPreKeyStore
from axolotl.state.signedprekeyrecord import SignedPreKeyRecord
from axolotl.invalidkeyidexception import InvalidKeyIdException
import sys
class LiteSignedPreKeyStore(SignedPreKeyStore):
def __init__(self, dbConn):
"""
:type dbConn: Conne... | 2,274 | Python | .py | 48 | 38.979167 | 106 | 0.6757 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,781 | litesenderkeystore.py | tgalal_yowsup/yowsup/axolotl/store/sqlite/litesenderkeystore.py | from axolotl.groups.state.senderkeystore import SenderKeyStore
from axolotl.groups.state.senderkeyrecord import SenderKeyRecord
import sqlite3
import sys
class LiteSenderKeyStore(SenderKeyStore):
def __init__(self, dbConn):
"""
:type dbConn: Connection
"""
self.dbConn = dbConn
... | 2,036 | Python | .py | 43 | 38.023256 | 113 | 0.644545 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,782 | profile.py | tgalal_yowsup/yowsup/profile/profile.py | from yowsup.config.manager import ConfigManager
from yowsup.config.v1.config import Config
from yowsup.axolotl.manager import AxolotlManager
from yowsup.axolotl.factory import AxolotlManagerFactory
import logging
logger = logging.getLogger(__name__)
class YowProfile(object):
def __init__(self, profile_name, conf... | 1,902 | Python | .py | 46 | 34.130435 | 118 | 0.665222 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,783 | stack.py | tgalal_yowsup/yowsup/demos/contacts/stack.py | from .layer import SyncLayer
from yowsup.stacks import YowStackBuilder
from yowsup.layers import YowLayerEvent
from yowsup.layers.auth import YowAuthenticationProtocolLayer
from yowsup.layers.network import YowNetworkLayer
class YowsupSyncStack(object):
def __init__(self, profile, contacts):
"""
... | 964 | Python | .py | 25 | 31.2 | 86 | 0.684549 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,784 | layer.py | tgalal_yowsup/yowsup/demos/contacts/layer.py | from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback
from yowsup.layers.protocol_contacts.protocolentities import GetSyncIqProtocolEntity, ResultSyncIqProtocolEntity
from yowsup.layers.protocol_iq.protocolentities import ErrorIqProtocolEntity
import threading
import l... | 1,230 | Python | .py | 22 | 50.454545 | 113 | 0.777038 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,785 | sink_worker.py | tgalal_yowsup/yowsup/demos/common/sink_worker.py | from yowsup.layers.protocol_media.mediacipher import MediaCipher
from yowsup.layers.protocol_media.protocolentities \
import ImageDownloadableMediaMessageProtocolEntity, AudioDownloadableMediaMessageProtocolEntity,\
VideoDownloadableMediaMessageProtocolEntity, DocumentDownloadableMediaMessageProtocolEntity, \
... | 6,733 | Python | .py | 140 | 36.621429 | 112 | 0.62715 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,786 | stack.py | tgalal_yowsup/yowsup/demos/echoclient/stack.py | from yowsup.stacks import YowStackBuilder
from .layer import EchoLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.network import YowNetworkLayer
class YowsupEchoStack(object):
def __init__(self, profile):
stackBuilder = YowStackBuilder()
self._stack = stackBuilder\
.p... | 641 | Python | .py | 17 | 30.705882 | 86 | 0.692557 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,787 | layer.py | tgalal_yowsup/yowsup/demos/echoclient/layer.py | from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback
class EchoLayer(YowInterfaceLayer):
@ProtocolEntityCallback("message")
def onMessage(self, messageProtocolEntity):
if messageProtocolEntity.getType() == 'text':
self.onTextMessage(messa... | 1,638 | Python | .py | 25 | 56.92 | 168 | 0.718029 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,788 | stack.py | tgalal_yowsup/yowsup/demos/sendclient/stack.py | from yowsup.stacks import YowStackBuilder
from .layer import SendLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.auth import YowAuthenticationProtocolLayer
from yowsup.layers.network import YowNetworkLayer
class YowsupSendStack(object):
def __init__(self, profile, messages):
"""
... | 975 | Python | .py | 25 | 31.68 | 86 | 0.689619 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,789 | layer.py | tgalal_yowsup/yowsup/demos/sendclient/layer.py | from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback
from yowsup.layers.protocol_messages.protocolentities import TextMessageProtocolEntity
from yowsup.common.tools import Jid
import threading
import logging
logger = logging.getLogger(__name__)
class SendLayer(YowInt... | 2,017 | Python | .py | 39 | 43.333333 | 113 | 0.687692 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,790 | stack.py | tgalal_yowsup/yowsup/demos/cli/stack.py | from yowsup.stacks import YowStackBuilder
from .layer import YowsupCliLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.axolotl.props import PROP_IDENTITY_AUTOTRUST
import sys
class YowsupCliStack(object):
def __init__(self, profile):
stackBuilder = YowStackBuilder()
self._stack =... | 927 | Python | .py | 24 | 30.833333 | 91 | 0.659598 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,791 | layer.py | tgalal_yowsup/yowsup/demos/cli/layer.py | from .cli import Cli, clicmd
from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback
from yowsup.layers import YowLayerEvent, EventCallback
from yowsup.layers.network import YowNetworkLayer
import sys
from yowsup.common import YowConstants
import datetime
import time
import os
import logging
impor... | 24,951 | Python | .py | 475 | 42.850526 | 187 | 0.660906 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,792 | cli.py | tgalal_yowsup/yowsup/demos/cli/cli.py | import threading, inspect, shlex
try:
import Queue
except ImportError:
import queue as Queue
try:
import readline
except ImportError:
import pyreadline as readline
class clicmd(object):
def __init__(self, desc, order = 0):
self.desc = desc
self.order = order
def __call__(self, f... | 6,023 | Python | .py | 152 | 28.059211 | 142 | 0.518398 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,793 | stack.py | tgalal_yowsup/yowsup/demos/mediasink/stack.py | from yowsup.stacks import YowStackBuilder
from .layer import MediaSinkLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.network import YowNetworkLayer
class MediaSinkStack(object):
def __init__(self, profile, storage_dir=None):
stackBuilder = YowStackBuilder()
self._stack = stackB... | 741 | Python | .py | 18 | 34.111111 | 86 | 0.703343 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,794 | layer.py | tgalal_yowsup/yowsup/demos/mediasink/layer.py | from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback
from yowsup.layers.protocol_media.protocolentities import *
from yowsup.layers.network.layer import YowNetworkLayer
from yowsup.layers import EventCallback
import sys
try:
from tqdm import tqdm
import requests
except ImportError:
... | 2,031 | Python | .py | 45 | 38.844444 | 99 | 0.729209 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,795 | yowstack.py | tgalal_yowsup/yowsup/stacks/yowstack.py | from yowsup.layers import YowParallelLayer
import time, logging, random
from yowsup.layers import YowLayer
from yowsup.layers.noise.layer import YowNoiseLayer
from yowsup.layers.noise.layer_noise_segments import YowNoiseSegmentsLayer
from yowsup.layers.auth import YowAuthenticationProtocolLayer
f... | 8,733 | Python | .tac | 186 | 38.370968 | 128 | 0.663217 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,796 | attributes_contact.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_contact.py | class ContactAttributes(object):
def __init__(self, display_name, vcard, context_info=None):
self._display_name = display_name
self._vcard = vcard
self._context_info = context_info
def __str__(self):
attrs = []
if self.display_name is not None:
attrs.append((... | 1,108 | Python | .tac | 32 | 27 | 75 | 0.607678 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,797 | message_media_contact.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_contact.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from .message_media import MediaMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_contact import ContactAttributes
from yowsup.layers.protocol_messages.pr... | 1,260 | Python | .tac | 25 | 44.32 | 117 | 0.775244 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,798 | test_message_media_contact.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_message_media_contact.py | from yowsup.layers.protocol_media.protocolentities.test_message_media import MediaMessageProtocolEntityTest
from yowsup.layers.protocol_media.protocolentities import ContactMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
class ContactMediaMessageProtocolEntityTest(MediaMes... | 857 | Python | .tac | 15 | 50.4 | 107 | 0.77381 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,799 | 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 | .tac | 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) |