Skip to main content

A Jupyter file widget with chunked upload capabilities

Project description

ipyuploads

ipyuploads is a Jupyter file widget with a variety of improvements over the FileUpload component that comes in ipywidgets. It is designed to serve as a drop-in replacement for the aforementioned component. Features include:

  • Progress indicator on uploads over 1 mb
  • "Chunked" file upload supports larger files than FileUpload allows
  • The ability to write chunks to disk reduces the memory requirement for large file uploads
  • Callback hooks on file upload completion, chunk upload completion and all-files completion

Requirements

  • ipywidgets >= 7.5.0

Installation

pip install ipyuploads

Development

git clone https://github.com/g2nb/ipyuploads.git
pip install -e ipyuploads

Usage

In a Jupyter notebook, run the following:

import ipyuploads

ipyuploads.Upload()

Various options can also be set, including:

import ipyuploads

ipyuploads.Upload(accept='txt',           # Accept only text files
                  multiple=True,          # Upload multiple files at once
                  disabled=True,          # Disable the widget
                  icon='cloud-upload',    # Change the upload icon
                  button_stye='primary',  # Change the button style
                  error='Bad Error',      # Set the error message
                  busy=False,             # Whether an upload is in progress
                  chunk_complete=foo,     # Callback when a chunk upload completes
                  file_complete=bar,      # Callback when a file upload completes
                  all_files_complete=fo2, # Callback when all files complete
                  )

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

ipyuploads-0.2.1.tar.gz (30.0 MB view details)

Uploaded Source

Built Distribution

ipyuploads-0.2.1-py3-none-any.whl (107.7 kB view details)

Uploaded Python 3

File details

Details for the file ipyuploads-0.2.1.tar.gz.

File metadata

  • Download URL: ipyuploads-0.2.1.tar.gz
  • Upload date:
  • Size: 30.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for ipyuploads-0.2.1.tar.gz
Algorithm Hash digest
SHA256 64bd5fd4ccb61a151af6fc056443addfa27c824a1b3269933cabfb86153a88ff
MD5 2267cf4308b77fea6e26bc5a5438b8da
BLAKE2b-256 f9b51eda935d4be4e49a69aced615504e3cd05cfdaa1e49e0aeefca93fb1c528

See more details on using hashes here.

File details

Details for the file ipyuploads-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ipyuploads-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 107.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for ipyuploads-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09868232617f8a69b92ee2f675be0d97354498dd8a3a948328f3dc962e9c5cff
MD5 78b5a5ef3547ffd33db13a0c4471fddf
BLAKE2b-256 9391bd3e8b381f193422a28905e89c206c5a7da9d19202f6dcc7c11ce2cb36db

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