Skip to main content

Incredibly basic class for managing simple input/output streams

Project description

Incredibly Easy and Instantly Accessible Input Output

Class IOUtils with intuitive function names for basic petty I/O streams.

Many times there's no need to have fine-grained control over some I/O. Hence the idea to pack boilerplate code (e.g. the one in os,glob) in functions with intuitive names.

glob.os

The first aim is to pack in single functions otherwise long code snippets for operations done via the os or glob module. For instance, instead of having in the script something like this:

if not glob.os.path.exists(path):
    glob.os.makedirs(path)

Simply write IOUtils.mkdir(path). This also allows to have basic glob and os functions in a single place. For instance, get all the files in a folder recursively by extension with : IOUtils.ioglob(path,ext='txt',recursive=True).

JSON and pickle

It is often the case that for several reasons one need to (1) create simple configuration files or (2) load samll python object (e.g. dictionaries) across scripts. For this use case there's no need to have the fine-grained control provided by json and pickle modules. Hence IOUtils has load_json/save_json and load_pickle/save_pickle for these cases.

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

ie-a-ia-io-0.1.6.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

ie_a_ia_io-0.1.6-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file ie-a-ia-io-0.1.6.tar.gz.

File metadata

  • Download URL: ie-a-ia-io-0.1.6.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for ie-a-ia-io-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a12e125c301c75fdf5e6850fd5279523afe3207ad4a32c5c7b5e799532b42a47
MD5 6d4414d5e15841c9be6d0bfa52e1f557
BLAKE2b-256 c8773fa7e5d56268c4385077da8d1de6320d2717ff350b78ba46d336dc4973b1

See more details on using hashes here.

File details

Details for the file ie_a_ia_io-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ie_a_ia_io-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for ie_a_ia_io-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0c87367d073c281a5d77a39079f18647f981f492e2749d4d5e70c7fda2c07efb
MD5 a18710e60456c0f8cd5849bac125824f
BLAKE2b-256 41aea3dd6164abb8a84ec227be6308233057500470451c4a988f73e604dbe4cc

See more details on using hashes here.

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