Implementation in Python that can generate and convert the aid/aidx used in Misskey.
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'))
aidx
from python_aid import aidx
generated = aidx.genAidx()
print("aidx: " + generated)
print("time: " + aidx.parseAid(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.1.0.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for python_aid-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79aa838782323b3cce3b64bfbb67c90c2c07c3d638f40e54b324822e7b02c7a6 |
|
MD5 | 269624bf8dc8cb675747189e88aaf356 |
|
BLAKE2b-256 | 6ba11dab504c9c6d44b0ce0026d9c65687c2709fa508cd4e12897bb98a2209ed |