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

TBD

TODO

  • Add Votes
  • Add Comments
  • Add Users
  • Add Tags
  • Add Invitations
  • Add base docs site
  • Add Codecov
  • Add PyPI

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.2.tar.gz (12.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.2-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fider_py-0.0.2.tar.gz
  • Upload date:
  • Size: 12.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.2.tar.gz
Algorithm Hash digest
SHA256 7db83ac91f557fcd4904567851ac7497c1c7fa51dd52b1263c255a3f48306885
MD5 55600d59439b79ebc39e7ccc51f07015
BLAKE2b-256 2999488ddb6109b300e1e5383ff60181ef9c284dced642a26ff499ac80931185

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fider_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 22.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e7a08b54acbad8576e672359949d109146080dba3f25a8d22c474c70c638144
MD5 177462dba99d78ad4bf899955645ab6e
BLAKE2b-256 6378cb4982acceabd56784a0d52640e938be7a9eb629c640aba7ba5c5fcbe0ec

See more details on using hashes here.

Provenance

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