Skip to main content

Images/files organized in collections.

Project description

Run the Tests

Install tox and run it:

pip install tox
tox

Limit the tests to a specific python version:

tox -e py27

Conventions

Onegov File follows PEP8 as close as possible. To test for it run:

tox -e pep8

Onegov File uses Semantic Versioning

Build Status

Build Status

Coverage

Project Coverage

Latest PyPI Release

Latest PyPI Release

License

onegov.file is released under GPLv2

Changelog

0.13.0 (2018-10-19)

  • Increases the thumbnail and image sizes to properly support retina displays. [href]

0.12.2 (2018-10-11)

  • Adds the ability to locate signature metadata in the messages. [href]

0.12.1 (2018-10-11)

  • Adds the ability to query files by signature digest. [href]

  • Fixes upgrades not working for older releases. [href]

  • Adds a signature_timestamp hybrid-property. [href]

0.12.0 (2018-10-10)

  • Migrates ‘pages’ to the more generic ‘stats’ dictionary which also includes a word count. [href]

  • Adds log messages when signing a file and when removing a signed file. [href]

0.11.0 (2018-10-09)

  • Adds the ability to digitally sign PDF files. [href]

0.10.1 (2018-10-02)

  • Fixes pdf extracts sometimes containing NUL characters. [href]

0.10.0 (2018-09-28)

  • Extracts pdf text and page numbers for pdf uploads. [href]

  • Adds the ability to implement searching on File subclasses. [href]

0.9.1 (2018-09-26)

  • Fixes depot upgrade failing in certain cases. [href]

0.9.0 (2018-09-25)

  • Fixes renames having no effect on the served response. [href]

  • Fixes word documents being served with the wrong MIME-type. [href]

  • Adds a ‘signed’ property to the file model. [href]

0.8.1 (2018-09-04)

  • Fixes cache busting being overly eager. [href]

0.8.0 (2018-09-04)

  • Adds a “published” state and a publication date to trigger it. [href]

  • Changes frontend cache busting to use ORM events. [href]

0.7.0 (2018-08-06)

  • Adds a cache busting hook to bust frontend caches when a file is deleted. [href]

  • Adds PDF previews. [href]

0.6.1 (2018-06-21)

  • Fixes upgrade. [href]

0.6.0 (2018-06-21)

  • Adds a default order to the files. [href]

  • Migrates the metadata storage to JSONB. [href]

  • Improves query performance for selecting files in order. [href]

0.5.2 (2018-02-06)

  • Excludes pdf/postscript files from the supported image formats. [href]

  • Requires Python 3.6. [href]

0.5.1 (2017-12-22)

  • Switches to onegov core’s custom json module. [href]

0.5.0 (2017-11-14)

  • Encodes X-File-Note results in json to avoid non-ASCII characters. [href]

0.4.0 (2017-09-22)

  • Adds the ability to link a bunch of files to any ORM model. [href]

0.3.2 (2017-01-26)

  • Upgrades to the latest filedepot release, removing our hack. [href]

0.3.1 (2017-01-18)

  • Adds the ability to temporarily switch depot engines. [href]

0.3.0 (2017-01-03)

  • Record the image dimensions when storing an image. [href]

0.2.3 (2016-09-28)

  • Use onegov.core’s svg sanitiser when adding an svg file. [href]

0.2.2 (2016-09-09)

  • Supports latest filedepot release. [href]

0.2.1 (2016-08-19)

  • Limits caching of HEAD request (alt-text) to one minute. [href]

0.2.0 (2016-07-27)

  • Adds the ability to update the file note through an AJAX call. [href]

  • Adds HEAD request support for files. [href

  • Return a custom X-File-Note header, when requesting an image. This header contains the value of the note field of the requested file. [href]

0.1.4 (2016-07-26)

  • Orders files in relationships by last change date. [href]

0.1.3 (2016-07-20)

  • Fixes polymorphic type attribute not working. [href]

0.1.2 (2016-07-20)

  • Fixes query not filtering enough for typed collections. [href]

0.1.1 (2016-07-20)

  • Fixes query not working correctly for typed collections. [href]

0.1.0 (2016-07-19)

  • Adds the ability to detect, find and prevent file duplicates. [href]

0.0.1 (2016-07-14)

  • Initial Release [href]

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

onegov.file-0.13.0.tar.gz (75.2 kB view details)

Uploaded Source

Built Distribution

onegov.file-0.13.0-py3-none-any.whl (81.4 kB view details)

Uploaded Python 3

File details

Details for the file onegov.file-0.13.0.tar.gz.

File metadata

  • Download URL: onegov.file-0.13.0.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.5

File hashes

Hashes for onegov.file-0.13.0.tar.gz
Algorithm Hash digest
SHA256 a0114cddbf222a2d693216f6415eb6f250e90115044ef6d3dea780b238656b2a
MD5 9f82852cce6c58972ab5ce66c5f01920
BLAKE2b-256 93440a07218a27393d49cf07379294edbfe9f813a642df9d2de7e91772f47bd7

See more details on using hashes here.

File details

Details for the file onegov.file-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: onegov.file-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 81.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.5

File hashes

Hashes for onegov.file-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bb8e8ee4dd6fcc329e4b0ca45e8cc8ee1cba7cde15e0755c54b1a3b9c2ee856
MD5 5a60a8dc050d55840f26906bacf52314
BLAKE2b-256 d94248e4ded197e1fe318187dd8d0d4bcd890c1e04089f9b5a703e7eb6fc27de

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