InvisibleRoads Uploads
Add basic file upload functionality to your Pyramid app.
Use
Prepare environment.
export VIRTUAL_ENV=~/.virtualenvs/crosscompute
virtualenv ${VIRTUAL_ENV}
source ${VIRTUAL_ENV}/bin/activate
export NODE_PATH=${VIRTUAL_ENV}/lib/node_modules
npm install -g browserify uglify-js
Install package.
cd ~/Projects/invisibleroads-uploads python setup.py develop bash refresh.sh
Add settings.
upload.id.length = 32
Configure views.
config.include('invisibleroads_uploads')
Call template macro.
{% from 'invisibleroads_uploads:templates/parts.jinja2' import upload_button %}
{{ upload_button(request, id='xyz-upload', text='Browse for xyz', class='xyz') }}
Add callback and activate button.
$('#xyz-upload').on('uploaded.ir', function(e, d) {
console.log(d.upload_id);
}).enable();
0.4
Define Upload.save, Upload.save_from, Upload.load
Replace get_upload_from with Upload.get_from
0.3
Handle HTTP status code 413 Payload Too Large
0.2
Ignore multiple clicks on upload button until dialog closes
Replace uploaded.ir.upload with uploaded.ir
0.1
Add basic upload functionality
Ignore multiple clicks on upload button for a few seconds
Metadata
Release files for invisibleroads-uploads 0.4.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| invisibleroads-uploads-0.4.2.4.tar.gz | 13.5 kB | Without provenance | Details for invisibleroads-uploads-0.4.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| invisibleroads_uploads-0.4.2.4-py3-none-any.whl | Python 3 | none | any | Details for invisibleroads_uploads-0.4.2.4-py3-none-any.whl |
Total release size: 29.7 kB
Release files / invisibleroads-uploads-0.4.2.4.tar.gz
| Download URL | invisibleroads-uploads-0.4.2.4.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0133d0f10b1c23fefb60ee3fc90a514bb4334a6239ff153bcf7a3a8c9ab6ff7a
|
|
BLAKE2b-256 checksum How to use checksums |
cbc58a0628188f2faa0ef3d473ac6c473bba90150517bd3c4448edec01baa68e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.5
|
Release files / invisibleroads_uploads-0.4.2.4-py3-none-any.whl
| Download URL | invisibleroads_uploads-0.4.2.4-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cab56ebf9285523c8e07ade812bc0fddb47efe854d7b7edf395554ebd2b8e894
|
|
BLAKE2b-256 checksum How to use checksums |
09fbabc6ecba4962e4235b68745cbbf546c5b0e5063089d3e298fed76610e726
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.5
|
Security for invisibleroads-uploads 0.4.2.4
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.