Skip to main content

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=[...]))

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

customtimsort-1.1.2.tar.gz (30.0 kB view details)

Uploaded Source

File details

Details for the file customtimsort-1.1.2.tar.gz.

File metadata

  • Download URL: customtimsort-1.1.2.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for customtimsort-1.1.2.tar.gz
Algorithm Hash digest
SHA256 68085d5da897601bb7115893b28bd10459c64c616baa86674e9aa62a968ca5a5
MD5 b429c6e219f0455d1e69ad53febf48eb
BLAKE2b-256 dfbc388c9dc7ef8e8ae67a279fb01ac53cf281bd9758dc9298989315ba157634

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 file

1.1.1

1 file

1.1.0

1 file

1.0.9

1 file

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

0.0.128

1 file

0.0.127

1 file

0.0.126

1 file

0.0.125

1 file

0.0.124

1 file

0.0.123

1 file

0.0.122

1 file

0.0.121

1 file

0.0.120

1 file

0.0.119

1 file

0.0.117

1 file

0.0.116

1 file

0.0.115

1 file

0.0.114

1 file

0.0.113

1 file

0.0.112

1 file

0.0.111

1 file

0.0.110

1 file

0.0.109

1 file

0.0.108

1 file

0.0.107

1 file

0.0.106

1 file

0.0.105

1 file

0.0.104

1 file

0.0.103

1 file

0.0.102

1 file

0.0.101

1 file

0.0.100

1 file

0.0.99

1 file

0.0.98

1 file

0.0.97

1 file

0.0.96

1 file

0.0.95

1 file

0.0.94

1 file

0.0.93

1 file

0.0.92

1 file

0.0.91

1 file

0.0.90

1 file

0.0.89

1 file

0.0.88

1 file

0.0.87

1 file

0.0.86

1 file

0.0.85

1 file

0.0.84

1 file

0.0.83

1 file

0.0.82

1 file

0.0.81

1 file

0.0.80

1 file

0.0.79

1 file

0.0.78

1 file

0.0.77

1 file

0.0.75

1 file

0.0.74

1 file

0.0.73

1 file

0.0.72

1 file

0.0.71

1 file

0.0.70

1 file

0.0.69

1 file

0.0.68

1 file

0.0.67

1 file

0.0.66

1 file

0.0.65

1 file

0.0.64

1 file

0.0.63

1 file

0.0.62

1 file

0.0.61

1 file

0.0.60

1 file

0.0.59

1 file

0.0.58

1 file

0.0.57

1 file

0.0.56

1 file

0.0.55

1 file

0.0.54

1 file

0.0.53

1 file

0.0.52

1 file

0.0.51

1 file

0.0.50

1 file

0.0.49

1 file

0.0.48

1 file

0.0.47

1 file

0.0.46

1 file

0.0.45

1 file

0.0.44

1 file

0.0.43

1 file

0.0.42

1 file

0.0.41

1 file

0.0.40

1 file

0.0.39

1 file

0.0.38

1 file

0.0.37

1 file

0.0.36

1 file

0.0.35

1 file

0.0.34

1 file

0.0.33

1 file

0.0.32

1 file

0.0.31

1 file

0.0.25

2 files

0.0.24

1 file

0.0.23

2 files

0.0.22

1 file

0.0.21

1 file

0.0.20

1 file

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

1 file

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page