Environmental Variables Problems with Coding

avatar

Hello Steem Developers,

I would like to "unlock" my cli wallet automatically in steem-python so I can exchange some Sbd/steem without having to manually enter it when the "Passphrase:" request comes up. Anyone know how to do this?

I have set an environment variable which looks like UNLOCK =MyPassword.

Then I try to do the conversion with dex.sell(amount=0.01, quote_symbol='STEEM', rate=(1), expiration=200, killfill=False, account="MyUserName")

Still getting asked for password. Any thoughts?

1download (1).jpg



0
0
0.000
5 comments
avatar

If you cannot get rid of the interactive prompt have a look at the pexpect library.

You should be able to program the input of the password automatically.

0
0
0.000
avatar

@tony10 you were flagged by a worthless gang of trolls, so, I gave you an upvote to counteract it! Enjoy!!

0
0
0.000
avatar

Congratulations @tony10! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard Ranking update - Resteem and Resteemed added

Support SteemitBoard's project! Vote for its witness and get one more award!

0
0
0.000