Skip to content

Commit ef4d017

Browse files
committed
Update README.rst
1 parent 09f24e8 commit ef4d017

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Easy mode:
2121
2222
from sonyflake_turbo import SonyFlake
2323
24-
sf = SonyFlake(0x1337, 0xCAFE)
24+
sf = SonyFlake(0x1337, 0xCAFE, start_time=1749081600)
2525
2626
for _, id_ in zip(range(10), sf):
2727
print(f"{id_:016x}")
@@ -79,6 +79,10 @@ you won't get much performance gain from multithreaded usage. Consider
7979
creating generators per thread instead of sharing them across multiple
8080
threads.
8181

82+
This library also contains pure-Python implementation as a fallback in case of
83+
C extension unavailability (e.g. with PyPy or when installed with
84+
``--no-binary`` flag).
85+
8286
Development
8387
===========
8488

@@ -102,3 +106,9 @@ Building wheels:
102106
103107
pip install cibuildwheel
104108
cibuildwheel
109+
110+
Building ``py3-none-any`` wheel (without C extension):
111+
112+
.. code-block:: sh
113+
114+
SONYFLAKE_TURBO_BUILD=0 python -m build --wheel

0 commit comments

Comments
 (0)