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,500 | httpproxy.py | tgalal_yowsup/yowsup/common/http/httpproxy.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... | 3,283 | Python | .py | 78 | 34.846154 | 157 | 0.649843 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,501 | 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 | .py | 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,502 | __init__.py | tgalal_yowsup/yowsup/stacks/__init__.py | from .yowstack import YowStack, YowStackBuilder
from yowsup.layers.auth import YowAuthenticationProtocolLayer
from yowsup.layers.coder import YowCoderLayer
from yowsup.layers.logger import YowLoggerLayer
from yowsup.layers.network im... | 2,684 | Python | .py | 42 | 60.595238 | 152 | 0.768997 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,503 | env_android.py | tgalal_yowsup/yowsup/env/env_android.py | from .env import YowsupEnv
import base64
import hashlib
class AndroidYowsupEnv(YowsupEnv):
_SIGNATURE = "MIIDMjCCAvCgAwIBAgIETCU2pDALBgcqhkjOOAQDBQAwfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFDASBgNV" \
"BAcTC1NhbnRhIENsYXJhMRYwFAYDVQQKEw1XaGF0c0FwcCBJbmMuMRQwEgYDVQQLEwtFbmdpbmVlcmluZzEUMBIGA1UEAxML... | 3,118 | Python | .py | 59 | 44.983051 | 121 | 0.737689 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,504 | env.py | tgalal_yowsup/yowsup/env/env.py | import abc
import logging
from six import with_metaclass
logger = logging.getLogger(__name__)
DEFAULT = "android"
class YowsupEnvType(abc.ABCMeta):
def __init__(cls, name, bases, dct):
if name != "YowsupEnv":
YowsupEnv.registerEnv(cls)
super(YowsupEnvType, cls).__init__(name, bases, ... | 2,461 | Python | .py | 75 | 25.026667 | 112 | 0.611839 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,505 | __init__.py | tgalal_yowsup/yowsup/layers/__init__.py | import unittest
import inspect
import threading
try:
import Queue
except ImportError:
import queue as Queue
class YowLayerEvent:
def __init__(self, name, **kwargs):
self.name = name
self.detached = False
if "detached" in kwargs:
del kwargs["detached"]
self.d... | 8,701 | Python | .py | 215 | 31.111628 | 105 | 0.630883 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,506 | layer.py | tgalal_yowsup/yowsup/layers/noise/layer.py | from yowsup.layers.noise.workers.handshake import WANoiseProtocolHandshakeWorker
from yowsup.layers import YowLayer, EventCallback
from yowsup.layers.auth.layer_authentication import YowAuthenticationProtocolLayer
from yowsup.layers.network.layer import YowNetworkLayer
from yowsup.layers.noise.layer_noise_segments impo... | 7,150 | Python | .py | 157 | 34.910828 | 102 | 0.641986 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,507 | layer_noise_segments.py | tgalal_yowsup/yowsup/layers/noise/layer_noise_segments.py | from yowsup.layers import YowLayer
import logging
import struct
logger = logging.getLogger(__name__)
class YowNoiseSegmentsLayer(YowLayer):
PROP_ENABLED = "org.openwhatsapp.yowsup.prop.noise.segmented_enabled"
def __init__(self):
super(YowNoiseSegmentsLayer, self).__init__()
self._read_bu... | 1,282 | Python | .py | 30 | 32.233333 | 95 | 0.580307 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,508 | handshake.py | tgalal_yowsup/yowsup/layers/noise/workers/handshake.py | from consonance.protocol import WANoiseProtocol
from consonance.streams.segmented.segmented import SegmentedStream
from consonance.exceptions.handshake_failed_exception import HandshakeFailedException
from consonance.config.client import ClientConfig
from consonance.structs.keypair import KeyPair
from consonance.struct... | 1,636 | Python | .py | 40 | 33.625 | 97 | 0.69163 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,509 | layer.py | tgalal_yowsup/yowsup/layers/protocol_profiles/layer.py | from yowsup.layers import YowProtocolLayer
from .protocolentities import *
from yowsup.layers.protocol_iq.protocolentities import ErrorIqProtocolEntity, ResultIqProtocolEntity
class YowProfilesProtocolLayer(YowProtocolLayer):
def __init__(self):
handleMap = {
"iq": (self.recvIq, self.sendIq)
... | 3,186 | Python | .py | 51 | 54.019608 | 100 | 0.762103 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,510 | iq_pictures_list.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_pictures_list.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .iq_picture import PictureIqProtocolEntity
class ListPicturesIqProtocolEntity(PictureIqProtocolEntity):
'''
<iq type="get" id="{{id}}" xmlns="w:profile:picture", to="self.jid">
<list>
<user jid="{{user_jid}}"></user>
... | 1,346 | Python | .py | 30 | 37.5 | 105 | 0.666413 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,511 | test_iq_status_set.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/test_iq_status_set.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
from yowsup.layers.protocol_profiles.protocolentities import SetStatusIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class SetStatusIqProtocolEntityTest(IqProtocolEntityTest):
def setUp(self):
super(SetStatusI... | 540 | Python | .py | 9 | 54.888889 | 89 | 0.803774 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,512 | iq_unregister.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_unregister.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class UnregisterIqProtocolEntity(IqProtocolEntity):
XMLNS = "urn:xmpp:whatsapp:account"
def __init__(self):
super(UnregisterIqProtocolEntity, self... | 988 | Python | .py | 19 | 45.473684 | 131 | 0.735477 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,513 | iq_statuses_get.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_statuses_get.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class GetStatusesIqProtocolEntity(IqProtocolEntity):
XMLNS = "status"
def __init__(self, jids, _id = None):
"""
Request the statuses of use... | 1,655 | Python | .py | 36 | 38 | 134 | 0.673507 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,514 | test_iq_privacy_result.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/test_iq_privacy_result.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
from yowsup.layers.protocol_profiles.protocolentities import ResultPrivacyIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
entity = ResultPrivacyIqProtocolEntity({"profile":"all","last":"none","status":"contacts"})
class R... | 568 | Python | .py | 9 | 58.777778 | 91 | 0.824057 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,515 | iq_privacy_set.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_privacy_set.py | from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
'''
<iq xmlns="privacy" type="set" id="{{IQ_ID}}">
<privacy>
<category name="status" value="none">
<category name="profile" value="none">
<category name="last" value="none">
</category>
</privacy>
</iq>
... | 2,562 | Python | .py | 59 | 36.338983 | 131 | 0.673887 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,516 | iq_privacy_result.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_privacy_result.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
'''
<iq type="result" from="{{JID}}@s.whatsapp.net" id="{{IQ:ID}}">
<privacy>
<category name="last" value="all">
</category>
<category name="status" value="all">
</category>
<category name="profile... | 1,719 | Python | .py | 43 | 34.069767 | 111 | 0.694428 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,517 | iq_status_set.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_status_set.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
import logging
logger = logging.getLogger(__name__)
class SetStatusIqProtocolEntity(IqProtocolEntity):
'''
<iq to="s.whatsapp.net" xmlns="status" type="se... | 1,359 | Python | .py | 32 | 35.78125 | 132 | 0.680545 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,518 | test_iq_privacy_get.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/test_iq_privacy_get.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
from yowsup.layers.protocol_profiles.protocolentities import GetPrivacyIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
entity = GetPrivacyIqProtocolEntity()
class GetPrivacyIqProtocolEntityTest(IqProtocolEntityTest):
... | 502 | Python | .py | 9 | 51.444444 | 87 | 0.839104 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,519 | iq_picture.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_picture.py | from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
class PictureIqProtocolEntity(IqProtocolEntity):
'''
When receiving a profile picture:
<iq type="result" from="{{jid}}" id="{{id}}">
<picture type="image" id="{{another_id}}">
{{Binary bytes of the picture.}}
</p... | 542 | Python | .py | 13 | 36.076923 | 108 | 0.627599 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,520 | test_iq_unregister.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/test_iq_unregister.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
from yowsup.layers.protocol_profiles.protocolentities import UnregisterIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class UnregisterIqProtocolEntityTest(IqProtocolEntityTest):
def setUp(self):
super(Unregist... | 509 | Python | .py | 8 | 59.125 | 94 | 0.824351 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,521 | iq_picture_get.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_picture_get.py | from .iq_picture import PictureIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class GetPictureIqProtocolEntity(PictureIqProtocolEntity):
'''
<iq type="get" id="{{id}}" xmlns="w:profile:picture", to={{jid}}">
<picture type="image | preview">
</picture>
</iq>'''
def __init__(... | 1,166 | Python | .py | 26 | 38.038462 | 104 | 0.693052 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,522 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/__init__.py | from .iq_unregister import UnregisterIqProtocolEntity
from .iq_status_set import SetStatusIqProtocolEntity
from .iq_statuses_get import GetStatusesIqProtocolEntity
from .iq_statuses_result import ResultStatusesIqProtocolEntity
from .iq_picture_get import GetPictureIqProtocolEntity
from .iq_picture_get_result import Res... | 635 | Python | .py | 11 | 56.727273 | 67 | 0.894231 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,523 | iq_privacy_get.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_privacy_get.py | from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
'''
<iq xmlns="privacy" type="get" id="{{IQ_ID}}">
<privacy>
</privacy>
</iq>
'''
class GetPrivacyIqProtocolEntity(IqProtocolEntity):
XMLNS = "privacy"
def __init__(self):
super(GetPriva... | 919 | Python | .py | 23 | 34.782609 | 113 | 0.723094 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,524 | test_iq_privacy_set.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/test_iq_privacy_set.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
from yowsup.layers.protocol_profiles.protocolentities import SetPrivacyIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
entity = SetPrivacyIqProtocolEntity("all", ["profile","last","status"])
class SetPrivacyIqProtocolEnti... | 536 | Python | .py | 9 | 55.222222 | 87 | 0.822857 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,525 | iq_statuses_result.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_statuses_result.py | from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
class ResultStatusesIqProtocolEntity(IqProtocolEntity):
'''
<iq type="result" from="s.whatsapp.net" id="1">
<status>
<user jid="{number}@s.whatsapp.net" t="1330555420">
... | 1,999 | Python | .py | 45 | 35.644444 | 124 | 0.62885 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,526 | iq_picture_get_result.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_picture_get_result.py | from .iq_picture import PictureIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class ResultGetPictureIqProtocolEntity(PictureIqProtocolEntity):
'''
<iq type="result" from="{{jid}}" id="{{id}}">
<picture type="image | preview" id="{{another_id}}">
{{Binary bytes of the picture.}}
... | 1,766 | Python | .py | 38 | 39.210526 | 148 | 0.695703 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,527 | iq_picture_set.py | tgalal_yowsup/yowsup/layers/protocol_profiles/protocolentities/iq_picture_set.py | from .iq_picture import PictureIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
import time
class SetPictureIqProtocolEntity(PictureIqProtocolEntity):
'''
<iq type="set" id="{{id}}" xmlns="w:profile:picture", to={{jid}}">
<picture type="image" id="{{another_id}}">
{{Binary bytes of t... | 2,336 | Python | .py | 52 | 36.961538 | 116 | 0.682379 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,528 | decoder.py | tgalal_yowsup/yowsup/layers/coder/decoder.py | from yowsup.structs import ProtocolTreeNode
import math
import binascii
import sys
import zlib
class ReadDecoder:
def __init__(self, tokenDictionary):
self.tokenDictionary = tokenDictionary
def getProtocolTreeNode(self, data):
if type(data) is list:
data = bytearray(data)
... | 8,808 | Python | .py | 229 | 28.021834 | 113 | 0.547661 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,529 | test_tokendictionary.py | tgalal_yowsup/yowsup/layers/coder/test_tokendictionary.py | from yowsup.layers.coder.tokendictionary import TokenDictionary
import unittest
class TokenDictionaryTest(unittest.TestCase):
def setUp(self):
self.tokenDictionary = TokenDictionary()
def test_getToken(self):
self.assertEqual(self.tokenDictionary.getToken(10), "iq")
def test_getIndex(self)... | 742 | Python | .py | 15 | 43.4 | 77 | 0.745505 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,530 | test_decoder.py | tgalal_yowsup/yowsup/layers/coder/test_decoder.py | import unittest
from yowsup.layers.coder.decoder import ReadDecoder
from yowsup.layers.coder.tokendictionary import TokenDictionary
from yowsup.structs import ProtocolTreeNode
class DecoderTest(unittest.TestCase):
def setUp(self):
self.decoder = ReadDecoder(TokenDictionary())
self.decoder.streamStar... | 781 | Python | .py | 14 | 49.785714 | 141 | 0.677546 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,531 | test_encoder.py | tgalal_yowsup/yowsup/layers/coder/test_encoder.py | import unittest
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.coder.encoder import WriteEncoder
from yowsup.layers.coder.tokendictionary import TokenDictionary
class EncoderTest(unittest.TestCase):
def setUp(self):
self.res = []
self.encoder = WriteEncoder(TokenDictionary())
d... | 939 | Python | .py | 18 | 44.388889 | 135 | 0.603053 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,532 | tokendictionary.py | tgalal_yowsup/yowsup/layers/coder/tokendictionary.py | class TokenDictionary:
FLAG_SEGMENTED = 0x1
FLAG_DEFLATE = 0x2
def __init__(self):
self.dictionary = [
'',
'xmlstreamstart',
'xmlstreamend',
'type',
'id',
'from',
'receipt',
't',
's.whatsapp.... | 34,651 | Python | .py | 1,284 | 14.05919 | 75 | 0.386601 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,533 | layer.py | tgalal_yowsup/yowsup/layers/coder/layer.py | from yowsup.layers import YowLayer
from .encoder import WriteEncoder
from .decoder import ReadDecoder
from .tokendictionary import TokenDictionary
class YowCoderLayer(YowLayer):
def __init__(self):
YowLayer.__init__(self)
tokenDictionary = TokenDictionary()
self.writer = WriteEncoder(toke... | 828 | Python | .py | 23 | 28.608696 | 63 | 0.670025 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,534 | encoder.py | tgalal_yowsup/yowsup/layers/coder/encoder.py | class WriteEncoder:
def __init__(self, tokenDictionary):
self.tokenDictionary = tokenDictionary
def protocolTreeNodeToBytes(self, node):
outBytes = [0] # flags
self.writeInternal(node, outBytes)
return outBytes
def writeInternal(self, node, data):
x = 1 + \
... | 6,085 | Python | .py | 171 | 23.608187 | 81 | 0.499063 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,535 | layer.py | tgalal_yowsup/yowsup/layers/protocol_chatstate/layer.py | from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer
from .protocolentities import *
class YowChatstateProtocolLayer(YowProtocolLayer):
def __init__(self):
handleMap = {
"chatstate": (self.recvChatstateNode, self.sendChatstateEntity)
}
super(YowChatstateProtocolLa... | 608 | Python | .py | 14 | 36.714286 | 80 | 0.72758 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,536 | test_layer.py | tgalal_yowsup/yowsup/layers/protocol_chatstate/test_layer.py | from yowsup.layers import YowProtocolLayerTest
from yowsup.layers.protocol_chatstate import YowChatstateProtocolLayer
from yowsup.layers.protocol_chatstate.protocolentities import IncomingChatstateProtocolEntity, OutgoingChatstateProtocolEntity
class YowChatStateProtocolLayerTest(YowProtocolLayerTest, YowChatstateProt... | 758 | Python | .py | 12 | 57.666667 | 126 | 0.822581 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,537 | test_chatstate_outgoing.py | tgalal_yowsup/yowsup/layers/protocol_chatstate/protocolentities/test_chatstate_outgoing.py | from yowsup.layers.protocol_chatstate.protocolentities.chatstate_outgoing import OutgoingChatstateProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
entity = OutgoingChatstateProtocolEntity(OutgoingChatstateProtocolEntity.STATE_PAUSED, "jid@s.whatsapp.net")
class OutgoingChats... | 514 | Python | .py | 8 | 60.5 | 112 | 0.859127 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,538 | chatstate_incoming.py | tgalal_yowsup/yowsup/layers/protocol_chatstate/protocolentities/chatstate_incoming.py | from .chatstate import ChatstateProtocolEntity
class IncomingChatstateProtocolEntity(ChatstateProtocolEntity):
'''
INCOMING
<chatstate from="xxxxxxxxxxx@s.whatsapp.net">
<{{composing|paused}}></{{composing|paused}}>
</chatstate>
OUTGOING
<chatstate to="xxxxxxxxxxx@s.whatsapp.net">
<{{... | 1,230 | Python | .py | 33 | 30.212121 | 80 | 0.670042 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,539 | chatstate_outgoing.py | tgalal_yowsup/yowsup/layers/protocol_chatstate/protocolentities/chatstate_outgoing.py | from .chatstate import ChatstateProtocolEntity
class OutgoingChatstateProtocolEntity(ChatstateProtocolEntity):
'''
INCOMING
<chatstate from="xxxxxxxxxxx@s.whatsapp.net">
<{{composing|paused}}></{{composing|paused}}>
</chatstate>
OUTGOING
<chatstate to="xxxxxxxxxxx@s.whatsapp.net">
<{{... | 1,210 | Python | .py | 33 | 29.606061 | 80 | 0.664378 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,540 | test_chatstate_incoming.py | tgalal_yowsup/yowsup/layers/protocol_chatstate/protocolentities/test_chatstate_incoming.py | from yowsup.layers.protocol_chatstate.protocolentities.chatstate_incoming import IncomingChatstateProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
entity = IncomingChatstateProtocolEntity(IncomingChatstateProtocolEntity.STATE_TYPING, "jid@s.whatsapp.net")
class IncomingChats... | 514 | Python | .py | 8 | 60.5 | 112 | 0.859127 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,541 | chatstate.py | tgalal_yowsup/yowsup/layers/protocol_chatstate/protocolentities/chatstate.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class ChatstateProtocolEntity(ProtocolEntity):
'''
INCOMING
<chatstate from="xxxxxxxxxxx@s.whatsapp.net">
<{{composing|paused}}></{{composing|paused}}>
</chatstate>
OUTGOING
<chatstate to="xxxxxxxxxxx@s.whatsapp.net">
<{{com... | 1,234 | Python | .py | 34 | 29.470588 | 123 | 0.638655 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,542 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_chatstate/protocolentities/__init__.py | from .chatstate import ChatstateProtocolEntity
from .chatstate_incoming import IncomingChatstateProtocolEntity
from .chatstate_outgoing import OutgoingChatstateProtocolEntity
| 175 | Python | .py | 3 | 57.333333 | 63 | 0.918605 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,543 | layer.py | tgalal_yowsup/yowsup/layers/protocol_messages/layer.py | from yowsup.layers import YowProtocolLayer
from .protocolentities import TextMessageProtocolEntity
from .protocolentities import ExtendedTextMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.converter import AttributesConverter
from yowsup.layers.protocol_messages.protocolentities.a... | 2,492 | Python | .py | 49 | 35.77551 | 117 | 0.609606 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,544 | e2e_pb2.py | tgalal_yowsup/yowsup/layers/protocol_messages/proto/e2e_pb2.py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: e2e.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflectio... | 73,026 | Python | .py | 1,515 | 43.060066 | 6,976 | 0.722536 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,545 | protocol_pb2.py | tgalal_yowsup/yowsup/layers/protocol_messages/proto/protocol_pb2.py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protocol.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refl... | 3,050 | Python | .py | 76 | 36.078947 | 210 | 0.723986 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,546 | test_message.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/test_message.py | from yowsup.layers.protocol_messages.protocolentities.message import MessageProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
import unittest
class MessageProtocolEntityTest(ProtocolEntityTest, unittest.TestCase):
def setUp(self):
self.P... | 719 | Python | .py | 17 | 34.352941 | 90 | 0.68 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,547 | message.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/message.py | from yowsup.structs import ProtocolEntity
from yowsup.layers.protocol_receipts.protocolentities import OutgoingReceiptProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from copy import deepcopy
class MessageProtocolEntity(ProtocolEnti... | 4,028 | Python | .py | 93 | 34.483871 | 117 | 0.640297 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,548 | message_text.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/message_text.py | from .protomessage import ProtomessageProtocolEntity
from .message import MessageMetaAttributes
from .attributes.attributes_message import MessageAttributes
class TextMessageProtocolEntity(ProtomessageProtocolEntity):
def __init__(self, body, message_meta_attributes=None, to=None):
# flexible attributes f... | 1,056 | Python | .py | 23 | 39.086957 | 115 | 0.735151 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,549 | message_text_broadcast.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/message_text_broadcast.py | from .message_text import TextMessageProtocolEntity
from yowsup.structs import ProtocolTreeNode
import time
class BroadcastTextMessage(TextMessageProtocolEntity):
def __init__(self, jids, body):
broadcastTime = int(time.time() * 1000)
super(BroadcastTextMessage, self).__init__(body, to = "%s@broadca... | 1,185 | Python | .py | 24 | 42.416667 | 106 | 0.711572 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,550 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/__init__.py | from .message_text import TextMessageProtocolEntity
from .message import MessageProtocolEntity
from .message_text_broadcast import BroadcastTextMessage
from .message_extendedtext import ExtendedTextMessageProtocolEntity
| 220 | Python | .py | 4 | 54 | 67 | 0.907407 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,551 | test_message_text.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/test_message_text.py | from yowsup.layers.protocol_messages.protocolentities.message_text import TextMessageProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_messages.protocolentities.test_message import MessageProtocolEntityTest
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
class Te... | 690 | Python | .py | 12 | 52 | 99 | 0.795858 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,552 | message_extendedtext.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/message_extendedtext.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_extendedtext import ExtendedTextAttributes
from yowsup.layers.protocol_messages.protocolentities.protomessage import Protomess... | 1,257 | Python | .py | 22 | 51.136364 | 118 | 0.78926 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,553 | test_message_text_broadcast.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/test_message_text_broadcast.py | from yowsup.layers.protocol_messages.protocolentities.test_message_text import TextMessageProtocolEntityTest
from yowsup.layers.protocol_messages.protocolentities.message_text_broadcast import BroadcastTextMessage
from yowsup.structs import ProtocolTreeNode
class BroadcastTextMessageTest(TextMessageProtocolEntityTest... | 694 | Python | .py | 12 | 51.666667 | 108 | 0.779412 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,554 | proto.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/proto.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class ProtoProtocolEntity(ProtocolEntity):
def __init__(self, protoData, mediaType = None):
super(ProtoProtocolEntity, self).__init__("proto")
self.mediaType = mediaType
self.protoData = protoData
def getProtoData(self):
... | 727 | Python | .py | 18 | 33.166667 | 70 | 0.699291 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,555 | protomessage.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/protomessage.py | from .message import MessageProtocolEntity
from .proto import ProtoProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.converter import AttributesConverter
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
from yowsup.layers.protocol_messages.protocolentities.attributes.attri... | 2,013 | Python | .py | 44 | 38.477273 | 108 | 0.704233 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,556 | 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 | .py | 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,557 | attributes_context_info.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_context_info.py | class ContextInfoAttributes(object):
def __init__(self,
stanza_id=None,
participant=None,
quoted_message=None,
remote_jid=None,
mentioned_jid=None,
edit_version=None,
revoke_message=None
... | 2,728 | Python | .py | 76 | 27.052632 | 77 | 0.611533 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,558 | attributes_message_key.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_message_key.py | class MessageKeyAttributes(object):
def __init__(self, remote_jid, from_me, id, participant):
self._remote_jid = remote_jid
self._from_me = from_me
self._id = id
self._participant = participant
def __str__(self):
attrs = []
if self.remote_jid is not None:
... | 1,314 | Python | .py | 41 | 24.365854 | 75 | 0.589074 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,559 | attributes_location.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_location.py | class LocationAttributes(object):
def __init__(self,
degrees_latitude, degrees_longitude,
name=None, address=None, url=None,
duration=None, accuracy_in_meters=None, speed_in_mps=None, degrees_clockwise_from_magnetic_north=None,
axolotl_sender_key_d... | 4,869 | Python | .py | 121 | 31.958678 | 119 | 0.652763 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,560 | attributes_video.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_video.py | class VideoAttributes(object):
def __init__(self, downloadablemedia_attributes, width, height, seconds,
gif_playback=None, jpeg_thumbnail=None, gif_attribution=None, caption=None, streaming_sidecar=None):
self._downloadablemedia_attributes = downloadablemedia_attributes
self._width ... | 3,158 | Python | .py | 86 | 28.872093 | 117 | 0.646461 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,561 | converter.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/converter.py | from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
from yowsup.layers.protocol_messages.proto.protocol_pb2 import MessageKey
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_image import ImageAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes... | 21,696 | Python | .py | 371 | 48.603774 | 118 | 0.71019 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,562 | attributes_protocol.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_protocol.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_key import MessageKeyAttributes
class ProtocolAttributes(object):
TYPE_REVOKE = 0
TYPES = {
TYPE_REVOKE: "REVOKE"
}
def __init__(self, key, type):
self.key = key
self.type = type
def __str... | 793 | Python | .py | 25 | 25.12 | 115 | 0.634211 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,563 | attributes_message_meta.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_message_meta.py | class MessageMetaAttributes(object):
def __init__(
self, id=None, sender=None, recipient=None, notify=None, timestamp=None, participant=None, offline=None,
retry=None
):
assert (sender or recipient), "Must specify either sender or recipient " \
... | 1,082 | Python | .py | 23 | 35.521739 | 116 | 0.587902 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,564 | attributes_document.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_document.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_downloadablemedia import \
DownloadableMediaMessageAttributes
import os
class DocumentAttributes(object):
def __init__(self, downloadablemedia_attributes, file_name, file_length, title=None, page_count=None, jpeg_thumbnail=None):
... | 2,565 | Python | .py | 68 | 30.058824 | 127 | 0.660484 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,565 | attributes_downloadablemedia.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_downloadablemedia.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_media import MediaAttributes
from yowsup.common.tools import MimeTools
import base64
import hashlib
import os
class DownloadableMediaMessageAttributes(MediaAttributes):
def __init__(self, mimetype, file_length, file_sha256, url=None, medi... | 2,317 | Python | .py | 61 | 30.655738 | 119 | 0.663247 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,566 | attributes_audio.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_audio.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_downloadablemedia import \
DownloadableMediaMessageAttributes
class AudioAttributes(object):
def __init__(self, downloadablemedia_attributes, seconds, ptt, streaming_sidecar=None):
# type: (DownloadableMediaMessageAttributes, ... | 1,964 | Python | .py | 48 | 33.333333 | 102 | 0.668067 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,567 | attributes_image.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_image.py | from yowsup.common.tools import ImageTools
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_downloadablemedia \
import DownloadableMediaMessageAttributes
import os
class ImageAttributes(object):
def __init__(self, downloadablemedia_attributes, width, height, caption=None, jpeg_thumb... | 2,693 | Python | .py | 64 | 34.515625 | 117 | 0.685802 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,568 | attributes_message.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_message.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_image import ImageAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_extendedtext import ExtendedTextAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_document import Docu... | 5,261 | Python | .py | 129 | 33.007752 | 118 | 0.685468 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,569 | attributes_sender_key_distribution_message.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_sender_key_distribution_message.py | class SenderKeyDistributionMessageAttributes(object):
def __init__(self, group_id, axolotl_sender_key_distribution_message):
self._group_id = group_id
self._axolotl_sender_key_distribution_message = axolotl_sender_key_distribution_message
def __str__(self):
attrs = []
if self.gr... | 1,091 | Python | .py | 23 | 39.913043 | 95 | 0.676083 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,570 | attributes_extendedtext.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_extendedtext.py | class ExtendedTextAttributes(object):
def __init__(
self,
text, matched_text, canonical_url, description, title, jpeg_thumbnail, context_info
):
self._text = text
self._matched_text = matched_text
self._canonical_url = canonical_url
self._description = des... | 2,396 | Python | .py | 71 | 25.873239 | 95 | 0.617583 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,571 | attributes_media.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_media.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_context_info import ContextInfoAttributes
class MediaAttributes(object):
def __init__(self, context_info=None):
"""
:type context_info: ContextInfo | None
"""
if context_info:
assert type(contex... | 747 | Python | .py | 18 | 33.611111 | 117 | 0.678621 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,572 | attributes_sticker.py | tgalal_yowsup/yowsup/layers/protocol_messages/protocolentities/attributes/attributes_sticker.py | class StickerAttributes(object):
def __init__(self, downloadablemedia_attributes, width, height, png_thumbnail=None):
self._downloadablemedia_attributes = downloadablemedia_attributes
self._width = width
self._height = height
self._png_thumbnail = png_thumbnail
def __str__(self)... | 1,480 | Python | .py | 40 | 29.45 | 88 | 0.65035 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,573 | test_mediacipher.py | tgalal_yowsup/yowsup/layers/protocol_media/test_mediacipher.py | from yowsup.layers.protocol_media.mediacipher import MediaCipher
import base64
import unittest
class MediaCipherTest(unittest.TestCase):
IMAGE = (
b'EOnnZIBu1vTSI51IeJvaKR+8W1FqBETATI2Ikl6nVQ8=',
b'/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8M'
b'Cgs... | 2,766 | Python | .py | 38 | 64.973684 | 98 | 0.829842 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,574 | mediacipher.py | tgalal_yowsup/yowsup/layers/protocol_media/mediacipher.py | from axolotl.kdf.hkdfv3 import HKDFv3
from axolotl.util.byteutil import ByteUtil
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import padding
import hmac
import hashlib
class MediaCipher(object... | 3,153 | Python | .py | 66 | 39.924242 | 92 | 0.677861 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,575 | layer.py | tgalal_yowsup/yowsup/layers/protocol_media/layer.py | from yowsup.layers import YowProtocolLayer
from .protocolentities import ImageDownloadableMediaMessageProtocolEntity
from .protocolentities import AudioDownloadableMediaMessageProtocolEntity
from .protocolentities import VideoDownloadableMediaMessageProtocolEntity
from .protocolentities import DocumentDownloadableMedia... | 4,067 | Python | .py | 71 | 47.408451 | 119 | 0.722529 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,576 | mediauploader.py | tgalal_yowsup/yowsup/layers/protocol_media/mediauploader.py | from yowsup.common.http.warequest import WARequest
from yowsup.common.http.waresponseparser import JSONResponseParser
import socket
import ssl
import os
import hashlib
import sys
from time import sleep
import threading
import logging
from yowsup.common.tools import MimeTools
logger = logging.getLogger(__name__)
clas... | 5,226 | Python | .py | 116 | 33.060345 | 155 | 0.56234 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,577 | iq_requestupload.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/iq_requestupload.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.structs import ProtocolTreeNode
import hashlib
import base64
import os
from yowsup.common.tools import WATools
class RequestUploadIqProtocolEntity(IqProtocolEntity):
'''
<iq to="s.whatsapp.... | 3,260 | Python | .py | 69 | 39.333333 | 141 | 0.66331 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,578 | message_media_downloadable_image.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_image.py | from .message_media_downloadable import DownloadableMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_image import ImageAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from yowsup.layers... | 1,903 | Python | .py | 40 | 41.275 | 117 | 0.763371 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,579 | test_message_media_downloadable_audio.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_message_media_downloadable_audio.py | from yowsup.layers.protocol_media.protocolentities.message_media_downloadable_audio import AudioDownloadableMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
from .test_message_media import MediaMessageProtocolEntityTest
class AudioDownloadableMediaMessageProtocolEntityTest(... | 1,022 | Python | .py | 19 | 46.578947 | 134 | 0.756244 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,580 | test_message_media_downloadable_image.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_message_media_downloadable_image.py | from yowsup.layers.protocol_media.protocolentities.message_media_downloadable_image \
import ImageDownloadableMediaMessageProtocolEntity
from .test_message_media import MediaMessageProtocolEntityTest
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
class ImageDownloadableMediaMessageProtocolEntit... | 1,122 | Python | .py | 22 | 43.727273 | 86 | 0.744991 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,581 | test_message_media_extendedtext.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_message_media_extendedtext.py | from yowsup.layers.protocol_media.protocolentities.test_message_media import MediaMessageProtocolEntityTest
from yowsup.layers.protocol_media.protocolentities import ExtendedTextMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
class ExtendedTextMediaMessageProtocolEntityTes... | 1,598 | Python | .py | 28 | 49.142857 | 107 | 0.737852 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,582 | message_media_downloadable_sticker.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_sticker.py | from .message_media_downloadable import DownloadableMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_sticker import StickerAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from yowsup.la... | 1,664 | Python | .py | 34 | 42.705882 | 117 | 0.775309 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,583 | test_message_media_location.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_message_media_location.py | from yowsup.layers.protocol_media.protocolentities.test_message_media import MediaMessageProtocolEntityTest
from yowsup.layers.protocol_media.protocolentities import LocationMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
class LocationMediaMessageProtocolEntityTest(MediaM... | 967 | Python | .py | 17 | 49.764706 | 107 | 0.768499 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,584 | 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 | .py | 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,585 | iq_requestupload_result.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/iq_requestupload_result.py | from yowsup.common import YowConstants
from yowsup.layers.protocol_iq.protocolentities import ResultIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class ResultRequestUploadIqProtocolEntity(ResultIqProtocolEntity):
def __init__(self, _id, url, ip = None, resumeOffset = 0, duplicate = False):
su... | 2,222 | Python | .py | 50 | 35.54 | 114 | 0.657103 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,586 | message_media_downloadable_audio.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_audio.py | from .message_media_downloadable import DownloadableMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_audio import AudioAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from yowsup.layers... | 1,755 | Python | .py | 40 | 37.225 | 117 | 0.747214 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,587 | message_media_location.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_location.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_location import LocationAttributes
from yowsup.layers.protocol_messages.... | 3,506 | Python | .py | 79 | 37.898734 | 117 | 0.748089 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,588 | message_media_downloadable_video.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_video.py | from .message_media_downloadable import DownloadableMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_video import VideoAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from yowsup.layers... | 2,732 | Python | .py | 64 | 36.25 | 117 | 0.750378 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,589 | 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 | .py | 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,590 | test_message_media_downloadable_video.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_message_media_downloadable_video.py | from yowsup.layers.protocol_media.protocolentities.message_media_downloadable_video \
import VideoDownloadableMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
from .test_message_media import MediaMessageProtocolEntityTest
class VideoDownloadableMediaMessageProtocolEntit... | 1,282 | Python | .py | 26 | 41.769231 | 86 | 0.73126 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,591 | message_media_downloadable_document.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_document.py | from .message_media_downloadable import DownloadableMediaMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_document import DocumentAttributes
from yowsup.... | 2,214 | Python | .py | 49 | 38.673469 | 117 | 0.755927 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,592 | __init__.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/__init__.py | from .message_media import MediaMessageProtocolEntity
from .message_media_downloadable import DownloadableMediaMessageProtocolEntity
from .message_media_downloadable_image import ImageDownloadableMediaMessageProtocolEntity
from .message_media_downloadable_audio import AudioDownloadableMediaMessageProtocolEntity
from .m... | 945 | Python | .py | 12 | 77.75 | 95 | 0.919614 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,593 | test_iq_requestupload_result.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_iq_requestupload_result.py | from yowsup.layers.protocol_iq.protocolentities.test_iq_result import ResultIqProtocolEntityTest
from yowsup.layers.protocol_media.protocolentities import ResultRequestUploadIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class ResultRequestUploadIqProtocolEntityTest(ResultIqProtocolEntityTest):
def se... | 587 | Python | .py | 9 | 60.333333 | 96 | 0.811744 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,594 | test_iq_requestupload.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_iq_requestupload.py | from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest
from yowsup.layers.protocol_media.protocolentities import RequestUploadIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class RequestUploadIqProtocolEntityTest(IqProtocolEntityTest):
def setUp(self):
super(Reques... | 632 | Python | .py | 10 | 57.9 | 125 | 0.776886 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,595 | message_media_downloadable.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_downloadable.py | from .message_media import MediaMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message import MessageAttributes
class DownloadableMediaMessageProtoco... | 1,887 | Python | .py | 42 | 38.47619 | 117 | 0.756004 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,596 | message_media_extendedtext.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media_extendedtext.py | from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_extendedtext import ExtendedTextAttributes
from .message_media import MediaMessageProtocolEntity
from yowsup.layers.protocol_m... | 2,169 | Python | .py | 49 | 37.897959 | 118 | 0.752969 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,597 | test_message_media.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/test_message_media.py | from yowsup.layers.protocol_media.protocolentities.message_media import MediaMessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.test_message import MessageProtocolEntityTest
from yowsup.structs import ProtocolTreeNode
from yowsup.layers.protocol_messages.proto.e2e_pb2 import Message
class Med... | 661 | Python | .py | 10 | 61.3 | 107 | 0.818182 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,598 | message_media.py | tgalal_yowsup/yowsup/layers/protocol_media/protocolentities/message_media.py | from yowsup.layers.protocol_messages.protocolentities.protomessage import ProtomessageProtocolEntity
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message import MessageAttributes
from yowsup.layers.protocol_messages.protocolentities.attributes.attributes_message_meta import MessageMetaAtt... | 2,300 | Python | .py | 52 | 37.5 | 117 | 0.700179 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,599 | interface.py | tgalal_yowsup/yowsup/layers/interface/interface.py | from yowsup.layers import YowLayer, YowLayerEvent
from yowsup.layers.protocol_iq.protocolentities import IqProtocolEntity
from yowsup.layers.auth import YowAuthenticationProtocolLayer
from yowsup.layers.protocol_media.protocolentities.iq_requestupload import RequestUploadIqProtocolEntity
from yowsup.layers.protocol_med... | 6,443 | Python | .py | 123 | 41.918699 | 142 | 0.678537 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |