Skip to main content
import pencilcase

pencil

Drop-in debugger that allows you to write code while you debug. ✏️

Pencil it in! Write code by debugging your code. Lines of code are automatically inserted into your file. Clean them up later and voilà!

pencilcase.pencil()

timer

Super simple drop-in profiler. ⏱

Context manager that counts how much time is spent across all executions of the contained code block, storing it in seconds to the specified global variable. Prints out the value of that variable each time it is run.

with pencilcase.timer('weaving_baskets'):
    weave_baskets()

Alternatively, apply as a decorator to a function to count time spent in that function.

@pencilcase.timer('weaving_baskets')
def weave_baskets():
    ...

eraser

This is a totally unnecessary feature, but who has a pencil case without an eraser??

pencilcase.eraser()

microfilm

Pretty-print the given dict as JSON. 🎞

blob = ...
pencilcase.microfilm(blob)

butterfly_net

Context manager that catches all exceptions raised within, doing nothing but printing their lovely exception traces and then letting them be free. 🦋

with pencilcase.butterfly_net():
    ...

Metadata

Release files for pencilcase 0.0.2

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

Source distribution (sdist)

Source distribution for pencilcase 0.0.2
File Size Uploaded
pencilcase-0.0.2.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pencilcase 0.0.2
File Interpreter ABI Platform
pencilcase-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / pencilcase-0.0.2.tar.gz

Download URL pencilcase-0.0.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e1c0c0e0e746278e567d08c61389ec9f450202e4925816fcb65f489fbbeee1f8
BLAKE2b-256 checksum
How to use checksums
8e7204b363b4b26b09560da189bc23d23019d7fb018b9c6654547137bba5ca4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.6

Release files / pencilcase-0.0.2-py3-none-any.whl

Download URL pencilcase-0.0.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fabacde1bf24853ff641544dba0f27249406b4f8576ac50100861207c7c019c
BLAKE2b-256 checksum
How to use checksums
b2d6084f645e35c13621703fbd9f9b49e88e6e0ab6c899607db98d39cadb152d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

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