OOP and DRY: Best practice for sharing imported libraries and global variables between a parent and child class in different files?

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

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • PRAW

    PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

  • The example you give is a pretty good one for just having a module full of little helpers, like printing the current time. But let's say the method was "age", which took the parent or kid's birthdate and compared it to local time to get their age. The difference is that you need a method that is aware of the instance variables. In that case, then you have a pretty good use case for mixins, https://www.residentmar.io/2019/07/07/python-mixins.html. Here is an example of mixins in the wild: https://github.com/praw-dev/praw/tree/master/praw/models/listing/mixins

  • 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
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

  • PRAW documentation

    1 project | /r/test | 1 Nov 2023
  • Testing

    1 project | /r/rustypiminecraft | 30 Oct 2023
  • `resubmit=False` started resubmitting duplicate URLs Jul 24 2023

    1 project | /r/bugs | 3 Aug 2023
  • Just curious which person is the most popular user flair.

    1 project | /r/taskmaster | 10 Jul 2023
  • How to use use Praw library with access and refresh tokens?

    1 project | /r/redditdev | 2 Jul 2023