Skip to main content

A python package that helps you manage files in Google Colab notebooks.

Project description

ezlab

ezlab is a Python package that helps you manage files in Google Colab notebooks. It provides three functions:

  • start_work(): This function uploads files or a zip file from your local machine (and extracts the zip file is the user wants) in the current working directory.
  • finish_work(output_zip_file_name): This function zips all the files in the current working directory and downloads the zip file with the given name.
  • clear_directory(): This function deletes all the files and folders in the current working directory, effectively resetting the working directory.

Installation

You can install ezlab using pip:

!pip install ezlab

Usage

To use ezlab, you need to import it in your notebook:

import ezlab as ec

Then you can call any of the functions as needed. For example, to upload and extract "my_project.zip" in your current directory, you can use:

ec.start_work("my_project.zip")

To zip and download all the files in your current directory as "my_project.zip", you can use:

ec.finish_work("my_project.zip")

To delete all the files and folders in your current directory, you can use:

ec.clear_directory()

License

This package is licensed under the MIT License. See the LICENSE.txt file for more details.

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

ezlab-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file ezlab-0.0.1.tar.gz.

File metadata

  • Download URL: ezlab-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for ezlab-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5a20f473ecbe21076a67fccb0ad5c45b824aeb8c09e17c72422f4e68c4810910
MD5 0d15242324fcaa1e0919f2edeae5a13b
BLAKE2b-256 0a277fe514d51259d9598642d802ee557a822c2f05441f7385a952cadf48049c

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