semvec/pypi-packages huggingface dataset:
printout 1.2.8
This print utility allows you to print information to the console and file in one call.  You don't need to use logger and print anymore.  With this tool, you can perform both actions using only printout
License: MIT
Requires Python: >=3.7

Simple library that allows you to print message to the console and to any file you want. 
```

import printout

try:
    r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
    r.status_code
    printout(f"{printout(r.text)}", "page_results.txt")
except Exception as ex:
    printout(f"Error: {ex}", ""error_log.txt")

```