Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

customtimsort

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

customtimsort

Timsort sorting algorithm with custom minrun

  • 1.1.2
  • PyPI
  • Socket score

Maintainers
1

CustomTimSort

CustomTimSort is a library where you can sort python objects using custom minruns.

Github: https://github.com/lehatrutenb/CustomTimSort

How to use:

from customtimsort import timsort, get_minrun

minrun = get_minrun(len(yours_object))
timsort(yours_object, minrun)

get_minrun(array_size: int, path_to_data: string, model_name: string) -> int

Returns array of predicted minruns for given sizes

:param array_size: array with sizes of arrays we want to predict minrun to

:param path_to_data: name of json file with keys mean, std, standard: "data.json" - you can get it from my gihub reposiroty (dirictory models)

:param model_name: name of model that will predict minrun, standard: "standard_model" - you can get it from my github repository (dirictory models)

timsort(yours_object: some iterable obj, minrun: int) -> int

Sorts yours_object using given minrun

:param yours_object: something that you want to sort (but you can't use timsort(yours_object=[...]))

:param minrun: timsort parameter for sorting (but you can't use timsort(minrun=[...]))

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc