What's the difference between using and not using wrapper libraries for APIs?

This page summarizes the projects mentioned and recommended in the original post on /r/learnpython

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • pokebase

    Python 3 wrapper for Pokéapi v2

  • On the documentation, it includes a list of wrapper libraries for various languages. The wrapper for Python 3 is pokebase. I'm just learning to use APIs and have not used wrappers before. I read a bit about them but I'm still a bit confused.

  • dacite

    Simple creation of data classes from dictionaries.

  • This is a good approach, but FYI there are already very good libraries that can be used to create objects from JSON/dicts in a similar way to your example, like dacite or pydantic. A lot of boilerplate can be avoided with these.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • pydantic

    Data validation using Python type hints

  • This is a good approach, but FYI there are already very good libraries that can be used to create objects from JSON/dicts in a similar way to your example, like dacite or pydantic. A lot of boilerplate can be avoided with these.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts