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.
Release files for ezlab 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ezlab-0.0.1.tar.gz | 2.5 kB | Details |
Release files / ezlab-0.0.1.tar.gz
| Download URL | ezlab-0.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a20f473ecbe21076a67fccb0ad5c45b824aeb8c09e17c72422f4e68c4810910
|
|
BLAKE2b-256 checksum How to use checksums |
0a277fe514d51259d9598642d802ee557a822c2f05441f7385a952cadf48049c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|