Skip to main content

read(path,size=-1,encoding=None) function - read file, open.read replacement

Project description

Installation

$ [sudo] pip install read

Functions

function __doc__
read.read(path, size=-1, encoding='utf-8') return file content (if file exists)

Examples

>>> import read

>>> read.read("path/to/file")
'file content ...'

>>> read.read("not-existing")
None

python-readme-generator

Project details


Download files

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

Files for read, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size read-2019.4.13.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page