Skip to main content

No project description provided

Project description

Real

Real is a Python class designed to calculate the real screen size, including the width, height, and area, based on the diagonal measurement and aspect ratio of the screen. This can be especially useful for calculating the dimensions of TVs, monitors, or other displays.

Features

  • Calculate Screen Dimensions: Determine the width, height, and area of a screen given its diagonal size and aspect ratio.
  • Support for Custom Aspect Ratios: Easily handle any aspect ratio provided in the format width:height.

Installation

pip install realscreenPy

Usage

Here's a basic example of how to use the Real class:

from realscreenPy import Real

# Example usage
screen = Real(10, "16:9")
print(screen)

# Get measurments individually
width = real.get_dimensions()["width"]
height = real.get_dimensions()["height"]
area = real.get_dimensions()["area"]

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

realscreenpy-1.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

realscreenPy-1.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file realscreenpy-1.0.1.tar.gz.

File metadata

  • Download URL: realscreenpy-1.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for realscreenpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 565258f79a31e5c00a944d542c9033865cdc87ae91200d7f58f47c35e62df05f
MD5 53f43c1c03609eb60e88e38871cd1a5e
BLAKE2b-256 1a572265c90b5fc69b8a492d9b7ef8608a24ca8d5a405ba33c306b48af1ac764

See more details on using hashes here.

File details

Details for the file realscreenPy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: realscreenPy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for realscreenPy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f30c7854ce31c5340ded90407b1319b1e7e8d3239dbd6d7abdd64d8bd1cd3d4d
MD5 e5103a2fa9a0797ef359e95d8abdf8ca
BLAKE2b-256 21100aa1414a18bf72de2d65db444035ae7f9d5913a3449b4323dcc3f523d907

See more details on using hashes here.

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