- allow annotation assignment (#35), thanks to @ncoop57
- Add CLI entry point for safepyrun (#27), thanks to @ncoop57
- Show source code for line causing an exception. (#28), thanks to @PiotrCzapla
- Add
_SafeTypeMetaand_safe_typeclass with proper isinstance support, and expose__class__on_ReadOnlyCallable(#31)
- Show source code for line causing an exception. (#28), thanks to @PiotrCzapla
- Add
_ReadOnlyCallable, addshould_exportlogic, improve error messages with allow() hints, and addany/allbuiltins (#25) - allow all of
json(#24)
- Use
pyskills(#23)
- Add
write_policyparam to allow() (#22)
- Unify
__pytools__,__pytools_cls__,__pytools_write__into single defaultdict; use__call__instead of .check() on WritePolicy (#21)
- Add
_WriteGuardproxy, expand allowlist to use...for full module access, tighten callable permissions and_suffix semantics (#20) - Add
sumandhasattr(#19)
- Add in-place operator support and safe type() override to sandbox (#18)
- Add sdir/doc helpers, expose help/dir/doc as pytools, and broaden local var export to globals (#17)
- Add
allow_write_typesAPI for controlling in-place object mutation
- fix pyrun namespace to use kernel's
user_ns(#14), thanks to @KeremTurgutlu
- Add
default_ok_destsconfig, expanduser path support, and expose allow in IPython extension (#15)
- Allow sleep (#13)
- Add
allow_matplotlib(#12)
- Add MRO check for callable whitelist and handle tuple SyntaxError messages (#11)
- Dynamic class-based allow policies via
__pytools_cls__defaultdict; support...for all methods (#10)
- Simplify
_run_pythonto return last expr directly, add %%py cell magic, matplotlib support, and IPython display tools (#7)
- Add expanduser to allowed Path methods (#6), thanks to @ncoop57
- Add iter and next to sandbox builtins (#4), thanks to @ncoop57
- Add ContextVar fallback for asyncio.gather,
find_varhelper,_apply_for star-unpacking (#3)
- Add concise mode to
_run_python/RunPython to return bare value when output has single key (#2)
- Add write destination policies with
ok_destssupport, and user config loading (#1)
- init version