Skip to main content

hashall

PyPI version License: MIT

This library was created to use indexed data structures such as list, tuple, str, bytes, and bytearray with keys like those used in dict (hash table)

Installation

You can install hashall via pip:

pip install hashall

Usage

hlist

from hashall import hlist


x = hlist([1, 2, 3, 4, 5, 6])
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-3])
print(x["-3"])
print(x["three"])
print(x["+three"])
print(x["-three"])

Output

4
4
4
4
4
4
4
4
4

htuple

from hashall import htuple


x = htuple([1, 2, 3, 4, 5, 6])
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-3])
print(x["-3"])
print(x["three"])
print(x["+three"])
print(x["-three"])

Output

4
4
4
4
4
4
4
4
4

hstr

from hashall import hstr


x = hstr("hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])

Output

h
h
h
h
h
h
h
h
h

hbytes

from hashall import hbytes


x = hbytes(b"hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])

Output

104
104
104
104
104
104
104
104
104

hbytearray

from hashall import hbytearray


x = hbytearray(b"hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])

Output

104
104
104
104
104
104
104
104
104

Note

You can use all the methods you've been using with these data structures

License

This project is licensed under the MIT LICENSE - see the LICENSE for more details.

Metadata

Release files for hashall 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hashall 1.0.3
File Size Uploaded Provenance Actions
hashall-1.0.3.tar.gz 3.3 kB Without provenance Details for hashall-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hashall 1.0.3
File Interpreter ABI Platform Actions
hashall-1.0.3-py3-none-any.whl Python 3 none any Details for hashall-1.0.3-py3-none-any.whl

Total release size: 7.4 kB

Release files / hashall-1.0.3.tar.gz

Download URL hashall-1.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
de881e4069bb6eaadc970fe33be9ca941ef69dd0cc24b06dc48c291d0d92fbc2
BLAKE2b-256 checksum
How to use checksums
c85f824e69c4dc4f8927cc36f139735ddc6fdc2959cfd094905543b9bdd9e381
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Release files / hashall-1.0.3-py3-none-any.whl

Download URL hashall-1.0.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c27abe29358b7ed3871d8a6616ef13591d95b3c27ee93420acb7b118c8fbe33
BLAKE2b-256 checksum
How to use checksums
8c17e3cdd21abf34a9d081752942ccc4d00896392ec158407bd0c9ed9712185d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Security for hashall 1.0.3

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.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files No provenance

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