Skip to content

Feature Request: Split Pantograph and PyPantograph #75

@RexWzh

Description

@RexWzh

Proposal

Split the project into two components by a caching mechanism instead of using git submodule:

  1. Core REPL (Pantograph)
  2. Python wrapper (PyPantograph)

Implementation details

Cache dir for different systems:

PANTOGRAPH_CACHE_DIR = Path(platformdirs.user_cache_dir("pantograph"))

Use the cached proc in self.proc_path:

pexpect.spawn(f"{self.proc_path} {self.args}", cwd=self.cwd,...)

Planned cli tools:

  • pantograph list: Show available versions
  • pantograph install: Install specific version
  • pantograph update: Update to the latest tag
  • pantograph default: Set default version if the proc_path is not specified
    ...

Looking for feedback and suggestions on implementation. I would be happy to contribute to this effort :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions