Skip to main content

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

Project description

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

printout-1.2.8.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

printout-1.2.8-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file printout-1.2.8.tar.gz.

File metadata

  • Download URL: printout-1.2.8.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for printout-1.2.8.tar.gz
Algorithm Hash digest
SHA256 68d726584f92cec69761dd4d6e251d504617cef678618768501e6bc3999380ec
MD5 2c3939e999abfa8f978e74af5f01ad3b
BLAKE2b-256 3a5c7fd4ff6f06697ee83a27a9ad3c70d28dc3b27175886687317eb34c3d865b

See more details on using hashes here.

Provenance

The following attestation bundles were made for printout-1.2.8.tar.gz:

Publisher: publish.yml on jenkinscode1/printout

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file printout-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: printout-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for printout-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 73d379a51cb17a2a478fdd13db9d6162b1580d6053081b690846efac76847a72
MD5 ecd713b26e13f161604c70bfef92d5a0
BLAKE2b-256 c106a1e5b466452723da66bf11688031c27d5b121961ec3f76dce6f7045f6f8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for printout-1.2.8-py3-none-any.whl:

Publisher: publish.yml on jenkinscode1/printout

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page