Skip to main content

TestMyCode client

Project description

tmc.py
======

`tmc.py` is a commandline client for working with a [TestMyCode server](https://github.com/testmycode/tmc-server). It aims to have all of the features of [tmc-netbeans](https://github.com/testmycode/tmc-netbeans).

note
----

The legacy branch has the python2 version. It's the version also in [PyPi](https://pypi.python.org/pypi/tmc/0.2.2)

installation
------------

Requires Python 3.3+ and pip
pip3 install git+https://github.com/JuhaniImberg/tmc.py.git

usage
----

#### `tmc configure`

Set the server, user credentials and selected course.

#### `tmc select [--course] [--id x]`

Selects a exercise. If `--course` is given selects a course instead. If `--id` is given it tries to select that ID straight, without opening the curses menu.

#### `tmc update [--course]`

Update the list of exercises. If `--course` is given updates courses instead.

#### `tmc download [remaining|all|id]`

Download all of the remaining exercises that have not been completed, all of the exercises or a exercise with the id.

#### `tmc test [id]`

Test the current exercise or a exercise with the id.

#### `tmc submit [id] [--paste] [--review]`

Submit the current exercise or a exercise with the id. If `--paste` is set the submission will be sent to TMC pastebin. If `--review` is set a request for review will be created.

#### `tmc next`

Go to the next exercise.

#### `tmc run command`

Executes `command exercise-path`. For example `tmc run gvim` would run
`gvim /home/x/tmc/k2014-algomooc/viikko1/01.1.Kertoma` which would open gvim
in that folder.

#### `tmc reset`

Reset the database.

example
-------

while course is not completed:
tmc run subl3 && tmc test && tmc submit && tmc next

state
-----

Works

* Login
* Downloading
* Testing with ant
* Submitting

Needs Polish

* All

ToDo

* More docs
* Testing script

license
-------

MIT, see `LICENSE`

Project details


Release history Release notifications

History Node

1.0.2

History Node

1.0.1

History Node

0.3.18

History Node

0.3.17

History Node

0.3.16

History Node

0.3.15

History Node

0.3.14

History Node

0.3.13

History Node

0.3.12

History Node

0.3.11

History Node

0.3.10

History Node

0.3.9

History Node

0.3.8

History Node

0.3.7

History Node

0.3.6

History Node

0.3.5

History Node

0.3.4

History Node

0.3.3

History Node

0.3.2

This version
History Node

0.3.1

History Node

0.3.0

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
tmc-0.3.1.tar.gz (10.1 kB) Copy SHA256 hash SHA256 Source None Jul 27, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page