Skip to main content

Python SDK for Fider.io v1 api

Project description

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.

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

fider_py-0.0.4.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

fider_py-0.0.4-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file fider_py-0.0.4.tar.gz.

File metadata

  • Download URL: fider_py-0.0.4.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fider_py-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3e1cbbdb68c01066c8888b9c9bff5c192c5cbe72d83f0a0f160aa367d9b9f0d3
MD5 a957d8335ff26f5f86d58e484d97dacf
BLAKE2b-256 5231c5c27ed37d1ad4d7fbfc6dc5450eff5c2478f6832671483b73f529cf3f5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for fider_py-0.0.4.tar.gz:

Publisher: main.yml on nickatnight/fider-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fider_py-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: fider_py-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fider_py-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 79bf15ab79885ab2ff7ca1ddf4e1674b9c49fb467a5433714c827e5dc53da208
MD5 77afe9bf01727b599665219201d19e21
BLAKE2b-256 702aba06b79c3c31b55ea4539d3ddab4fa200ff1b8d136f7b13925c191c052b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for fider_py-0.0.4-py3-none-any.whl:

Publisher: main.yml on nickatnight/fider-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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