Using external Python packages with ushell

I would like to use an external package (pyjson5) in my ushell integration. I’m having trouble seeing how I would fold that into the ushell python environment - there’s no obvious requirements.txt etc.

Any tips are much appreciated!

Thanks,
Brad

Things are a little unconventional in this regard in ushell as everything (including Python) are so tightly integrated together as a whole. There’s a couple of options - I am assuming you’ve your own “channel” here;

  1. Add a copy of pyjson5 into your channel’s pylib/ folder. This directory is added to sys.path on start up.
  2. Use channel._pip_deprecated_("psjson5") in your describe.flow.py. The “deprecated” may seem off-putting but I very much doubt it will change or go away. It is this way as having third party dependencies in vanilla ushell comes with careful license considerations and supply chain risks, so it is somewhat obfuscated.

Apologies for the late reply.

-Ridgers