Skip to content

nickatnight/fider-py

Repository files navigation

fider-py

GitHub Actions status Coverage PyPi Shield Python Versions Shield Read The Docs Badge License Shield

Features

  • 🗣️ Fider api routes, including current beta
  • ♻️ Retry Strategy Sensible defaults to reliably retry/back-off fetching data from coingecko
  • ✏️ Code Formatting Fully typed with mypy and code formatters black / isort
  • ⚒️ Modern tooling using uv, ruff, and pre-commit
  • 📥 GitHub Actions CI/CD to automate everything
  • ↩️ Code Coverage Fully tested using tools like Codecov
  • 🐍 Python Support All minor versions from 3.10 are supported

Installation

$ pip install fider-py

Usage

>>> from fiderpy import Fider

# unauthenticated client
>>> client = Fider(host="https://demo.fider.io")

# all API responses are wrapped in a FiderAPIResponse instance
>>> client.posts.get_posts()  # default limit is 30
FiderAPIResponse(
    message="Successfully fetched data.",
    data=[
        Post(
            id=1,
            number=1,
            title="Test Post",
            slug="test-post",
            description="This is a test post",
            created_at="2021-01-01T00:00:00Z",
            user=User(
                id=1,
                name="John Doe",
                role="admin"
            ),
            has_voted=False,
            votes_count=0,
            comments_count=0,
            status="open",
            response=None,
            tags=["test"]
        ),
    ],
    errors=None
)

Documentation

See full documentation with examples here.