Skip to main content

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.

Metadata

Release files for sleeper-api-wrapper 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sleeper-api-wrapper 1.2.1
File Size Uploaded
sleeper_api_wrapper-1.2.1.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sleeper-api-wrapper 1.2.1
File Interpreter ABI Platform
sleeper_api_wrapper-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / sleeper_api_wrapper-1.2.1.tar.gz

Download URL sleeper_api_wrapper-1.2.1.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
96f55a391d996926ea2eeb125bf34bd14981d865102955fdd6a944c483786b52
BLAKE2b-256 checksum
How to use checksums
364407ffc300d4d2e6f16aa8b49478df6f1040632672c4a11d2b89065172485d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.1 Darwin/22.2.0

Release files / sleeper_api_wrapper-1.2.1-py3-none-any.whl

Download URL sleeper_api_wrapper-1.2.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be424b841b420b36671bec81473515b9ddd2e252eb708788a3d689cfa600b11a
BLAKE2b-256 checksum
How to use checksums
acc2fcdfd761cc9180041bbc118f037b734187648baa29b2155edc4f51ab64a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.1 Darwin/22.2.0

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.1.0

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

1 release file

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page