Distributed ID Service 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
(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 (0-255) |
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.1.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file idservice-0.1.0.tar.gz
.
File metadata
- Download URL: idservice-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7902d692b63b1d6d8073301506439ca359963196bf9485fc65b6f2f203b6dfa |
|
MD5 | 401f3ed8ac8c0e6f9eea588ebcaa1610 |
|
BLAKE2b-256 | 6ad31e8e393ce1e63a3541b2b7d236c2ffc5ac578d63b10159e7170c777914e4 |
File details
Details for the file idservice-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: idservice-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5817293217b6b33b8b06f75cf8c3b5babae401ecc74f35dff5b9750b992f888 |
|
MD5 | 7de39b768480c1ce6f9c31748116fa08 |
|
BLAKE2b-256 | 5ffe803668416b45ff1bfec983b100deec7ac3c358f4f7d49e4bd7cee0dd337e |