python-aidはMisskeyのaid/aidxのPython向けの実装です。
Project description
python-aid
python-aidはMisskeyのaid/aidxのPython向けの実装です。
aid/aidxとは?
Misskeyで利用されているID生成アルゴリズムです。
Example
aid
from python_aid import aid
generated = aid.genAid()
print("aid: " + generated)
print("time: " + aid.parseAid(generated).strftime('%Y-%m-%d %H:%M:%S.%f'))
With timestamp
from python_aid import aid
generated = aid.genAid(timestamp=1718546963) # 1718546963 = 2024/06/16 23:09:23 (JST)
print("aid: " + generated)
print("time: " + aidx.parseAid(generated).strftime('%Y-%m-%d %H:%M:%S.%f'))
aidx
from python_aid import aidx
generated = aidx.genAidx()
print("aidx: " + generated)
print("time: " + aidx.parseAidx(generated).strftime('%Y-%m-%d %H:%M:%S.%f'))
With timestamp
from python_aid import aidx
generated = aidx.genAidx(timestamp=1718546963) # 1718546963 = 2024/06/16 23:09:23 (JST)
print("aidx: " + generated)
print("time: " + aidx.parseAidx(generated).strftime('%Y-%m-%d %H:%M:%S.%f'))
試す
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_aid-0.2.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for python_aid-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cff94b644aa3d35edf7c4c368626127e1fdf0d382abd263b5b5e0808e023d33 |
|
MD5 | 68314f34bdf6c3c2bf8d6a944e46c94e |
|
BLAKE2b-256 | 51ce4189182974994c8fbf99f0d8814f3fd735c2e0883b76799270ff27ab98f2 |