No description
Find a file
2025-10-21 19:02:49 +05:00
cpp improve c++ implementation 2025-10-20 20:57:12 +05:00
LICENSE Initial commit 2025-10-16 20:14:07 +05:00
Makefile add makefile 2025-10-19 20:08:44 +05:00
py simplify protocol for c and c++ implementors 2025-10-20 19:39:58 +05:00
pysession pysession: add interactive mode autodetect 2025-10-21 19:02:49 +05:00
README.md rewrite properly in pure python 2025-10-19 20:09:46 +05:00

pysession

A persistent Python session accessible from the shell.

$ pysession &
[1] 82939
$ py -c 'import json'
$ curl -s https://api.github.com/repos/python/cpython | py -c 'repo = json.load(stdin)'
$ curl -s "$(py -p 'repo["owner"]["avatar_url"]')" -o avatar.png
$ file avatar.png
avatar.png: PNG image data, 460 x 460, 8-bit/color RGBA, non-interlaced
$ py --help
usage: py [-h] [-i] [-c [COMMAND ...]] [-p [PRINT ...]] [argv ...]

pysession client (https://github.com/iliazeus/pysession)

positional arguments:
  argv

options:
  -h, --help            show this help message and exit
  -i, --interactive     interactive mode
  -c [COMMAND ...], --command [COMMAND ...]
                        run code passed via args
  -p [PRINT ...], --print [PRINT ...]
                        pring args