semvec/pypi-packages huggingface dataset:
python-aid 0.2.2
python-aidはMisskeyのaid/aidxのPython向けの実装です。
License: MIT
Requires Python: >=3.9

# python-aid
`python-aid`は、Misskeyで利用可能なIDアルゴリズムを実装して利用できるようにしたPythonライブラリです。

## aid/aidxとは？
Misskeyで利用されているID生成アルゴリズムです。ミリ秒単位の精度があります。

## Example
### aid
```python
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
```python
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
```python
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
```python
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'))
```
## 試す
[python-aid sandbox](https://codepiece.pages.dev/?state=N4Igxg9gJgpiBcIBmAnCBbABABwJ4BcALCAOwH0BDASykyvWwhX02qgA8AdE7gcxhIwUFfDFoBeVjXYA6fiQCC0gBQBKbthRUS%2BZZxBt28TPswBqTPKEix6niU3bd%2B%2FPRjHTFwzOwUUAZxglDmUrYVEoVRl%2FfBQkV3QYZQByAFIATQBaVPRs2lSACXhUgFligGUZVKRk1VUQABoQXzAAawp%2BfwQAbWaCYhJMthAAXSb8P358BBAYqAgAV2mm%2BYB3EgAbCAooLvhukYBfIA%3D%3D)
is-odd-ai 0.0.2.post1
Check if a number is odd or even using AI
License: MIT
Requires Python: >=3.8
Keywords: odd, even, is odd, is even, is odd ai, is even ai, ai

# is-odd-ai
![PyPI - Version](https://img.shields.io/pypi/v/is-odd-ai)

A project inspired by the npm version [`is-odd-ai`](https://github.com/rhettlunn/is-odd-ai)

`is-odd-ai` uses OpenAI's GPT-4o-mini model to determine if a number is odd or even. AI to the moon 🚀🚀🌝!

## Installation
To install `is-odd-ai`, use pip:
```
pip install is-odd-ai
```

## Usage
To use `is-odd-ai`, you will need an OpenAI key.

Here is an example.
```py
from is_odd_ai import OddChecker

odd_checker = OddChecker("api key here")
odd_checker.is_odd(5) # True
odd_checker.is_odd(6) # False
odd_checker.is_odd("abc") # Hopefully a ValueError. AI to the moon!
```

## Contributing
Be part of this project! Open to contributions.

## License
MIT License.