Skip to content

Can I serialize args for calling a subprocess? #641

@FredrikNoren

Description

@FredrikNoren

I.e. I have a program that I use BaseSettings for, and I'd like to invoke it in a "type safe" way; is that something that is possible right now?

For example:

class MyProgram(BaseSettings):
  hi: str

args: MyProgram
subprocess.run("my_program.py", args.serialize()) # I'd like to do something like this

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions