Socket
Book a DemoInstallSign in
Socket

icakad

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icakad

Utilities and tools for my apis and other life hacks.

pipPyPI
Version
0.1.1
Maintainers
1

icakad

Lightweight utilities for encoding integers into short, URL-friendly tokens.

Installation

pip install icakad

Quickstart

from icakad import ShortURL, encode, decode, ShortURLConfig

token = encode(12345)
assert decode(token) == 12345

custom = ShortURL(ShortURLConfig(alphabet="abcd", min_length=6))
assert custom.encode(5) == "aaaabd"

Features

  • Zero-dependency implementation with a configurable alphabet
  • Encode and decode helpers plus a reusable ShortURL codec
  • Optional minimum length padding for consistent token sizes

Development

To build the package locally:

python -m build

Run tests (if you add them) with:

python -m pytest

Keywords

icakad

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts