Skip to main content

A Python API wrapper for Sleeper Fantasy sports, as well as tools to simplify received data.

Project description

GitHub GitHub issues PyPI

sleeper-api-wrapper

A Python API wrapper for Sleeper Fantasy Sports, as well as tools to simplify data received. It makes all endpoints found in the Sleeper API docs: https://docs.sleeper.app/ available and turns the JSON response received into Python types for easy usage.

Ownership was transferred from @SwapnikKatkoori to @dtsong in March 2022 to continue efforts. Original Repository: https://github.com/SwapnikKatkoori/sleeper-api-wrapper

Table of Contents

  1. Project Roadmap
  2. Installation
  3. Documentation
  4. Notes
  5. Dependencies
  6. License

Project Roadmap

  • Establish solid CICD practices with automated testing and validation of pull requests via GitHub Actions
  • Ensure libraries are up to date and secure.
  • Update endpoints and logic with the current Sleeper API docs
  • Investigate performance optimization (effort, implementation, etc)

Want to help? Send me a message to @dtsong

Install

pip install sleeper-api-wrapper

Documentation

There are five objects in the package that get data from the Sleeper API. Most of them are intuitive based on the Sleeper API docs, but full documentation for the Python objects and their methods can be found in the docs folder. There are some bespoke methods for transforming the data into more useful structures in addition to the methods that directly call the API.

Notes

This package is intended to be used by Python version 3.8 and higher. There might be some wacky results for previous versions.

Dependencies

requests

  • Used for all http requests in sleeper_wrapper

pytest

  • Used for all testing in sleeper_wrapper

License

This project is licensed under the terms of the MIT license.

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

sleeper_wrapper-1.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

sleeper_wrapper-1.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file sleeper_wrapper-1.1.0.tar.gz.

File metadata

  • Download URL: sleeper_wrapper-1.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.1 Darwin/22.2.0

File hashes

Hashes for sleeper_wrapper-1.1.0.tar.gz
Algorithm Hash digest
SHA256 845151186cbbc63694b45ac4e3676ec640c28fa7d6ee2b3b31989a800ac27a1b
MD5 6c5ec35ffb61c0433e08898ffd5b7983
BLAKE2b-256 e4c98761439e340d055c054cb3f696ecf4a8f4d8e25485743aa978d89576895b

See more details on using hashes here.

File details

Details for the file sleeper_wrapper-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: sleeper_wrapper-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.1 Darwin/22.2.0

File hashes

Hashes for sleeper_wrapper-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0dbad50b3469a6929aebbef644a99fa26c82092b4dc1013b7e7d8c15fb01d11
MD5 d5390c3366139b40be51fef5cd420993
BLAKE2b-256 ea35a240a445d2b30759706e23e7560c510793a3923c5a8a75a57390dba30ab6

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