Skip to main content

A Python client for the VSports API

Project description

Vsports API

FILE: /vsports/vsports/README.md

This file contains the documentation for the Vsports API package

The Vsports API is a Python package that provides an interface for interacting with the Vsports API. It allows users to access various endpoints and retrieve sports-related data efficiently.

Features

  • Access to multiple endpoints of the Vsports API.
  • Support for caching using Redis to improve performance.
  • Easy-to-use methods for retrieving events, teams, and other sports data.

Installation

You can install the Vsports API package using pip:

pip install vsports

Usage

Here is a simple example of how to use the Vsports API:

import json
from vsports import VsportsAPI

MYTOKEN = "your_token_here"
redis_config = {
    "host": "localhost", 
    "port": 6379, 
    "db": 0,
    "ttl": 300
}

vsports = VsportsAPI(MYTOKEN, redis_config=redis_config)
result = vsports.events_by_date("2025-01-24", usecache=True)
if result:
    print(json.dumps(result, indent=2))

result = vsports.teams_by_tournament(118, usecache=True)
if result:
    for team in result:
        print(team['name'])

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

vsports-1.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

vsports-1.0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file vsports-1.0.2.tar.gz.

File metadata

  • Download URL: vsports-1.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for vsports-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9ad4eccac1661e4fab0ff85a9ff2c05293667c19c22d7adb00de8c9fbba19b36
MD5 4727a6172e146ede13c7fe2322070203
BLAKE2b-256 0032f72079e718441d27c5d0a8a78856624e3ecbcc3f7ceb121cb55b39e8a591

See more details on using hashes here.

File details

Details for the file vsports-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: vsports-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for vsports-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87d0bb99a476a27d48db04f54fbc740da8506e20385ebaefa191bf8e796864bd
MD5 596c50b10477f51b243fb20df7c7b20d
BLAKE2b-256 25b781f6665fe279a00f987046f00d9267a40ca9ca68255a0f20f5d332984b41

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