Skip to main content

codePost Powertools

Documentation Status

Some helpful codePost tools to aid with grading flow using the codePost SDK!

These tools were originally created to support the grading process for COS126, the introductory Computer Science course at Princeton University.

Documentation

The documentation can be found here.

Installation

$ pip install codepost-powertools

Usage

Please see the documentation for a more detailed description of the usage.

You should have a dedicated folder for the usage of these tools, since it requires an input config file and outputs files for certain commands / functions. It is recommended to use a virtual environment for this:

$ python -m venv env
$ source env/bin/activate
(env) $ python -m pip install codepost-powertools
(env) $ cptools --help
(env) $ python my_script.py

By default, the package will look for a configuration file called config.yaml that contains a field "api_key" for your codePost API key. See this page for instructions on how to access your codePost API key, as well as more information on the config YAML file. You must have admin access to all the courses you wish to access with this package.

Command Line Usage

You can access the command-line interface with the cptools command:

$ cptools --help

Usage: cptools [OPTIONS] COMMAND [ARGS]...

  The `codepost_powertools` package on the command line.

Please see the CLI documentation for more information.

Script Usage

You can import the package in a script:

import codepost_powertools as cptools

# Log in to codePost
cptools.log_in_codepost()

# Call methods

Please see the “Writing Scripts” documentation for more information.

Metadata

Release files for codepost-powertools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codepost-powertools 0.1.0
File Size Uploaded
codepost_powertools-0.1.0.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codepost-powertools 0.1.0
File Interpreter ABI Platform
codepost_powertools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.3 kB

Release files / codepost_powertools-0.1.0.tar.gz

Download URL codepost_powertools-0.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2cb0376c46ca6cbed034d4d79b86f92352e886eb0850a5b9709117c49b79adeb
BLAKE2b-256 checksum
How to use checksums
10a0bf66207d1e61e9c61cd65e8ea68128992a7670a5e5e10fae836dcb3f307e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.2 Darwin/22.2.0

Release files / codepost_powertools-0.1.0-py3-none-any.whl

Download URL codepost_powertools-0.1.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcf7ef65fa1ea160c88abd27c9a8a4b4efaa4c2a79fa86cb6738e642e748013a
BLAKE2b-256 checksum
How to use checksums
be6340f778519757ffa4c10bef259bdad5c68c74de441be433a9d0d250988507
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.2 Darwin/22.2.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page