File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Easy mode:
2121
2222 from sonyflake_turbo import SonyFlake
2323
24- sf = SonyFlake(0x 1337 , 0x CAFE )
24+ sf = SonyFlake(0x 1337 , 0x CAFE, 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
7979creating generators per thread instead of sharing them across multiple
8080threads.
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+
8286Development
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
You can’t perform that action at this time.
0 commit comments