Unique ids generator implemented in rust
Project description
idika
A simple unique ids generator for python implemented in rust
Algorithms / Implimentations
- cuid2
- sonyflakes
Installation
pip install idika
cuid2
import idika
# generate one id
# 10 -> id length
idika.with_cuid(10)
# output: o13q75qk9q
# generate multiple ids
# 10000 -> Count , 10 -> length
idika.n_with_cuid(1000, 10)
"""
output:
[
'mdse9rnpj1',
'ub324hvoxm',
'f1rcv9ysrr',
'jzeweia5ut',
'k12lt092sc',
'k11j9jpbb7',
...10000
]
"""
# Pipe
# Run a certain function on all ids generated.
def process_id(id):
# doing some processing
# ... e.g database calls
print(id)
idika.n_with_cuid(1000, 10).pipe(process_id)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file idika-0.3.1.tar.gz.
File metadata
- Download URL: idika-0.3.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38f90eff416b7daa7fb4e00e0df6e52389e43a74493e50ddaca2ac136971c3a4
|
|
| MD5 |
f9154dd5418ce425653b9553d7d6701f
|
|
| BLAKE2b-256 |
912cc5124878a4a702a381aab835061973aa9722a6574dbfbf4b1a5dd701aa3d
|
File details
Details for the file idika-0.3.1-cp37-abi3-win_amd64.whl.
File metadata
- Download URL: idika-0.3.1-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 211.9 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd4b220c5d3982fe9836777b6269c63e6ceafe705a5dd4e86dfca9c6ad117288
|
|
| MD5 |
9d5b7c1dfd07ad3b69bea309d6bbb677
|
|
| BLAKE2b-256 |
e61fcd1f2e7159d120471fbdecf874e89c88a2e272d274e026b225f22ab94786
|
File details
Details for the file idika-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: idika-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 537.8 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97f35344561d9d876b82c6328d2d73fa60cb43c0000c2d644bebc282c300a7da
|
|
| MD5 |
5267f0b26a7666a0f05597dfbf72a296
|
|
| BLAKE2b-256 |
78fe0425efc70533252476ee65e07cdd9ee15dfeb0b07030f8b0d92618138e0b
|
File details
Details for the file idika-0.3.1-cp37-abi3-musllinux_1_2_i686.whl.
File metadata
- Download URL: idika-0.3.1-cp37-abi3-musllinux_1_2_i686.whl
- Upload date:
- Size: 572.1 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f536726c6faff7746f8082cc3159693b2c425d331763a2a6af8eb34f1839632
|
|
| MD5 |
d9b3193da6ef3d0fb7f1e08ef79f5c89
|
|
| BLAKE2b-256 |
2b53c0a1d9cfe7ebe37e1c0b2e29336c6a0482ce02547918766e7a3f640a5c71
|
File details
Details for the file idika-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: idika-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 375.2 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31c6edb4878ecfaad0bd06537d56a60ceba26709003ded4d8a123ea43df0ff96
|
|
| MD5 |
ac31336defdc5397f610991e9d20db05
|
|
| BLAKE2b-256 |
234b3c83abb34a9d7a23fc5f2aefac024ef85e1b90cc14ee6ded47f0663e5483
|
File details
Details for the file idika-0.3.1-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: idika-0.3.1-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 397.8 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29425308e26472d824532510eac93411cb7a138f6281caa138ef2b61cd5e849a
|
|
| MD5 |
34dc903df12c0cabf282524c2ea262a5
|
|
| BLAKE2b-256 |
d5f1d10ec579fb0b5d60666d1518ebdc360b7c5521b863e11e5fd1cb4f0d6e72
|
File details
Details for the file idika-0.3.1-cp37-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: idika-0.3.1-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 319.6 kB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dde993199fbece237f724dbbc14998518c2629f88dd5c1815015168d7f2dbd97
|
|
| MD5 |
f1807e8bcd63b37b52b5642da90d44e4
|
|
| BLAKE2b-256 |
c09d391e116d47bf3ef5119b69ea296d3f0766fb068e28b10a113f67d3c6eab0
|
File details
Details for the file idika-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: idika-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 323.1 kB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff9c0978bf0640930511cd46a27aac46661b67530f003aa457263c7678f91736
|
|
| MD5 |
1c98f6334badd060fe920cbe7a8bab37
|
|
| BLAKE2b-256 |
6c9e6455f0f723dc36720b72fcdd2c6431253e57cc136dd472c9b9457465e38a
|