Python gRPC client for parry.gg API
Project description
parrygg-python
The official Python client library for the parry.gg tournament platform API. This library provides easy access to all parry.gg services using gRPC, allowing you to build applications that interact with tournaments, events, brackets, users, and more.
Installation
pip install parrygg
Requirements
- Python 3.7+
- grpcio
- grpcio-tools
- protobuf
Usage
Example
For authenticated requests, include your API key in the X-API-KEY header:
import grpc
from parrygg.services.tournament_service_pb2_grpc import TournamentServiceStub
from parrygg.services.tournament_service_pb2 import GetTournamentsRequest
# Your API key from parry.gg
API_KEY = "your-api-key-here"
channel = grpc.secure_channel("api.parry.gg:443", grpc.ssl_channel_credentials())
tournament_service = TournamentServiceStub(channel)
metadata = [("x-api-key", API_KEY)]
request = GetTournamentsRequest()
response = tournament_service.GetTournaments(request, metadata=metadata)
print(f"Successfully retrieved {len(response.tournaments)} tournaments")
for tournament in response.tournaments:
print(f"- {tournament.name} (ID: {tournament.id})")
channel.close()
Available Services
The library provides access to all parry.gg API services:
- TournamentService - Tournament management and retrieval
- EventService - Event operations within tournaments
- BracketService - Bracket and match management
- UserService - User account operations
- EntrantService - Tournament participant management
- PhaseService - Tournament phase operations
- GameService - Game information and metadata
- HierarchyService - Organizational hierarchy management
- NotificationService - Notification operations
- MatchService - Individual match operations
- PageContentService - Content management
Documentation
For comprehensive API documentation, authentication details, and developer resources, visit:
The developer portal includes:
- Complete API reference
- Authentication guide
- Code examples
- Rate limiting information
- Webhook documentation
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For API support and questions, please visit developer.parry.gg or contact the parry.gg development team.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parrygg-0.1.6.tar.gz.
File metadata
- Download URL: parrygg-0.1.6.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f03c17bd39b87f0c022e24befa1597f33e09c433b2449d03b410281b3455f586
|
|
| MD5 |
e29df7baea861d540dc4e41888877ace
|
|
| BLAKE2b-256 |
d72d547bdb18bca7a86c4085471218630a1a1cfb4a96a1865caee7295e9afd25
|
File details
Details for the file parrygg-0.1.6-py3-none-any.whl.
File metadata
- Download URL: parrygg-0.1.6-py3-none-any.whl
- Upload date:
- Size: 83.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f34d9126cfe80459794230d90b96b69282d41faa91bb59ef5a495a4404b0a1
|
|
| MD5 |
2c3c73725f5316f3a71f25f4eb795fdd
|
|
| BLAKE2b-256 |
5f9634f6ce512d1cdc1d216fb724355daea517e2b728e39f8ac6857d5e233c28
|