Skip to main content

Calculate the length of the sides that fit into the limited volume

Project description

fitrate

Calculate the length of the sides that fit into the limited volume

Test Coverage Package version


Documentation:

Demo:


fitrate

Requirements

Python 3.6+

Installation

$ pip3 install fitrate

Example

from fitrate import contain

print(contain((200, 200), 60000))
# (244, 244)

print(contain((400, 300), 60000))
# (282, 212)

# -----------

from fitrate import scale-down

print(scale-down((200, 200), 60000))
# (200, 200)

print(scale-down((400, 300), 60000))
# (282, 212)

— 🎞️ —

fitrate is licensed under the terms of the MIT license.

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

fitrate-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

fitrate-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file fitrate-1.0.0.tar.gz.

File metadata

  • Download URL: fitrate-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-1025-azure

File hashes

Hashes for fitrate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dbe7f3b050131fb8d91b32f4a3e8a02cfaf2fc7bfc3d31a1f8af993e8bbb22c1
MD5 4e80332125cd43fb0dc78f834650b101
BLAKE2b-256 769ea4507ab946920c25208225ec471a050c2430c177845b5a36b2be0ae68e45

See more details on using hashes here.

File details

Details for the file fitrate-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fitrate-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-1025-azure

File hashes

Hashes for fitrate-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7066a0fc7260e2d3b81e909827401c4b21a1776c1d4ef7c4e725b994563b296
MD5 84367123a2d9a9ff9fffee67670d46f5
BLAKE2b-256 6aba2e28aea2d808f64073dafbada976d2243e03395532f1a4f4729f18bf698a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page