Distributed ID generator microservice based on FastAPI
Project description
idservice
ID-Service
is a distributed ID generator microservice based on FastAPI.
Installation
pip3 install idservice
Start Service
idservice-start
List all available
uvicorn
options byidservice-start --help
API Endpoint
Several endpoints:
/api/snowflake
/api/random/64
/api/uuid
Browse /docs
(default to http://localhost:8000/docs) to read all APIs.
Configuration
Environment variable:
Environment Vars | Usage | Default |
---|---|---|
ID_SERVICE_SNOWFLAKE_MACHINE_ID |
Snowflake Machine ID (10 bits) | Random |
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
idservice-1.2.3.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for idservice-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7135ea40b5cfe4a255b7b99944a157b4f513ca71d28d96f1d5230d3350fd5c64 |
|
MD5 | 9f61ded5572b62073aba1c4a1602af56 |
|
BLAKE2b-256 | d427a5ff9b28fde8840e1a1ed44daf1152e4d8f6b5c71045c04a7e4d4ec49660 |