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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file idservice-1.2.3.tar.gz.

File metadata

  • Download URL: idservice-1.2.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Darwin/20.3.0

File hashes

Hashes for idservice-1.2.3.tar.gz
Algorithm Hash digest
SHA256 e47d1ec6a151eb357bd4dda6cb6e5f79ae9dc9c5ceee5ba289107ecb1786cccb
MD5 624679b37b841904cf08ff987b5d3463
BLAKE2b-256 d8e8cc036971d85996c37b3efd6bc368e0755b0deb564c5ae1d302cd9474251b

See more details on using hashes here.

File details

Details for the file idservice-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: idservice-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Darwin/20.3.0

File hashes

Hashes for idservice-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7135ea40b5cfe4a255b7b99944a157b4f513ca71d28d96f1d5230d3350fd5c64
MD5 9f61ded5572b62073aba1c4a1602af56
BLAKE2b-256 d427a5ff9b28fde8840e1a1ed44daf1152e4d8f6b5c71045c04a7e4d4ec49660

See more details on using hashes here.

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