Skip to content

Commit

Permalink
Deploying to gh-pages from @ 6dbfec3 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarzaa90 committed Oct 2, 2024
1 parent b273c7c commit 7993ee2
Show file tree
Hide file tree
Showing 35 changed files with 815 additions and 529 deletions.
141 changes: 114 additions & 27 deletions _modules/tibiapy/client.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _modules/tibiapy/enums.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>Source code for tibiapy.enums</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">__future__</span> <span class="kn">import</span> <span class="n">annotations</span>

<span class="kn">from</span> <span class="nn">enum</span> <span class="kn">import</span> <span class="n">Enum</span><span class="p">,</span> <span class="n">Flag</span><span class="p">,</span> <span class="n">IntEnum</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">TYPE_CHECKING</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">TYPE_CHECKING</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Optional</span>

<span class="kn">from</span> <span class="nn">pydantic_core</span> <span class="kn">import</span> <span class="n">core_schema</span>
<span class="kn">from</span> <span class="nn">typing_extensions</span> <span class="kn">import</span> <span class="n">Self</span>
Expand Down
4 changes: 2 additions & 2 deletions _modules/tibiapy/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1>Source code for tibiapy.errors</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;Exceptions thrown by tibia.py.&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">__future__</span> <span class="kn">import</span> <span class="n">annotations</span>

<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Type</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">TYPE_CHECKING</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">TYPE_CHECKING</span><span class="p">,</span> <span class="n">Any</span>

<span class="kn">from</span> <span class="nn">typing_extensions</span> <span class="kn">import</span> <span class="n">deprecated</span>

Expand Down Expand Up @@ -147,7 +147,7 @@ <h1>Source code for tibiapy.errors</h1><div class="highlight"><pre>
<span class="k">class</span> <span class="nc">EnumValueError</span><span class="p">(</span><span class="ne">ValueError</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Exception raised when the provided value cannot be converted to an enum.&quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">enum</span><span class="p">:</span> <span class="n">Type</span><span class="p">[</span><span class="n">Enum</span><span class="p">],</span> <span class="n">value</span><span class="p">:</span> <span class="n">Any</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">enum</span><span class="p">:</span> <span class="nb">type</span><span class="p">[</span><span class="n">Enum</span><span class="p">],</span> <span class="n">value</span><span class="p">:</span> <span class="n">Any</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">enum</span> <span class="o">=</span> <span class="n">enum</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">value</span><span class="si">!r}</span><span class="s2"> is not a valid value for </span><span class="si">{</span><span class="n">enum</span><span class="o">.</span><span class="vm">__name__</span><span class="si">}</span><span class="s2">.&quot;</span>
Expand Down
58 changes: 35 additions & 23 deletions _modules/tibiapy/models/bazaar.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions _modules/tibiapy/models/character.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ <h1>Source code for tibiapy.models.character</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">__future__</span> <span class="kn">import</span> <span class="n">annotations</span>

<span class="kn">import</span> <span class="nn">datetime</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Optional</span>

<span class="kn">from</span> <span class="nn">pydantic</span> <span class="kn">import</span> <span class="n">computed_field</span>

<span class="kn">from</span> <span class="nn">tibiapy</span> <span class="kn">import</span> <span class="n">urls</span>
<span class="kn">from</span> <span class="nn">tibiapy.enums</span> <span class="kn">import</span> <span class="n">Sex</span><span class="p">,</span> <span class="n">Vocation</span>
<span class="kn">from</span> <span class="nn">tibiapy.models.base</span> <span class="kn">import</span> <span class="n">BaseCharacter</span><span class="p">,</span> <span class="n">BaseGuild</span><span class="p">,</span> <span class="n">BaseModel</span><span class="p">,</span> <span class="n">HouseWithId</span>
<span class="kn">from</span> <span class="nn">tibiapy</span> <span class="kn">import</span> <span class="n">urls</span>

<span class="n">__all__</span> <span class="o">=</span> <span class="p">(</span>
<span class="s2">&quot;AccountBadge&quot;</span><span class="p">,</span>
Expand Down Expand Up @@ -161,9 +161,9 @@ <h1>Source code for tibiapy.models.character</h1><div class="highlight"><pre>

<span class="n">level</span><span class="p">:</span> <span class="nb">int</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The level at which the death occurred.&quot;&quot;&quot;</span>
<span class="n">killers</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">DeathParticipant</span><span class="p">]</span>
<span class="n">killers</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">DeathParticipant</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;A list of all the killers involved.&quot;&quot;&quot;</span>
<span class="n">assists</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">DeathParticipant</span><span class="p">]</span>
<span class="n">assists</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">DeathParticipant</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;A list of characters that were involved, without dealing damage.&quot;&quot;&quot;</span>
<span class="n">time</span><span class="p">:</span> <span class="n">datetime</span><span class="o">.</span><span class="n">datetime</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The time at which the death occurred.&quot;&quot;&quot;</span>
Expand Down Expand Up @@ -239,7 +239,7 @@ <h1>Source code for tibiapy.models.character</h1><div class="highlight"><pre>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;If the character was traded in the last 6 months.&quot;&quot;&quot;</span>
<span class="n">deletion_date</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">datetime</span><span class="o">.</span><span class="n">datetime</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The date when the character will be deleted if it is scheduled for deletion. Will be :obj:`None` otherwise.&quot;&quot;&quot;</span>
<span class="n">former_names</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span>
<span class="n">former_names</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Previous names of the character in the last 6 months..&quot;&quot;&quot;</span>
<span class="n">title</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The character&#39;s selected title, if any.&quot;&quot;&quot;</span>
Expand All @@ -261,7 +261,7 @@ <h1>Source code for tibiapy.models.character</h1><div class="highlight"><pre>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The current hometown of the character.&quot;&quot;&quot;</span>
<span class="n">married_to</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The name of the character&#39;s spouse. It will be :obj:`None` if not married.&quot;&quot;&quot;</span>
<span class="n">houses</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">CharacterHouse</span><span class="p">]</span>
<span class="n">houses</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">CharacterHouse</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The houses currently owned by the character.&quot;&quot;&quot;</span>
<span class="n">guild_membership</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">GuildMembership</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The guild the character is a member of. It will be :obj:`None` if the character is not in a guild.&quot;&quot;&quot;</span>
Expand All @@ -273,19 +273,19 @@ <h1>Source code for tibiapy.models.character</h1><div class="highlight"><pre>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The displayed comment.&quot;&quot;&quot;</span>
<span class="n">is_premium</span><span class="p">:</span> <span class="nb">bool</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Whether the character&#39;s account is Premium or Free.&quot;&quot;&quot;</span>
<span class="n">account_badges</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">AccountBadge</span><span class="p">]</span>
<span class="n">account_badges</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">AccountBadge</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The displayed account badges.&quot;&quot;&quot;</span>
<span class="n">achievements</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">Achievement</span><span class="p">]</span>
<span class="n">achievements</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">Achievement</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The achievements chosen to be displayed.&quot;&quot;&quot;</span>
<span class="n">deaths</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">Death</span><span class="p">]</span>
<span class="n">deaths</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">Death</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The character&#39;s recent deaths.&quot;&quot;&quot;</span>
<span class="n">deaths_truncated</span><span class="p">:</span> <span class="nb">bool</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Whether the character&#39;s deaths are truncated or not.</span>

<span class="sd"> In some cases, there are more deaths in the last 30 days than what can be displayed.&quot;&quot;&quot;</span>
<span class="n">account_information</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">AccountInformation</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The character&#39;s account information. If the character is hidden, this will be :obj:`None`.&quot;&quot;&quot;</span>
<span class="n">other_characters</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">OtherCharacter</span><span class="p">]</span>
<span class="n">other_characters</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">OtherCharacter</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Other characters in the same account.</span>

<span class="sd"> It will be empty if the character is hidden, otherwise, it will contain at least the character itself.&quot;&quot;&quot;</span>
Expand Down
12 changes: 6 additions & 6 deletions _modules/tibiapy/models/creature.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h3>Navigation</h3>

<h1>Source code for tibiapy.models.creature</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;Models for creatures.&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Optional</span>

<span class="kn">from</span> <span class="nn">pydantic</span> <span class="kn">import</span> <span class="n">computed_field</span>

Expand Down Expand Up @@ -77,7 +77,7 @@ <h1>Source code for tibiapy.models.creature</h1><div class="highlight"><pre>

<span class="n">boosted_boss</span><span class="p">:</span> <span class="n">BossEntry</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The current boosted boss.&quot;&quot;&quot;</span>
<span class="n">bosses</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">BossEntry</span><span class="p">]</span>
<span class="n">bosses</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">BossEntry</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The list of boostable bosses.&quot;&quot;&quot;</span></div>


Expand Down Expand Up @@ -120,11 +120,11 @@ <h1>Source code for tibiapy.models.creature</h1><div class="highlight"><pre>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The number of hitpoints the creature has.&quot;&quot;&quot;</span>
<span class="n">experience</span><span class="p">:</span> <span class="nb">int</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The number of experience points given for killing this creature.&quot;&quot;&quot;</span>
<span class="n">immune_to</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span>
<span class="n">immune_to</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The elements this creature is immune to.&quot;&quot;&quot;</span>
<span class="n">weak_against</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span>
<span class="n">weak_against</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The elements this creature is weak against.&quot;&quot;&quot;</span>
<span class="n">strong_against</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span>
<span class="n">strong_against</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The elements this creature is strong against.&quot;&quot;&quot;</span>
<span class="n">loot</span><span class="p">:</span> <span class="nb">str</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Some of the items this creature drops.&quot;&quot;&quot;</span>
Expand All @@ -144,7 +144,7 @@ <h1>Source code for tibiapy.models.creature</h1><div class="highlight"><pre>

<span class="n">boosted_creature</span><span class="p">:</span> <span class="n">CreatureEntry</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The current boosted creature.&quot;&quot;&quot;</span>
<span class="n">creatures</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">CreatureEntry</span><span class="p">]</span>
<span class="n">creatures</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">CreatureEntry</span><span class="p">]</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The list of creatures in the library.&quot;&quot;&quot;</span></div>


Expand Down
Loading

0 comments on commit 7993ee2

Please sign in to comment.