ebbinghaus-0.2.0
توضیحات
Ebbinghaus remembering curve.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ebbinghaus-0.2.0 |
| نام | ebbinghaus |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | wolfpan |
| ایمیل نویسنده | haoyupan@aliyun.com |
| آدرس صفحه اصلی | https://github.com/pypa/sampleproject |
| آدرس اینترنتی | https://pypi.org/project/ebbinghaus/ |
| مجوز | - |
# ebbinghaus
Ebbinghaus remembering framework, based on python3 and sqlite3.
# Install
```commandline
pip install ebbinghaus
```
# Usage
```python
import ebbinghaus
# Set the database to save data.
ebbinghaus.set_database(':memory:')
# Register a key to ebbinghaus.
ebbinghaus.register(3)
assert ebbinghaus.get_stage(3) == 0
# Check a key exists.
assert ebbinghaus.exists(3)
# Remember the key.
ebbinghaus.remember(3)
assert ebbinghaus.get_stage(3) == 1
# Forget the key for one time.
ebbinghaus.forget(3)
assert ebbinghaus.get_stage(3) == 0
# Get random keys to review.
assert ebbinghaus.random(1) == [3]
```
# History
## v0.2.0
Add method: `ebbinghaus.exists(id)`.
## v0.1.2
Fix bug: add requirements.txt.
## v0.1.1
Fix bug: set_database at a non-exists directory will cause OSError.
Now `set_database` will return the database created inside the function.
## v0.1.0
Build main functions.
نحوه نصب
نصب پکیج whl ebbinghaus-0.2.0:
pip install ebbinghaus-0.2.0.whl
نصب پکیج tar.gz ebbinghaus-0.2.0:
pip install ebbinghaus-0.2.0.tar.gz