Skip to main content

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

idika-0.3.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distributions

idika-0.3.1-cp37-abi3-win_amd64.whl (211.9 kB view details)

Uploaded CPython 3.7+ Windows x86-64

idika-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl (537.8 kB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ x86-64

idika-0.3.1-cp37-abi3-musllinux_1_2_i686.whl (572.1 kB view details)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

idika-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (375.2 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

idika-0.3.1-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (397.8 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ i686

idika-0.3.1-cp37-abi3-macosx_11_0_arm64.whl (319.6 kB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

idika-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl (323.1 kB view details)

Uploaded CPython 3.7+ macOS 10.12+ x86-64

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

Hashes for idika-0.3.1.tar.gz
Algorithm Hash digest
SHA256 38f90eff416b7daa7fb4e00e0df6e52389e43a74493e50ddaca2ac136971c3a4
MD5 f9154dd5418ce425653b9553d7d6701f
BLAKE2b-256 912cc5124878a4a702a381aab835061973aa9722a6574dbfbf4b1a5dd701aa3d

See more details on using hashes here.

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

Hashes for idika-0.3.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dd4b220c5d3982fe9836777b6269c63e6ceafe705a5dd4e86dfca9c6ad117288
MD5 9d5b7c1dfd07ad3b69bea309d6bbb677
BLAKE2b-256 e61fcd1f2e7159d120471fbdecf874e89c88a2e272d274e026b225f22ab94786

See more details on using hashes here.

File details

Details for the file idika-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for idika-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 97f35344561d9d876b82c6328d2d73fa60cb43c0000c2d644bebc282c300a7da
MD5 5267f0b26a7666a0f05597dfbf72a296
BLAKE2b-256 78fe0425efc70533252476ee65e07cdd9ee15dfeb0b07030f8b0d92618138e0b

See more details on using hashes here.

File details

Details for the file idika-0.3.1-cp37-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for idika-0.3.1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 7f536726c6faff7746f8082cc3159693b2c425d331763a2a6af8eb34f1839632
MD5 d9b3193da6ef3d0fb7f1e08ef79f5c89
BLAKE2b-256 2b53c0a1d9cfe7ebe37e1c0b2e29336c6a0482ce02547918766e7a3f640a5c71

See more details on using hashes here.

File details

Details for the file idika-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for idika-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31c6edb4878ecfaad0bd06537d56a60ceba26709003ded4d8a123ea43df0ff96
MD5 ac31336defdc5397f610991e9d20db05
BLAKE2b-256 234b3c83abb34a9d7a23fc5f2aefac024ef85e1b90cc14ee6ded47f0663e5483

See more details on using hashes here.

File details

Details for the file idika-0.3.1-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for idika-0.3.1-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 29425308e26472d824532510eac93411cb7a138f6281caa138ef2b61cd5e849a
MD5 34dc903df12c0cabf282524c2ea262a5
BLAKE2b-256 d5f1d10ec579fb0b5d60666d1518ebdc360b7c5521b863e11e5fd1cb4f0d6e72

See more details on using hashes here.

File details

Details for the file idika-0.3.1-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for idika-0.3.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dde993199fbece237f724dbbc14998518c2629f88dd5c1815015168d7f2dbd97
MD5 f1807e8bcd63b37b52b5642da90d44e4
BLAKE2b-256 c09d391e116d47bf3ef5119b69ea296d3f0766fb068e28b10a113f67d3c6eab0

See more details on using hashes here.

File details

Details for the file idika-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for idika-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ff9c0978bf0640930511cd46a27aac46661b67530f003aa457263c7678f91736
MD5 1c98f6334badd060fe920cbe7a8bab37
BLAKE2b-256 6c9e6455f0f723dc36720b72fcdd2c6431253e57cc136dd472c9b9457465e38a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page