Lightweight package to store and retrieve code answers by program number.
Project description
codeprinter
Tiny utility package for keeping your solutions in one place and importing them from anywhere.
Setup
cd /Users/shriyansnayak/code-printer
pip install -e .
The editable install exposes the package globally inside the current Python environment (or virtualenv).
Usage
import codeprinter as cp
print(cp.ques(1))
Add new answers by editing codeprinter/_answers.py. Each entry maps a question number to any serialisable value (strings, dicts, callables, etc.). Example:
ANSWERS = {
1: "print('Hello world')",
2: lambda: 42,
}
Callables are invoked when retrieved so you can lazily compute data.
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 coderunnernew-0.1.4.tar.gz.
File metadata
- Download URL: coderunnernew-0.1.4.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4425045511d7464e378b0a722ea8c29eb971ae02e7767cfc6ede5ed5fd88a11
|
|
| MD5 |
48377abe03d6d3c98eea1161d47d87b4
|
|
| BLAKE2b-256 |
f8511951c0775f627ca410ab2fd43dd27c243dfd8be54c68f8174a1b474eabd1
|
File details
Details for the file coderunnernew-0.1.4-py3-none-any.whl.
File metadata
- Download URL: coderunnernew-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13f860f095e50c7471c8752977c4c89c92b9379fab3708adc8dcb98f48a42d62
|
|
| MD5 |
202145ccd9baa1e06a546b9e2d340e91
|
|
| BLAKE2b-256 |
dc4a223931d487137cc51306d951da79c4391fe38571b3ccca3b71add9a8dca4
|