get screen resolution without using a library

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • 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).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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