get screen resolution without using a library

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

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • screeninfo

    Fetch location and size of physical screens.

    Depends how far down the rabbit hole you want to go. Take a look at a library for this, eg https://github.com/rr-/screeninfo/tree/master/screeninfo/enumerators and you see it uses lower level libraries itself. If you really feel you want to implementing syscalls yourself be my guest (eg for win32 see how ctypes is implemented https://github.com/python/cpython/blob/main/Modules/_ctypes/_ctypes.c).

  • CPython

    The Python programming language

    Depends how far down the rabbit hole you want to go. Take a look at a library for this, eg https://github.com/rr-/screeninfo/tree/master/screeninfo/enumerators and you see it uses lower level libraries itself. If you really feel you want to implementing syscalls yourself be my guest (eg for win32 see how ctypes is implemented https://github.com/python/cpython/blob/main/Modules/_ctypes/_ctypes.c).

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • requests

    A simple, yet elegant, HTTP library.

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