Skip to main content

Automatic correction for The Bridge Exercises

Project description

The Bridge Coding Problems Autochecker (CPA)

graph TD;
    Check?--yes-->TypeOfProblem?;
    Check?--no-->ThoughtProblem;
    ThoughtProblem-->hints;
    ThoughtProblem-->solution;
    TypeOfProblem?-->EqualityCheckProblem;
    EqualityCheckProblem-->Expected;
    EqualityCheckProblem-->Check;
    EqualityCheckProblem-->Hints;
    EqualityCheckProblem-->Solution;
    EqualityCheckProblem-->Vars;

    TypeOfProblem?-->FunctionProblem;
    FunctionProblem-->Vars;
    FunctionProblem-->TestCases;
    FunctionProblem-->Hints;
    FunctionProblem-->Solution;
    FunctionProblem-->Check;
    TypeOfProblem?-->Other;
    Other-->CodingProblem;

Steps for PyPI publishing

  1. Create a package folder (learntools) containing separated modules (e.g. core, python, ...).
  2. Each module contains the solutions for each of the problems. We can separate the problems in different blocks. For example, one for Python Basics, another one for pandas and so on.
  3. The next file is __init__.py. The double underscores in the filename tell you that this is a special file. __init__.py represents the root of each package. It should usually be kept quite simple, but it’s a good place to put package constants, documentation, ...
    • Inside init we export modules so that, calling from learntools.core import * we can have access to that modules, e.g. binder without doing, learntools.core..globals_binder.binder.
  4. In notebooks folder we are going to test the modules. TODO: Introduce testing files and introduce them in a test folder.
  5. Each Python project should use a file named pyproject.toml to specify its build system. In this case, the one specified is setuptools as a build system as well as which dependencies Python must install in order to build your package. Typically, the documentation of your chosen build system will tell you how to write the build-system table in pyproject.toml.
  6. The more interesting information that you need to provide concerns your package itself. PEP 621 defines how metadata about your package can also be included in pyproject.toml in a way that’s as uniform as possible across different build systems.

Dependencies tracking

[07/09/22] core: [pandas]

Next Steps

  • Introduce testing files and introduce them in a test folder
  • Fill LICENSE file
  • Try to add buttons using, for example, ipywidgets
  • Make it pretty (KISS: Keep It Simple Stupid)
  • Hints monitoring in order to get indsights of student's development

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

thebridge-autocheck-1.0.1.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

thebridge_autocheck-1.0.1-py3-none-any.whl (49.6 kB view details)

Uploaded Python 3

File details

Details for the file thebridge-autocheck-1.0.1.tar.gz.

File metadata

  • Download URL: thebridge-autocheck-1.0.1.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.4

File hashes

Hashes for thebridge-autocheck-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b84e465a9fd6708d5b3ba11538624ff5fb7c79e693e6ea53e98b2c9c12e67ec9
MD5 c6ce7fd68ea198d3172f562beca807b0
BLAKE2b-256 b5c162d90498b712bc3fd16ea5c88f714933c45cf8d4244dc2d8ded52882ff02

See more details on using hashes here.

File details

Details for the file thebridge_autocheck-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for thebridge_autocheck-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8e595eb049ec9726303cf64ef5b6c9b4113fa5303a1ee6d6aaa247721a96965
MD5 41a0ef3abfaedf568e01b8ec1e836ac6
BLAKE2b-256 10fe3f0c9e328c9b769904ea0353a84360d4ab29294c88e6896b436ad6b97e27

See more details on using hashes here.

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