https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/dynamodb/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/dynamodb/__pycache__/schema.cpython-310.pyc
o

ckF[��@sGdd�de�ZdS)c@sreZdZdZdd�Zdd�Zeddd��Zed	d
��Z	edd��Z
ed
d��Zedd��Zedd��Z
dd�ZdS)�Schemaa"
    Represents a DynamoDB schema.

    :ivar hash_key_name: The name of the hash key of the schema.
    :ivar hash_key_type: The DynamoDB type specification for the
        hash key of the schema.
    :ivar range_key_name: The name of the range key of the schema
        or None if no range key is defined.
    :ivar range_key_type: The DynamoDB type specification for the
        range key of the schema or None if no range key is defined.
    :ivar dict: The underlying Python dictionary that needs to be
        passed to Layer1 methods.
    cCs
||_dS�N��_dict)�self�schema_dict�r�6/usr/lib/python3/dist-packages/boto/dynamodb/schema.py�__init__(s
zSchema.__init__cCs(|jr
d|j|jf}|Sd|j}|S)Nz
Schema(%s:%s)z
Schema(%s))�range_key_name�
hash_key_name)r�srrr�__repr__+s

�zSchema.__repr__NcCsFd|d|dd�i}|dur|d|dd�|d<|d�}||_|S)a�Convenience method to create a schema object.

        Example usage::

            schema = Schema.create(hash_key=('foo', 'N'))
            schema2 = Schema.create(hash_key=('foo', 'N'),
                                    range_key=('bar', 'S'))

        :type hash_key: tuple
        :param hash_key: A tuple of (hash_key_name, hash_key_type)

        :type range_key: tuple
        :param hash_key: A tuple of (range_key_name, range_key_type)

        �HashKeyElement��)�
AttributeName�
AttributeTypeN�RangeKeyElementr)�cls�hash_key�	range_key�
reconstructed�instancerrr�create2s��
�z
Schema.createcCs|jSrr�rrrr�dictRszSchema.dictcC�|jddS)NrrrrrrrrV�zSchema.hash_key_namecCr)Nrrrrrrr�
hash_key_typeZrzSchema.hash_key_typecC� d}d|jvr|jdd}|S)Nrrr)r�namerrrr
^�
zSchema.range_key_namecCr)Nrrr)r�typerrr�range_key_typeer!zSchema.range_key_typecCs0|j|jko|j|jko|j|jko|j|jkSr)rrr
r#)r�otherrrr�__eq__ls
�
�
�z
Schema.__eq__r)�__name__�
__module__�__qualname__�__doc__r	r
�classmethodr�propertyrrrr
r#r%rrrrrs"




rN)�objectrrrrr�<module>s

https://t.me/RX1948 - 2025