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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file multipleloader-1.0.2.tar.gz.

File metadata

  • Download URL: multipleloader-1.0.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.4

File hashes

Hashes for multipleloader-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f9e3f1d56b9ea08a1a3aa37dee96906dfceea2762be64a06ec1a6e7304441fba
MD5 f7c05e8a0d11968e6cc098951d8201c9
BLAKE2b-256 ad03324d67a8f10d005d5194156f48eebee90f563ee3ff3f7153892463d889e7

See more details on using hashes here.

File details

Details for the file multipleloader-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for multipleloader-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76e3e5194b13b45e69c1df5a16325996c407fae64bc92d578e4a748dac9a6f3a
MD5 3ad6669195768591b54a0e275425f235
BLAKE2b-256 adea03d898db8759a458d28037be4f3271982b150c65a823f8627170084b5d99

See more details on using hashes here.

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