Skip to main content

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

# 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.1.0

Build main functions.

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.

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.1.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

ebbinghaus-0.1.1-py3-none-any.whl (15.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page