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.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for python_aid-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14e99d83b8c5b7606953939212a8ccf6f095a9e9aa7da12b46f667e310c95cb4 |
|
MD5 | 758e580fca15ed4883a1f98af7880337 |
|
BLAKE2b-256 | e717498ae252eea1bfcef1a7dcb998c2e308e8ee6d58669971e04ce383546f04 |