Skip to main content

xid codecov

A Python 3.8+ port of https://github.com/rs/xid.

Install

pip install py-xid

Usage

from 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 py-xid 1.0.0

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

Source distribution (sdist)

Source distribution for py-xid 1.0.0
File Size Uploaded
py-xid-1.0.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-xid 1.0.0
File Interpreter ABI Platform
py_xid-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / py-xid-1.0.0.tar.gz

Download URL py-xid-1.0.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
82e5bbdab92d104fcc2bcb95a169ecaf126e72f838f0da6900efd9a1323ed05f
BLAKE2b-256 checksum
How to use checksums
1b3c17dfdf554ba119b313f1da475f46be2f4e85a1aa137e36e019fd831d2a4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / py_xid-1.0.0-py3-none-any.whl

Download URL py_xid-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
759375239460ff9bebbf277fb469b2147236049268295a3708280818b806476b
BLAKE2b-256 checksum
How to use checksums
218e113870495d82c4f190bf9b994b4895beee7abe507a68ceef0b3420004fef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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