python-aid
python-aidは、Misskeyで利用可能なIDアルゴリズムを実装して利用できるようにした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'))
試す
Metadata
Release files for python-aid 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_aid-0.2.2.tar.gz | 3.4 kB | Without provenance | Details for python_aid-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_aid-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for python_aid-0.2.2-py3-none-any.whl |
Total release size: 8.1 kB
Release files / python_aid-0.2.2.tar.gz
| Download URL | python_aid-0.2.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4af3e27184ad0ea873ca6f5b8fbd22da1fbb45eedeb6a5761c17d25f99d01472
|
|
BLAKE2b-256 checksum How to use checksums |
c6fed93083ff19e7644d2d393c9cae533bb5254ac345f764634fd27c167a709f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.19.1 CPython/3.12.6 Windows/10
|
Release files / python_aid-0.2.2-py3-none-any.whl
| Download URL | python_aid-0.2.2-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3230d5927a586d22f069d0bb8e5eff85d7e6343b02c7ac14700e9b6d1ed4e5d2
|
|
BLAKE2b-256 checksum How to use checksums |
3d0c97eb00757664658de2476959182c884c6462bd0ee851e6e1bf793ad8d255
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.19.1 CPython/3.12.6 Windows/10
|
Security for python-aid 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.