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.5.tar.gz (14.8 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.5-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fider_py-0.0.5.tar.gz
  • Upload date:
  • Size: 14.8 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.5.tar.gz
Algorithm Hash digest
SHA256 5327080e6872303f252ca8f2fb743f6d46cbd9fc2b6856afc996b83e5a6c8608
MD5 de8554528973eb43c43164d6bcaef9f2
BLAKE2b-256 b8596bd81fec4d1d69c5a6ded6a4c6eb2f9bfe6380e511e1e6062e785b86e9d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fider_py-0.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: fider_py-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 26.7 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f529ea6afae0c35f120b6351ecdf93f311e05fa6ec6047be04d7b47b54b4b4f7
MD5 a8c6dfa3ab47ea4ed634e213bcff4370
BLAKE2b-256 5dcc485ea0dc868953e14bb42e1dc02951429684c2d14cb15bb5a9c15367c905

See more details on using hashes here.

Provenance

The following attestation bundles were made for fider_py-0.0.5-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