Skip to main content

Automatic loading of files with any extension

Project description

multiple_loader Logo

PyPI PyPI - Python Version PyPI - Format PyPI - License Downloads GitHub issues
GitHub followers Twitter


the latest version of 1.0.2🎉

Changes in the new version of 1.0.2

- Release. -


Multiple Loader

multiple loader(hereinafter referred to as EEV xld) is a python library. It is a library that reads the main data file extensions often used by data scientists for data analysis in a "simpler" and "one-line" format.


Description of xld

xld is a python library that automatically loads files in a single line, without the need to specify with statements or modes. Just pass the file path and it will recognize the file extension and load it using the appropriate library.


More about Multiple Loader(xld)

xld is a library that automatically recognizes file extensions and loads files. The extensions supported by the current version(1.0.1) are the following extensions:

  • csv / tsv
  • json
  • npy / npz
  • json
  • pickle / pkl

More extensions will be supported in the future.

The supported libraries are as follows:

Standard features include the following,

  • Basic Usage

    import multipleloader as xld
    load_data = xld.load("test_file.csv")
    

    Simply import the library and pass the file path you wish to load. The actual loading screen will look like this: xld test gif 1

    In addition, the following LIBRARIES are supported for the extensions.

    • csv / tsv
      • csv
      • numpy
      • pandas (default)
    • json
      • json (default)
      • pandas
    • pickle / pkl
      • pickle (default)
      • pandas
      • joblib
    • npy / npz
      • numpy (default)

    You can also specify a library if you wish to load data using a library other than the one configured by default.

    import multipleloader as xld
    load_data = xld.load("test_file.csv", lib="numpy") # Default is pandas
    

    In the sample code above, numpy is specified for library. When specifying library, numpy also supports spelling inconsistencies such as very commonly used abbreviations such as np.

Optional arguments, etc

The list of arguments, etc. that can be used in xld is as follows.

import multipleloader as xld

loaded_data = xld(  # The results will always return with a type of List.
   
   filepath,      # Required argument
      ### List to be used in the target function.

   lib,
      ### Argument to set if you want to use the default library.
   
   encoding
      ### To specify the encoding.
)

Getting Started

Installing

Latest xld via PyPI (pip install)

PyPI Downloads

pip install multipleloader

Install by pip from github

pip install git+https://github.com/Domzou-kun/xld.git

or install via SSH

pip install git+git://github.com:Domzou-kun/xld.git

Authors

Domzou

link

Version history

If you want to know about past versions, please refer to version history.

LICENSE

xld has a MIT license, as found in the LICENSE file.

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

multipleloader-1.0.2.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

multipleloader-1.0.2-py3-none-any.whl (11.0 kB view hashes)

Uploaded Python 3

Supported by

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