Handle arbitrarily large integers
mainBecause the package leverages Python's arbitrary-precision integers, it can handle extremely high-iteration Hilbert curves. For example, a curve with $p=512$ and $n=10$ can represent coordinates with hundreds of digits and distances with over a thousand digits.
p = 512; n = 10
hilbert_curve = HilbertCurve(p, n)
ii = 123456789101112131415161718192021222324252627282930
point = hilbert_curve.points_from_distances([ii])[0]
print(f'point = {point}')
# point = [121075, 67332, 67326, 108879, 26637, 43346, 23848, 1551, 68130, 84004]