Skip to main content
## Installation
1. Get the code: pip install uidgenerator-utils
2. Add "uidgenerator" to your INSTALLED_APPS


## Usage

* To use it in your model class:

```
from django.db import models
from uidgenerator.models import UIDField

class Tag(models.Model):
tag_id = UIDField(primary_key=True)
....
```

* if you want to change the default configuration, alter the parameter in settings:

```
UIDGENERATOR_START_TIMESTAMP = 1514736000000 #2018-1-1 0:0:0
UIDGENERATOR_REGIONIDBITS = 3
UIDGENERATOR_WORKERIDBITS = 10
UIDGENERATOR_SEQUENCEBITS = 10

UIDGENERATOR_REGIONID = 1
UIDGENERATOR_WORKERID = 1
```

Metadata

Release files for uidgenerator-utils 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uidgenerator-utils 0.4.1
File Size Uploaded Provenance Actions
uidgenerator_utils-0.4.1.tar.gz 2.9 kB Without provenance Details for uidgenerator_utils-0.4.1.tar.gz

Release files / uidgenerator_utils-0.4.1.tar.gz

Download URL uidgenerator_utils-0.4.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9282f00a14eab7b8341a930aea33b68202375c4305639439755f43d8ab871afd
BLAKE2b-256 checksum
How to use checksums
ba750e1eea6125896b808c332adddabad8943fc79f1618255454b176d2276ff6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for uidgenerator-utils 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page