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'))
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.3.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for python_aid-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 166126281a5b914162136097c083c5a3de50e11957de02de1180b8bc55f29c78 |
|
MD5 | d492a54fd62965ac73a8efb924c38505 |
|
BLAKE2b-256 | 93c46efda3bdbc66efba60bfdc21b4a554b8ae3c654ff1baf1efded1db1042b0 |