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=[...]))
Metadata
Release files for customtimsort 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| customtimsort-1.1.2.tar.gz | 30.0 kB | Without provenance | Details for customtimsort-1.1.2.tar.gz |
Release files / customtimsort-1.1.2.tar.gz
| Download URL | customtimsort-1.1.2.tar.gz |
|---|---|
| Size | 30.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68085d5da897601bb7115893b28bd10459c64c616baa86674e9aa62a968ca5a5
|
|
BLAKE2b-256 checksum How to use checksums |
dfbc388c9dc7ef8e8ae67a279fb01ac53cf281bd9758dc9298989315ba157634
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
|
Security for customtimsort 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.