Skip to content
Advertisement

import local package during poetry run

I just transitioned from pipenv to poetry and I’m having trouble importing a package from a local package I’m developing in a few of my scripts. To make this more concrete, my project looks something like: Within myscript.py, I import mypackage. But when I poetry run bin/myscript.py I get a ModuleNotFoundError because the PYTHONPATH does not include the root of

Combination of pair elements within list in a list

I’m trying to obtain the combinations of each element in a list within a list. Given this case: my_list [[‘A’, ‘B’], [‘C’, ‘D’, ‘E’], [‘F’, ‘G’, ‘H’, ‘I’]] The output would be: 0 1 0 A B 1 C D 2 C E 3 D E 4 F G 5 F H 6 F I 7 G H 8 G

Azure KeyVault: how to retrieve clientId, clientSecret and the tenantId for an existing Service Principal?

The cloud engineer in my organization has set up an Azure KeyVault and a Service Principal. I know the id of this Service Principal, but I also need clientId, clientSecret, and tenantId. The documentation shows that these variables are exposed to you when you create a Service Principal using Azure CLI, but in my case, there is one already. I

tkinter inter-windows drag and drop support

I’m trying to help the owner of tkdnd generate a wheel and distribute it to Pypi so users could simply install the tkdnd extension with a simple pip install TkinterDnD2. I’m after this ‘challange’ for the last two days but could not solve it by myself so far, but I’m sure someone with a deep understanding python packaging and installing

Advertisement