Skip to main content

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 by idservice-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


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)

Uploaded Source

Built Distribution

idservice-1.2.3-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page