Skip to main content

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


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

Uploaded Source

Built Distribution

idservice-0.4.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idservice-0.4.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

Hashes for idservice-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b2c4f9b1575cab0504b08564695de2b25e389e8ee1df432f7d63cf60eaf67554
MD5 70919ff443ce1f3cfa27d424faacad7f
BLAKE2b-256 ee6b23f916c24849250ef8a962cd0f5ef1d77e596ea74c942ecc78650b46fa31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idservice-0.4.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

Hashes for idservice-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b46bd919134cf2780711d7888ee51435b1e0552d7f42bbbcbffcb1e2d154aa9
MD5 986d635f1156310b142d76b3e50db32f
BLAKE2b-256 473de4f8da85e77b93ea1fd510424d30d59676c966b5c665a958cede7b25563b

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