Easy Environment
Easy-to-use functionality for managing files and data in different environments
Last updated
Easy-to-use functionality for managing files and data in different environments
Last updated
Easy Environment is a Python tool that provides easy-to-use functionality for managing files and data in different environments. It offers a class that simplifies file operations on the local disk and cloud services such as Google Cloud (Google Cloud Storage and Big Query) or SharePoint.
Multi-format loading and saving: Load and save files in various formats with one command line
Default supported formats: csv, docx, jpg, json, md, parquet, pdf, pickle, png, pptx, sql, toml, txt, xlsx, xml, yaml, yml
Unsupported formats: Customisable. See Customise supported formats.
Multi-environment management:
Local disk: Loading/saving and management.
Google Cloud Storage: Loading/saving and management.
Big Query: Append, write, and run queries on Big Query tables.
SharePoint: Download, upload, and manage files on SharePoint.
To use Easy Environment, follow these instructions:
Install easyenvi
Create an instance of the EasyEnvironment class
All the parameters in the EasyEnvironment
class are optional: it depends on how you use the tool.
Specifying certain parameters means certain dependencies:
For using local operation, it is necessary to specify local_path
, the path from which local operations should be executed - specify an empty string if you want to use the current directory. Additionnaly, the installation of the fsspec
library is required.
For using Google Cloud, it is necessary to specify the project ID, the path to a credential .json file, and, in case of interaction with Google Cloud Storage, the path to the GCS folder (see Google Cloud Initialisation). Additionnaly, the installation of the libraries google-cloud-storage
, google-cloud-bigquery
and fsspec
is required.
For using SharePoint, it is necessary to specify the SharePoint site to interact with, as well as authentication credentials: either the client_id/client_secret pair or the username/user_password pair (see SharePoint Initialisation). Furthermore, the installation of the Office365-REST-Python-Client
library is required.
Browse the following sections to obtain more information about the parameters and functionalities.