Skip to main content

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:

developer.parry.gg

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

parrygg-0.1.1.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parrygg-0.1.1-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

File details

Details for the file parrygg-0.1.1.tar.gz.

File metadata

  • Download URL: parrygg-0.1.1.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for parrygg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a94b0288ac13e8aa98b926786868617238ca7e0ebb56d0273b3c8c52880f31ce
MD5 8b6b161f7c271f49a4cf611da8a09daf
BLAKE2b-256 3a73301e15a41920d7840c99de7827ccf4feb08b7bb959880fed9632e7473c98

See more details on using hashes here.

File details

Details for the file parrygg-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: parrygg-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 55.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for parrygg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05d00f59ad9433aa37b36ad13205eeb9800353fc4d00054d760812edb435a49c
MD5 c2cadb694b45b2ddc3994680ad162e91
BLAKE2b-256 7bac3989c2233697bcbaeda4c382c9c09f3df83f93d64b599e132e41650c3b5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page