Skip to main content

Id generator require no centralized authority

Project description

NAME

x100idgen - Id generator require no centralized authority

SYNOPSIS

import x100idgen

def get_id(hash_string):
    idgen = x100idgen.IdGen()
    your_id = idgen.gen_id(hash_string)
    return (your_id)

def validate_id(your_id):
    idgen = x100idgen.IdGen()
    if idgen.validate_id(your_id):
        return True
    else:
        return False

if __name__ == '__main__':
    hash_string = "111.206.116.190Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3"
    your_id = get_id(hash_string)
    print("Get id : " + your_id)

    id_valid = str(validate_id(your_id))
    print("The id " + your_id + " is " + id_valid)

Ouput:

Get id : ytmaWHUzDikIGwOLl6
The id ytmaWHUzDikIGwOLl6 is True

DESCRIPTION

x100idgen is an id generator require no centralized authority like uuidgen, shorter and more customizable.

This module helps generate unique ids like ‘ytmaWHUzDikIGwOLl6’ (/^[0-9a-zA-Z]{18}$/) easy and fast.

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

x100idgen-0.2.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file x100idgen-0.2.1.tar.gz.

File metadata

  • Download URL: x100idgen-0.2.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for x100idgen-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f180b81e2cb0210708dc440ff506bb972b55fea4cc666cbabd888aae6ffc3952
MD5 a5c9f95e0402512b6bec0b391bfdf61a
BLAKE2b-256 21f161a072ce5ede8dd91d044a8117086c497a15af61dcb95fe77d4eb73dce59

See more details on using hashes here.

Supported by

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