ID-Service is a 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
Gunicorn
options byidservice-start --help
API Endpoint
Several endpoints:
/id/snowflake
/id/random/64
/id/uuid
Browse /docs
(default to http://localhost:8000/docs) to read all APIs.
Configuration
Environment variable:
Environment Vars | Usage | Default |
---|---|---|
ID_SERVICE_MACHINE_ID |
Snowflake Machine ID (10 bits integer) | 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-0.4.0.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for idservice-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b46bd919134cf2780711d7888ee51435b1e0552d7f42bbbcbffcb1e2d154aa9 |
|
MD5 | 986d635f1156310b142d76b3e50db32f |
|
BLAKE2b-256 | 473de4f8da85e77b93ea1fd510424d30d59676c966b5c665a958cede7b25563b |