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 Provenance Actions
py-xid-1.0.0.tar.gz 5.2 kB Without provenance Details for py-xid-1.0.0.tar.gz

Built distribution (wheel)

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

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

Security for py-xid 1.0.0

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