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.2

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.2
File Size Uploaded Provenance Actions
sleeper_api_wrapper-1.2.2.tar.gz 9.1 kB Without provenance Details for sleeper_api_wrapper-1.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 19.7 kB

Release files / sleeper_api_wrapper-1.2.2.tar.gz

Download URL sleeper_api_wrapper-1.2.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8e69a8ef136ba040da2fa9c40cebdd4d2788a71caf38e58dc91ce0918d24e870
BLAKE2b-256 checksum
How to use checksums
c706b63b6aeb972e569632be2240c0a9c292febedcc8b7c1585fbc93554459a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.1 Darwin/22.6.0

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

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

Security for sleeper-api-wrapper 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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