Skip to main content

A collection of reusable methods.

Project description

Readme

KPCommons is a collection of methods which are regularly needed.

Util

Util.py contains a method to calculate the overlap between two ranges. For example,

Util.calculate_overlap(0, 10, 5, 10)

would return a result of 5. The first two arguments are the start and end position of the first range, and the last two arguments are the positions of the second range.

Note: In case of no overlap, the distance between the two ranges is returned as a negative result.

Footnote

Footnote.py contains a collection of methods for working with footnotes.

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

KPCommons-0.0.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

KPCommons-0.0.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file KPCommons-0.0.2.tar.gz.

File metadata

  • Download URL: KPCommons-0.0.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for KPCommons-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b092e530e709395b78ab0d09d6f86cfc6d174e9e0d019ddeddfa43a932cab38b
MD5 577dd5854cd060cf2acbb6f119dbb05c
BLAKE2b-256 1cbc9270d66bd85becce0615ed5433974724309aee6c16bda6490bca8b4f4249

See more details on using hashes here.

File details

Details for the file KPCommons-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: KPCommons-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for KPCommons-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0737a4904e185258d3a3999842469fbb3d488c801c29380a85c7c8b2036a0bcd
MD5 2520d7834b097f4257a75e267c132341
BLAKE2b-256 28484cc719e57f005aa4c31e9243829c0676e54e2f3ed262fa41ca7d051b9abd

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