Ebbinghaus remembering curve.
Project description
ebbinghaus
Ebbinghaus remembering framework, based on python3 and sqlite3.
Install
pip install ebbinghaus
Usage
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.
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
ebbinghaus-0.2.0.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file ebbinghaus-0.2.0.tar.gz
.
File metadata
- Download URL: ebbinghaus-0.2.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc0169d236a9b1dcf38536f559daa3068f8eb5811849852119694154548cb940 |
|
MD5 | e2dd7f7654cf973236104d0aaa5d2cfe |
|
BLAKE2b-256 | bc75f8b001ace6aeb25231713dbe71899fecc37cbfc5536156e703d41fb0297b |
File details
Details for the file ebbinghaus-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ebbinghaus-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21402c51d722dd6b7bb23416ce53885b10ab473c253c3004e52a803326598762 |
|
MD5 | e3c28c05bbd76e08e6f8569d5e28d6ce |
|
BLAKE2b-256 | d569f0f90b5c674841576a0554049941295fae6a97066592e88275ab864d43e7 |