You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-hashids-1.3.1-1.lbn36.noarch

python3-hashids-1.3.1-1.lbn36.noarch

Package Attributes
RPM  python3-hashids-1.3.1-1.lbn36.noarch.rpm Architecture  noarch Size  23956 Created  2024/01/21 13:50:59 UTC
Package Specification
Summary Implements the hashids algorithm in python. For more information, visit http://hashids.org/
Group Unspecified
License ZPL
Home Page https://pypi.org/project/hashids
Description

A python port of the JavaScript hashids implementation. It generates YouTube-like hashes from one or many numbers. Use hashids when you do not want to expose your database ids to the user. Website: http:/www.hashids.org/

Compatibility hashids is tested with python 2.7 and 3.5–3.8. PyPy and PyPy 3 work as well.

Compatibility with the JavaScript implementation

hashids/JavaScript hashids/Python

v0.1.x v0.8.x

v0.3.x+ v1.0.2+

The JavaScript implementation produces different hashes in versions 0.1.x and 0.3.x. For compatibility with the older 0.1.x version install hashids 0.8.4 from pip, otherwise the newest hashids.

Installation Install the module from PyPI, e. g. with pip: pip install hashids pip install hashids==0.8.4 # for compatibility with hashids.js 0.1.x

Run the tests The tests are written with pytest. The pytest module has to be installed. python -m pytest

Usage Import the constructor from the hashids module: from hashids import Hashids hashids = Hashids()

Basic Us

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
rpmlib(FileDigests)  
Provides
python-hashids
python3-hashids
python3.10-hashids
python3.10dist(hashids)
python3dist(hashids)
Obsoletes
python-hashids

Document Actions