Official zero-dependency Python client for Silasyn UID Studio Pro with automatic offline fallback.
Project description
Silasyn UID Studio Pro - Python Client
Official, zero-dependency Python client for generating secure, customizable unique identifiers using the Silasyn UID Studio Pro API.
Features
Zero Dependencies: Built entirely on Python's native standard libraries (urllib, json, uuid, secrets, time). No need to install requests.
Automatic Offline Fallback: If the API endpoint at silasyn.com is unreachable (due to network, firewall, or DNS issues), the client automatically switches to a high-precision local generation engine to guarantee 100% uptime.
Highly Customizable: Supports UUIDv4, UUIDv7 (Time-ordered), NanoID, Hexadecimal, Pure Numeric, and Custom pools with prefixes, suffixes, custom casings, and formatting.
Installation
Install the package from PyPI:
pip install silasyn-uid
Quick Start
from silasyn_uid import UIDStudio
# 1. Generate standard UUIDv4
uuids = UIDStudio.uuid4(count=2)
print(uuids)
# 2. Generate Time-ordered UUIDv7
uuid7s = UIDStudio.uuid7(count=1)
print(uuid7s)
# 3. Generate NanoIDs with a prefix
nanoids = UIDStudio.nanoid(count=3, length=12, prefix="user_")
print(nanoids)
# 4. Generate custom hexadecimal keys
custom_keys = UIDStudio.custom(pool="ABCDEF1234567890", count=2, length=16, hyphens=True)
print(custom_keys)
Configuration Parameters
The core generate method accepts the following arguments:
Parameter
Type
Default
Description
format_type
str
"uuid4"
Options: "uuid4", "uuid7", "nanoid", "hex", "numeric", "custom"
count
int
1
Number of identifiers to generate (Max: 5000)
length
int
21
Overall length of generated string (ignored for UUIDs)
prefix
str
""
Optional string to prepend
suffix
str
""
Optional string to append
hyphens
bool
True
Group characters into blocks separated by hyphens
casing
str
"mixed"
Set character case: "mixed", "lower", "upper"
custom_pool
str
""
Alphanumeric pool used only when format_type="custom"
License
Copyright © 2026 Silasyn. All rights reserved.
Distributed under the MIT License. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 silasyn_uid-1.0.0.tar.gz.
File metadata
- Download URL: silasyn_uid-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6d5a31e3b822c7d14f718a939a672aa1f832ddc035911612780d3f6b89c1d1b
|
|
| MD5 |
d8e8d90c74945d8ecb41411a447f1885
|
|
| BLAKE2b-256 |
e1a4257c627e8f3360fd0bca78f2821314a40c97e424cb1fd4eb6bc57911ee1e
|
File details
Details for the file silasyn_uid-1.0.0-py3-none-any.whl.
File metadata
- Download URL: silasyn_uid-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a820c4afa810c77ae0725b2a74e9d2bd10545e803879a27a23b3294cfc791905
|
|
| MD5 |
265f10171cbfab2398efc7f6f966d5d2
|
|
| BLAKE2b-256 |
5e48c4dd125eb01ffc4678aa29e657c4851ac4544e4466f7dbc138d920c88ec9
|