No project description provided
Project description
fast-xid
xid implemenetation in python without rust atomic integer. Lock free.
Install
pip install fast-xid
Usage
from fast_xid import XID
guid = XID()
print(guid.string())
# Output: bsqo1inf38q5alkk85a0
print(guid.machine())
# Output: b'\xef\x1a4'
print(guid.pid())
# Output: 21846
print(guid.time())
# Output: 1597341898
print(guid.counter())
# Output: 9716052
print(guid.bytes())
# Output: b'_5\x80\xca\xef\x1a4UV\x94AT'
print(XID("bsqo1inf38q5alkk85a0"))
# Output: XID('bsqo1inf38q5alkk85a0')
print(XID(b"_5\x80\xca\xef\x1a4UV\x94AT"))
# Output: XID('bsqo1inf38q5alkk85a0')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fast_xid-0.1.0.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fast_xid-0.1.0.tar.gz.
File metadata
- Download URL: fast_xid-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb383c9a0e2dfb842dd06c50c0bcb73706c64d6372e602b3a7f03b727a52dc8c
|
|
| MD5 |
076d8d9a368bdde3c766e81c66e0eb77
|
|
| BLAKE2b-256 |
54f490d2c707ed7c5fc881d37c91973ce576e7a51aa219f843f1269a61ceed15
|
File details
Details for the file fast_xid-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fast_xid-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
add6eab49c1861ccd62daf7cade917f9c5c24db7d006972c1c7cfd597c37ab88
|
|
| MD5 |
b845fe115ce4e254517c1ef59d2d3f77
|
|
| BLAKE2b-256 |
07bd03206439c187006a5c1c732d72843e16a102b8e4e82e2fe1adf189229a1e
|