Metadata-Version: 2.4
Name: intenzclient
Version: 0.3.0
Summary: Python client for Valorant internal APIs
Author: intenzdev
License: MIT
Project-URL: Source, https://github.com/inntenz/intenzclient
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: urllib3
Dynamic: license-file

# intenzclient - VALORANT CLIENT
![PyPI - Downloads](https://img.shields.io/pypi/dm/intenzclient)

### Valorant API Wrapper with extra Apis created by intenzdev

## Installation
```python
pip install intenzclient
```

## Example
```python
from intenzclient import Client

client = Client(region="eu")
client.activate()

print(str(client.is_lobby()))
```

## Game State
| Function | Description |
|----------|-------------|
| `in_agent_select()` | Checks if the player is currently in agent selection. Returns the MatchID if yes, otherwise `False`. |
| `is_ingame()` | Checks if the player is currently in a game. Returns the MatchID if yes, otherwise `False`. |
| `is_lobby()` | Checks if the player is currently in the lobby. |

## Party & Matchmaking
| Function | Description |
|----------|-------------|
| `party_id()` | Returns the player's current party ID. |
| `party_fetch_player()` | Gets the Party ID that a given player belongs to. |
| `party_remove_player(puuid)` | Removes a player from the current party. |
| `fetch_party()` | Gets details about a given party ID. |
| `party_set_member_ready(ready)` | Sets whether a party member is ready for queueing or not. |
| `party_refresh_competitive_tier()` | Refreshes the competitive tier for a player. |
| `party_refresh_player_identity()` | Refreshes the identity for a player. |
| `party_refresh_pings()` | Refreshes the pings for a player. |
| `party_change_queue(queue_id)` | Sets the matchmaking queue for the party. |
| `party_start_custom_game()` | Starts a custom game. |
| `party_enter_matchmaking_queue()` | Enters the matchmaking queue. |
| `party_leave_matchmaking_queue()` | Leaves the matchmaking queue. |
| `set_party_accessibility(open)` | Changes the party accessibility to be open or closed. |
| `party_set_custom_game_settings(settings)` | Changes the settings for a custom game. |
| `party_invite_by_display_name(name, tag)` | Invites a player to the party with their display name. |
| `party_request_to_join(party_id, other_puuid)` | Requests to join a party. |
| `party_decline_request(request_id)` | Declines a party request. |
| `party_join(party_id)` | Joins a party. |
| `party_leave(party_id)` | Leaves a party. |
| `party_fetch_custom_game_configs()` | Gets information about the available gamemodes. |
| `party_fetch_muc_token()` | Gets a token for party chat. |
| `party_fetch_voice_token()` | Gets a token for party voice. |
| `change_queue(queue_id)` | Changes the matchmaking queue for the current party. |
| `start_custom_game()` | Starts a custom game for the party. |
| `enter_matchmaking()` | Joins matchmaking. |
| `leave_matchmaking()` | Leaves matchmaking. |

## Agent Selection
| Function | Description |
|----------|-------------|
| `pregame_fetch_player()` | Gets the ID of a game in the pre-game stage. |
| `pregame_fetch_match(match_id)` | Gets info for a game in the pre-game stage. |
| `pregame_fetch_match_loadouts(match_id)` | Gets player skins and sprays for a game in the pre-game stage. |
| `pregame_fetch_chat_token(match_id)` | Gets a chat token. |
| `pregame_fetch_voice_token(match_id)` | Gets a voice token. |
| `pregame_select_character(agent_id, match_id)` | Selects an agent. |
| `pregame_lock_character(agent_id, match_id)` | Locks in an agent. |
| `pregame_quit_match(match_id)` | Quits a match in the pre-game stage. |
| `select_agent(agent_id)` | Selects an agent in agent selection. |
| `lock_agent(agent_id)` | Locks a selected agent. |
| `instalock_agent(agent_id)` | Instantly selects and locks an agent (Instant Lock). |

## Store & Inventory
| Function | Description |
|----------|-------------|
| `store_fetch_offers()` | Gets prices for all store items. |
| `store_fetch_storefront()` | Gets the currently available items in the store. |
| `store_fetch_wallet()` | Gets amount of Valorant points and Radianite the player has. |
| `store_fetch_order(order_id)` | Gets details of an order. |
| `store_fetch_items(item_type)` | Lists what the player owns (agents, skins, buddies, etc.). |
| `owned_items(item_type)` | Lists items the player owns (e.g., skins, agents, sprays). |
| `skin_map()` | Fetches all skins from the Valorant API. |
| `item_prices()` | Returns the prices of all store items. |
| `store_items()` | Shows currently available store items. |
| `wallet()` | Shows the amount of Valorant Points, Radianite, and Kingdom Credits the player has. |

## Content & Player Info
| Function | Description |
|----------|-------------|
| `fetch_content()` | Gets names and ids for game content such as agents, maps, guns, etc. |
| `fetch_account_xp()` | Gets the account level, XP, and XP history for the active player. |
| `fetch_player_loadout()` | Gets the player's current loadout. |
| `put_player_loadout(loadout)` | Updates the player's loadout. |
| `fetch_mmr(puuid)` | Gets the match making rating for a player. |
| `fetch_match_history(puuid, start_index, end_index, queue_id)` | Gets recent matches for a player. |
| `fetch_match_details(match_id)` | Gets the full info for a previous match. |
| `fetch_competitive_updates(puuid, start_index, end_index, queue_id)` | Gets recent games and how they changed ranking. |
| `fetch_leaderboard(season, start_index, size, region)` | Gets the competitive leaderboard for a given season. |
| `fetch_player_restrictions()` | Checks for any gameplay penalties on the account. |
| `fetch_item_progression_definitions()` | Gets details for item upgrades. |
| `fetch_config()` | Gets various internal game configuration settings set by Riot. |

## Live Game (Coregame)
| Function | Description |
|----------|-------------|
| `coregame_fetch_player()` | Gets the game ID for an ongoing game the player is in. |
| `coregame_fetch_match(match_id)` | Gets information about an ongoing game. |
| `coregame_fetch_match_loadouts(match_id)` | Gets player skins and sprays for an ongoing game. |
| `coregame_fetch_team_chat_muc_token(match_id)` | Gets a token for team chat. |
| `coregame_fetch_allchat_muc_token(match_id)` | Gets a token for all chat. |
| `coregame_disassociate_player(match_id)` | Leaves an in-progress game. |

## Contracts
| Function | Description |
|----------|-------------|
| `contracts_fetch_definitions()` | Gets names and descriptions for contracts. |
| `contracts_fetch()` | Gets a list of contracts and completion status including match history. |
| `contracts_activate(contract_id)` | Activates a particular contract. |
| `contracts_fetch_active_story()` | Gets the battlepass contracts. |
| `itemprogress_fetch_definitions()` | Fetches definitions for skin upgrade progressions. |
| `contracts_unlock_item_progress(progression_id)` | Unlocks an item progression. |

## Sessions & Presence
| Function | Description |
|----------|-------------|
| `session_fetch()` | Gets information about the current game session. |
| `session_reconnect()` | Reconnects to the session. |
| `fetch_presence(puuid)` | Gets presence info for a player (friends only). |
| `fetch_all_friend_presences()` | Gets a list of online friends and their activity. |
| `riotclient_session_fetch_sessions()` | Gets info about the running Valorant process including start arguments. |
| `rnet_fetch_active_alias()` | Gets the player username and tagline. |
| `rso_rnet_fetch_entitlements_token()` | Gets both the token and entitlement for API usage. |
| `rnet_fetch_all_friends()` | Gets a list of friends. |
| `rnet_fetch_settings()` | Gets client settings. |
| `rnet_fetch_friend_requests()` | Gets pending friend requests. |
| `rnet_fetch_chat_session()` | Gets the current session including player name and PUUID. |

## HTTP Requests (Base)
| Function | Description |
|----------|-------------|
| `fetch(endpoint, endpoint_type, exceptions)` | Gets data from a pd/glz/local/shared endpoint. |
| `post(endpoint, endpoint_type, json_data, exceptions)` | Posts data to a pd/glz endpoint. |
| `put(endpoint, endpoint_type, json_data, exceptions)` | Puts data to a pd/glz endpoint. |
| `delete(endpoint, endpoint_type, json_data, exceptions)` | Deletes data from a pd/glz endpoint. |

## Notes
Upgrade of valclient by colin: github.com/colinhartigan/valclient.py/blob/master/src/valclient/client.py
