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 (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.3.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file idservice-0.3.0.tar.gz
.
File metadata
- Download URL: idservice-0.3.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 | 7bfd055d1dd55609409c68afab53459b982397d72ee62940005af42f5df1c3f0 |
|
MD5 | 47f233983c26ac3138c473f95a477e80 |
|
BLAKE2b-256 | 5a44da6000d9fa412de3a4ef35670d5f8df6c2db0e4d9aa8b365b1455427f077 |
File details
Details for the file idservice-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: idservice-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.0 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 | 8349552892bd1317a71c299b5b4e0b9d95f46067681f162dd645a086733131cb |
|
MD5 | 84569eb2cd7fc65b7cf90ec20bd291d0 |
|
BLAKE2b-256 | dc1923dcc085e6488f98bd2b02d808f660fd7bfb064e69517c6330a6bca1be53 |