Converting from npub to hex is two lines in case you need a script
from nostr.key import PrivateKey
print(PrivateKey.from_nsec('npub1......').hex())
Converting from npub to hex is two lines in case you need a script
from nostr.key import PrivateKey
print(PrivateKey.from_nsec('npub1......').hex())