ipyuploads


Nameipyuploads JSON
Version 0.2.2 PyPI version JSON
download
home_pageNone
SummaryA Jupyter file widget with chunked upload capabilities
upload_time2024-04-30 16:26:18
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseBSD 3-Clause License Copyright (c) 2022, Regents of the University of California & Broad Institute All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords ipython jupyter widgets
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ipyuploads

**ipyuploads** is a Jupyter file widget with a variety of improvements over the `FileUpload` component that comes in [ipywidgets](https://github.com/jupyter-widgets/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

```bash
pip install ipyuploads
```

### Development

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

## Usage

In a Jupyter notebook, run the following:

```python
import ipyuploads

ipyuploads.Upload()
```

Various options can also be set, including:

```python
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
                  )
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ipyuploads",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "ipython, jupyter, widgets",
    "author": null,
    "author_email": "Thorin Tabor <tmtabor@cloud.ucsd.edu>",
    "download_url": "https://files.pythonhosted.org/packages/43/4e/56e4df4b3c012bd8a4b46090950ba4e1dc5404f792c07dfcbe3bb5d2ec39/ipyuploads-0.2.2.tar.gz",
    "platform": null,
    "description": "# ipyuploads\n\n**ipyuploads** is a Jupyter file widget with a variety of improvements over the `FileUpload` component that comes in [ipywidgets](https://github.com/jupyter-widgets/ipywidgets). It is designed to serve as a drop-in replacement for the aforementioned component. Features include:\n\n* Progress indicator on uploads over 1 mb\n* \"Chunked\" file upload supports larger files than `FileUpload` allows\n* The ability to write chunks to disk reduces the memory requirement for large file uploads\n* Callback hooks on file upload completion, chunk upload completion and all-files completion\n\n## Requirements\n\n* ipywidgets >= 7.5.0\n\n## Installation\n\n```bash\npip install ipyuploads\n```\n\n### Development\n\n```bash\ngit clone https://github.com/g2nb/ipyuploads.git\npip install -e ipyuploads\n```\n\n## Usage\n\nIn a Jupyter notebook, run the following:\n\n```python\nimport ipyuploads\n\nipyuploads.Upload()\n```\n\nVarious options can also be set, including:\n\n```python\nimport ipyuploads\n\nipyuploads.Upload(accept='txt',           # Accept only text files\n                  multiple=True,          # Upload multiple files at once\n                  disabled=True,          # Disable the widget\n                  icon='cloud-upload',    # Change the upload icon\n                  button_stye='primary',  # Change the button style\n                  error='Bad Error',      # Set the error message\n                  busy=False,             # Whether an upload is in progress\n                  chunk_complete=foo,     # Callback when a chunk upload completes\n                  file_complete=bar,      # Callback when a file upload completes\n                  all_files_complete=fo2, # Callback when all files complete\n                  )\n```\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2022, Regents of the University of California & Broad Institute All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "A Jupyter file widget with chunked upload capabilities",
    "version": "0.2.2",
    "project_urls": {
        "Homepage": "https://github.com/g2nb/ipyuploads"
    },
    "split_keywords": [
        "ipython",
        " jupyter",
        " widgets"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f7270fcad5fd0d8416c9cabae92249782d895be44f86225748b396db37fc33e",
                "md5": "bd0e1f1dfda2d6f383f148326961995b",
                "sha256": "b5206b78c71d4d5bc091e6e87d4f95dd96067468b749f8ea1412a6c7e90ef75f"
            },
            "downloads": -1,
            "filename": "ipyuploads-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bd0e1f1dfda2d6f383f148326961995b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 107700,
            "upload_time": "2024-04-30T16:26:24",
            "upload_time_iso_8601": "2024-04-30T16:26:24.369808Z",
            "url": "https://files.pythonhosted.org/packages/2f/72/70fcad5fd0d8416c9cabae92249782d895be44f86225748b396db37fc33e/ipyuploads-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "434e56e4df4b3c012bd8a4b46090950ba4e1dc5404f792c07dfcbe3bb5d2ec39",
                "md5": "f7d147667d4c418d842e039000c96dfd",
                "sha256": "eafc7e15870d90a8c564bb214eb5c83bec31cb8e6683f6889fd44cf46cd69c1b"
            },
            "downloads": -1,
            "filename": "ipyuploads-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f7d147667d4c418d842e039000c96dfd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 30008807,
            "upload_time": "2024-04-30T16:26:18",
            "upload_time_iso_8601": "2024-04-30T16:26:18.840657Z",
            "url": "https://files.pythonhosted.org/packages/43/4e/56e4df4b3c012bd8a4b46090950ba4e1dc5404f792c07dfcbe3bb5d2ec39/ipyuploads-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-30 16:26:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "g2nb",
    "github_project": "ipyuploads",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ipyuploads"
}
        
Elapsed time: 0.25747s