A tool for test-driven teaching.
Project description
tanco
A test-driven teaching environment for programmers.
This is a work in progress. There are videos about it on:
https://www.youtube.com/@tangentstream
If your goal is to work through a coding challenge, detailed setup instructions are here:
Installation
# eventually:
# pip install tanco
# but for now, this is still very alpha stage, so:
git clone https://github.com/tangentcode/tanco.git
cd tanco
pip install -e .
Using the Client
tanco login
cd /path/to/your/project
tanco init
tanco test # keep doing this until it passes
git commit # once the test passes
tanco next # to fetch the next test
inspecting the database
Tanco (both the client and server) creates a sqlite database in ~/.tanco.sdb.
You can override this location by setting the TANCO_SDB environment
variable to a different path.
You can inspect the database with the sqlite3 command-line tool.
sqlite3 ~/.tanco.sdb
.schema
Running the Server
First set up a private key, then run quart or hypercorn.
Private Key
The tanco login command lets the command-line client
log into the server in a multi-user setup.
In this setup, the server uses a private key to sign a json web token.
To set up the private key, do this:
cd /path/to/tanco-server
ssh-keygen -t rsa -b 4096 -m PEM -f tanco_auth_key.pem
This will also create a public key in tanco_auth_key.pem.pub.
This is not currently used for anything.
Running the server
You can run the development server like so:
bash QUART_APP=tanco.app:app quart run # --reload
Or (on platforms that support it) use hypercorn:
hypercorn tanco.app:app # --reload
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tanco-0.0.3.tar.gz.
File metadata
- Download URL: tanco-0.0.3.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ceee3a68f4da04a545d5b35017da7e26793536bb816a770c13e6b26c0242c44
|
|
| MD5 |
67c76deb694defe2ed4feb1c87bfe84b
|
|
| BLAKE2b-256 |
893c047c60a4b6599795410b847bc0b9151dd7158adb65fb3224a20be6ec801b
|
File details
Details for the file tanco-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tanco-0.0.3-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5558e0551c9e180efa3cf0e866a63af4052c9223f5a993237801d917447359d0
|
|
| MD5 |
ce17eaec68affbf4aa929017669e1c80
|
|
| BLAKE2b-256 |
e2e0bb3e9b24212a7727211b1b3a52ab7e917abda2df874216e5bbfac4576b74
|