hyb
2025-12-31 6cdcd01f77e11b72c323603e27ebdb85b15223c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Ë
dñúhÚ"ãó€—dZdZddlmZddlZddlZddlmZddlmZddl    m
Z
ddl m Z m Z dd    lmZdd
lmZdd lmZmZdd lmZejej.ej0ej2fZeje j6ej.e j8ej0e j:ej2e j<iZe e!efZ"eeze"ze#e$d«fzZ%ejLd «Z'dZ(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0e)e*e+e,e-e.e/e0fZ1e2de3de de#diZ4d„Z5d„Z6Gd„de«Z7Gd„de«Z8dd„Z9y)züManage individual cells in a spreadsheet.
 
The Cell class is required to know its value and type, display options,
and any other features of an Excel cell.  Utilities for referencing
cells using Excel's 'A1' column/row nomenclature are also provided.
 
zrestructuredtext ené)ÚcopyN)Ú NUMERIC_TYPES)ÚIllegalCharacterError)Úget_column_letter)ÚnumbersÚis_date_format)ÚStyleableObject)Ú    Hyperlink)ÚDataTableFormulaÚ ArrayFormula)Ú CellRichTextz#[\000-\010]|[\013-\014]|[\016-\037])z#NULL!z#DIV/0!z#VALUE!z#REF!z#NAME?z#NUM!ú#N/AÚsÚfÚnÚbÚ    inlineStrÚeÚstrcó¾—t|t«rd}n@t|t«rd}n-t|t«rd}nt|tt
f«rd}ny|t |<|S)NrrÚdr)Ú
isinstancerÚ STRING_TYPESÚ
TIME_TYPESr r Ú_TYPES)ÚtÚvalueÚdts   úEH:\Change_password\venv_build\Lib\site-packages\openpyxl/cell/cell.pyÚget_typer AsU€Ü%œÔ'Ø ‰Ü    Eœ<Ô    (Ø ‰Ü    Eœ:Ô    &Ø ‰Ü    EÔ,¬lÐ;Ô    <Ø ‰àØ„Fˆ1IØ €Iócóà—tj|«}|r|S|j«ddD]&}tj|«}|sŒ|t|<|cStdj    |««‚)Néz#Could not get time format for {0!r})Ú TIME_FORMATSÚgetÚmroÚ
ValueErrorÚformat)rrÚbases   rÚget_time_formatr*Pso€Ü × Ñ ˜QÓ €E٠؈ Ø—‘“˜˜ òˆÜ× Ñ  Ó&ˆÚ Ø#ŒL˜‰OØŠLð    ô
Ð:×AÑAÀ%ÓHÓ
IÐIr!cóT‡—eZdZdZdZdˆfd„    Zed„«Zed„«Zed„«Z    ed„«Z
ed„«Z d    „Z d
„Z d „Zd „Zed „«Zej"d„«Zed„«Zed„«Zej"d„«Zed„«Zdd„Zed„«Zej"d„«ZˆxZS)ÚCellzpDescribes cell associated properties.
 
    Properties of interest include style, type, value, and address.
 
    )ÚrowÚcolumnÚ_valueÚ    data_typeÚparentÚ
_hyperlinkÚ_commentc󐕗t‰|||«||_    ||_    d|_d|_d|_|||_d|_y)Nr)    ÚsuperÚ__init__r-r.r/r2r0rr3)ÚselfÚ    worksheetr-r.rÚ style_arrayÚ    __class__s      €rr6z Cell.__init__lsOø€Ü ‰Ñ˜ KÔ0؈ŒØ/؈Œ Ø2àˆŒ ؈ŒØˆŒØ Р؈DŒJ؈ r!cóL—t|j«}|›|j›S)z!This cell's coordinate (ex. 'A5'))rr.r-)r7Úcols  rÚ
coordinatezCell.coordinate{s%€ô  § ¡ Ó,ˆØt—x‘xjÐ!Ð!r!có—|jS)z!The numerical index of the column)r.©r7s rÚcol_idxz Cell.col_idx‚ó€ð{‰{Ðr!có,—t|j«S©N)rr.r?s rÚ column_letterzCell.column_letterˆs€ä  §¡Ó-Ð-r!có.—|jjSrC)r1Úencodingr?s rrFz Cell.encodings€à{‰{×#Ñ#Ð#r!cóB—|jjjSrC)r1Úepochr?s rÚ    base_datezCell.base_date‘s€à{‰{×!Ñ!×'Ñ'Ð'r!cób—dj|jj|j«S)Nz<Cell {0!r}.{1}>©r(r1Útitler=r?s rÚ__repr__z Cell.__repr__–s#€Ø!×(Ñ(¨¯©×):Ñ):¸D¿O¹OÓLÐLr!cóҗ|€yt|t«st||j«}t|«}|dd}ttj |«d«rt |›d«‚|S)z5Check string coding, length, and line break characterNiÿz cannot be used in worksheets.)rrrFÚnextÚILLEGAL_CHARACTERS_REÚfinditerr©r7rs  rÚ check_stringzCell.check_string™sh€à ˆ=Ø ä˜%¤Ô%ܘ˜tŸ}™}Ó-ˆEܐE“
ˆðfu ˆÜ Ô%×.Ñ.¨uÓ5°tÔ <Ü'¨5¨'Ð1OÐ(PÓQÐ Q؈ r!có8—    t|«S#t$rYywxYw)z Tries to convert Error" else N/Ar)rÚUnicodeDecodeErrorrRs  rÚ check_errorzCell.check_error¨s#€ð    Üu“:Ð øÜ!ò    Ùð    ús ‚
    ˜cóø—d|_t|«}    t|}|€|t dj |««‚|r||_|dk(r-t|j«s{t|«|_||_y|dk(r^t|t«sN|j|«}t|«dkDr |jd«rd|_||_y|tvrd    |_||_y#t$rt    ||«}YŒÛwxYw)
z*Given a value, infer the correct data typerNzCannot convert {0!r} to Excelrrr#ú=rr)r0ÚtyperÚKeyErrorr r'r(rÚ number_formatr*rr rSÚlenÚ
startswithÚ ERROR_CODESr/)r7rrrs    rÚ _bind_valuezCell._bind_value°sù€ðˆŒÜ ‹Kˆð    $ܘ‘ˆBð ˆ:˜%Ð+ÜÐ<×CÑCÀEÓJÓKÐ Ká ØˆDŒNà Š9Ü! $×"4Ñ"4Ô5Ü%4°QÓ%7Ô"ðˆ ð3ŠYœz¨%´Ô>Ø×%Ñ% eÓ,ˆEܐ5‹z˜AŠ~ %×"2Ñ"2°3Ô"7Ø!$”ðˆ ðœ+Ñ%Ø!$”àˆ øô)ò    $ܘ!˜UÓ#ŠBð    $ús”    C!Ã!C9Ã8C9có—|jS)z“Get or set the value held in the cell.
 
        :type: depends on the value (string, float, int or
            :class:`datetime.datetime`)
        ©r/r?s rrz
Cell.valueÎs€ð{‰{Ðr!có&—|j|«y)z1Set the value and infer type and display options.N)r_rRs  rrz
Cell.value×s€ð     ×јÕr!có—|jS)z#Always returns the value for excel.rar?s rÚinternal_valuezCell.internal_valueÜrAr!có—|jS)z.Return the hyperlink target or an empty string)r2r?s rÚ    hyperlinkzCell.hyperlinkás€ð‰Ðr!cóڗ|€d|_yt|t«s td|¬«}|j|_||_|j
€ |j xs |j|_yy)aSet value and display for hyperlinks in a cell.
        Automatically sets the `value` of the cell with link text,
        but you can modify it afterwards by setting the `value`
        property, and the hyperlink will remain.
        Hyperlink is removed if set to ``None``.NÚ)ÚrefÚtarget)    r2rr
r=rir/rjÚlocationr)r7Úvals  rrfzCell.hyperlinkçs[€ð ˆ;Ø"ˆDOä˜c¤9Ô-Ü B¨sÔ3Ø—o‘oˆCŒGØ!ˆDŒO؏{‰{Ð"Ø ŸZ™ZÒ7¨3¯<©<•
ð#r!cóp—|jdk(xs&|jdk(xrt|j«S)zFTrue if the value is formatted as a date
 
        :type: bool
        rr)r0rr[r?s rÚis_datez Cell.is_dateùs6€ð ~‰~ Ñ$òØ N‰N˜cÑ !Ò H¤n°T×5GÑ5GÓ&Hð    r!cóx—|j|z}|j|z}|jj||¬«S)z÷Returns a cell location relative to this cell.
 
        :param row: number of rows to offset
        :type row: int
 
        :param column: number of columns to offset
        :type column: int
 
        :rtype: :class:`openpyxl.cell.Cell`
        )r.r-)r@r-r1Úcell)r7r-r.Ú offset_columnÚ
offset_rows     rÚoffsetz Cell.offsets9€ðŸ ™  vÑ-ˆ Ø—X‘X ‘^ˆ
؏{‰{×Ñ }¸*ÐÓEÐEr!có—|jS)zn Returns the comment associated with this cell
 
            :type: :class:`openpyxl.comments.Comment`
        )r3r?s rÚcommentz Cell.comments€ð }‰}Ðr!cóƗ|0|jr t|«}|j|«||_y|€&|jr|jj    «||_y)z,
        Assign a comment to a cell
        N)r1rÚbindr3ÚunbindrRs  rruz Cell.commentsS€ð Р؏|Š|ܘU› Ø J‰JtÔ ðˆ ðˆ]˜tŸ}š}Ø M‰M×  Ñ  Ô "؈ r!)NNNN)rr)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú    __slots__r6Úpropertyr=r@rDrFrIrMrSrVr_rÚsetterrdrfrnrsruÚ __classcell__©r:s@rr,r,\sAø„ñð
€Iõ ðñ"óð"ð ñóðð
ñ.óð.ðñ$óð$ðñ(óð(òMò òòð<ñóðð ‡\\ñ óð ðñóððñóðð
×Ññ8óð8ð"ñóðó Fð ñóðð ‡^^ñ óô r!r,có^‡—eZdZdZdZdZdZdZdZdˆfd„    Z    d„Z
e jZ eZ eZˆxZS)Ú
MergedCellz¥
    Describes the properties of a cell in a merged cell and helps to
    display the borders of the merged cell.
 
    The value of a MergedCell is always None.
    )r-r.Nrcó@•—t‰||«||_||_yrC)r5r6r-r.)r7r8r-r.r:s    €rr6zMergedCell.__init__=sø€Ü ‰Ñ˜Ô#؈ŒØˆ r!cób—dj|jj|j«S)Nz<MergedCell {0!r}.{1}>rKr?s rrMzMergedCell.__repr__Cs#€Ø'×.Ñ.¨t¯{©{×/@Ñ/@À$Ç/Á/ÓRÐRr!©NN)ryrzr{r|r}r/r0rurfr6rMr,r=r3rr€rs@rrƒrƒ,sCø„ñð"€Ià €FØ€IØ€GØ€Iõò Sð—‘€JØ€HØ „Er!rƒcó —t|dd|¬«S)Nr#)r8r.r-r)r,)Úwsrs  rÚ WriteOnlyCellr‰Ks€Ü ˜" Q¨A°UÔ ;Ð;r!r†):r|Ú __docformat__rÚdatetimeÚreÚopenpyxl.compatrÚopenpyxl.utils.exceptionsrÚopenpyxl.utilsrÚopenpyxl.stylesrrÚopenpyxl.styles.styleabler    Úopenpyxl.worksheet.hyperlinkr
Úopenpyxl.worksheet.formular r Úopenpyxl.cell.rich_textr ÚdateÚtimeÚ    timedeltarÚFORMAT_DATE_DATETIMEÚFORMAT_DATE_YYYYMMDD2ÚFORMAT_DATE_TIME6ÚFORMAT_DATE_TIMEDELTAr$rÚbytesrÚboolrYÚ KNOWN_TYPESÚcompilerPr^Ú TYPE_STRINGÚ TYPE_FORMULAÚ TYPE_NUMERICÚ    TYPE_BOOLÚ    TYPE_NULLÚ TYPE_INLINEÚ
TYPE_ERRORÚTYPE_FORMULA_CACHE_STRINGÚ VALID_TYPESÚintÚfloatrr r*r,rƒr‰©r!rú<module>r¬spðñð&€ õÛÛ    õõ<å,ß3Ý5Ý2ßEÝ0ð×Ñ §¡°· ± ¸x×?QÑ?QÐ R€
à ×ѐg×2Ñ2Ø ‡MM'×/Ñ/Ø ‡MM'×+Ñ+Ø ×ѐw×4Ñ4ð    € ðU˜LÐ)€ ؘjÑ(¨<Ñ7¸4ÁÀdÃÐ:LÑL€ à"˜Ÿ
™
Ð#IÓJÐð€ ð€ Ø€ Ø€ Ø €    Ø €    Ø€ Ø €
Ø!Ðà˜L¨,¸    Ø˜+ zÐ3LðN€ ð ˆc5˜˜c # t¨CР   0€ò ò    JôMˆ?ôMô`ôô><r!