Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hscspring/uuid-by-string
Generate the RFC-4122 Name-Based UUID.
https://github.com/hscspring/uuid-by-string
Last synced: 7 days ago
JSON representation
Generate the RFC-4122 Name-Based UUID.
- Host: GitHub
- URL: https://github.com/hscspring/uuid-by-string
- Owner: hscspring
- License: apache-2.0
- Created: 2020-09-14T03:23:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T04:14:54.000Z (about 4 years ago)
- Last Synced: 2024-10-18T00:48:38.394Z (26 days ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uuid-by-string
Generate the RFC-4122 Name-Based UUID. Supports 3 (md5) and 5(sha1) versions of UUID. Referenced from [danakt/uuid-by-string: Generates the RFC-4122 Name-Based UUID](https://github.com/danakt/uuid-by-string).## Install
```bash
$ pip install uuid-by-string
```## Usage
```python
from uuid_by_string import generate_uuiduuid = generate_uuid("a string")
# 555d01e6-c832-56b3-a9f9-2bd811905370
uuid_v3 = generate_uuid("❤️", version=3)
# 080c1417-9a0e-3386-a131-a7fa8dbe2c51
uuid_v5 = generate_uuid("❤️", 5)
# f11c13f0-5595-551d-bdee-e6c2e43fd2a9
```