Skip to main content

lona-dropzone

license MIT Python Version Latest Version

Dropzone.js bindings for Lona

Installation

lona-dropzone can be installed using pip

pip install lona lona-dropzone

Usage

lona-dropzone uses Lonas Bucket API. lona_dropzone.Dropzone accepts all arguments of a Lona Bucket to create a new Bucket on the fly. You can also use a previously created Bucket using the keyword bucket.

from lona.html import HTML, H1
from lona import View

from lona_dropzone import Dropzone


class DropzoneView(View):
    def handle_request(self, request):
        self.dropzone = Dropzone(
            request=request,
            on_add=self.on_add,
            on_delete=self.on_delete,
        )

        return HTML(
            H1('Dropzone'),
            self.dropzone,
        )

    def on_add(self, file_names):
        print(f'{file_names} added to {self.dropzone.bucket.get_path()}')

    def on_delete(self, file_names):
        print(f'{file_names} deleted from {self.dropzone.bucket.get_path()}')

Metadata

Release files for lona-dropzone 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lona-dropzone 0.1
File Size Uploaded Provenance
lona-dropzone-0.1.tar.gz 201.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lona-dropzone 0.1
File Interpreter ABI Platform
lona_dropzone-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 411.4 kB

Release files / lona-dropzone-0.1.tar.gz

Download URL lona-dropzone-0.1.tar.gz
Size 201.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b4166c0fc5ac619b27e8e3c60d85bb506c588cbe384b4c3df26ebd4f9db84044
BLAKE2b-256 checksum
How to use checksums
50036132413f523fd2d54e005547bc7df40e153777c3dd3b04f89211535cc2ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / lona_dropzone-0.1-py3-none-any.whl

Download URL lona_dropzone-0.1-py3-none-any.whl
Size 210.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6df0ba3b7697ceecef597253a49ad80747cee15a192b86d62594243628c56854
BLAKE2b-256 checksum
How to use checksums
9fceafc1f3a28b3667a89855adc27a9eb8a15f9205b70275ed1b15bdc359fc40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for lona-dropzone 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page