]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
replace pin variable with getpass in README (#28)
authorLukas Großberger <code@grossberger.xyz>
Thu, 28 Jun 2018 13:06:54 +0000 (15:06 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Thu, 28 Jun 2018 13:06:54 +0000 (15:06 +0200)
to prevent people from having python files with their bank login lying around

README.md

index 7c4c06ce0f57f4a57113c251b7ff4a9552af99bc..56099cd324ef50fb60ab6647e20022aae114ad71 100644 (file)
--- a/README.md
+++ b/README.md
@@ -35,13 +35,14 @@ Usage
 ```python
 import logging
 from datetime import date
+import getpass
 from fints.client import FinTS3PinTanClient
 
 logging.basicConfig(level=logging.DEBUG)
 f = FinTS3PinTanClient(
     '123456789',  # Your bank's BLZ
     'myusername',
-    'mypin',
+    getpass.getpass('PIN:'),
     'https://mybank.com/…'  # endpoint, e.g.: https://hbci-pintan.gad.de/cgi-bin/hbciservlet
                             # for German banks, see http://www.hbci-zka.de/institute/institut_auswahl.htm
 )