Webresource

Latest version: v1.2

Safety actively analyzes 625645 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.3

----------------

- Nothing changed yet.

1.2

----------------

- Accept additional keyword arguments in resources. They get rendered as
additional attributes on resource tag.
[rnix, aormazabal]

1.1

----------------

- Remove relative directory resolving.
[rnix]

- Add ``remove`` function to ``ResourceMixin``.
[rnix]

- Add ``copy`` function to ``ResourceMixin``.
[rnix]

- Add ``scripts``, ``styles``, and ``links`` properties to ``ResourceGroup``.
[rnix]

- Introduce ``parent`` attribute on ``ResourceMixin``. Gets set in
``ResourceGroup.add`` method to provide hierarchy information.
[rnix]

- Remove magic path resolving behavior for resources. Path no longer gets
overwritten in resolver. It gets now aquired from parent if not set on
resource or resource group.
[rnix]

- ``LinkResource`` and ``StyleResource`` have common superclass ``LinkMixin``
now. ``StyleResource`` no longer derives from ``LinkResource``. This way,
link and style resources respective subclasses of it can be differentiated
with ``isinstance``.
[rnix]

- Remove ``sizes`` keyword argument from ``StyleResource`` constructor.
[rnix]

- ``ResourceGroup`` can define a directory for contained resources.
[rnix]

- ``Resource.directory`` no longer gets set to package path by default but
remains ``None``.
[rnix]

- Resources can define multiple dependencies.
[rnix]

1.0

----------------

- Add Tox, Github actions and make it run on Windows.
Modernize setup.[py|cfg].
[jensens]

- Added ``GracefulResourceRenderer``.
Fixes 1.
[jensens]

1.0b8

------------------

- Rename ``hash_`` keyword argument of resources to ``unique``.

- Introduce ``unique_prefix`` keyword argument on resources.

- Change behavior of unique URL generation. Unique key now gets rendered
itermediate between URL path and file name. This way we play nice with caching
servers, but this also implies the need of custom URL
dispatching/rewriting/traversal when working with unique resource URLs.

1.0b7

------------------

- Add auto integrity hash calculation on ``ScriptResource``.

- Add ``hash_`` and ``hash_algorithm`` keyword arguments to ``Resource``,
``ScriptResource``, ``LinkResource`` and ``FileResource``.

- Add ``Resource.file_hash`` property.

- Add ``Resource.file_data`` property.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.