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')
Metadata
Release files for fast-xid 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fast_xid-0.1.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fast_xid-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / fast_xid-0.1.0.tar.gz
| Download URL | fast_xid-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb383c9a0e2dfb842dd06c50c0bcb73706c64d6372e602b3a7f03b727a52dc8c
|
|
BLAKE2b-256 checksum How to use checksums |
54f490d2c707ed7c5fc881d37c91973ce576e7a51aa219f843f1269a61ceed15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
|
Release files / fast_xid-0.1.0-py3-none-any.whl
| Download URL | fast_xid-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
add6eab49c1861ccd62daf7cade917f9c5c24db7d006972c1c7cfd597c37ab88
|
|
BLAKE2b-256 checksum How to use checksums |
07bd03206439c187006a5c1c732d72843e16a102b8e4e82e2fe1adf189229a1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
|