semvec/pypi-packages huggingface dataset:
django-flexible-manifest-staticfiles 1.0.2
An extension of Django ManifestStaticFilesStorage that allows ignoring (excluding) specified files from being versioned, such as images or fonts.
License: MIT

# django-flexible-manifest-staticfiles

This extension to `django.contrib.staticfiles.storage.ManifestStaticFilesStorage` allows you to specify a list of file patterns that should be ignored/excluded from being versioned and added to the manifest. You can also specify it the other way around and say which files should be included.

This allows you to add versioned naming to only static files of your choosing. For example, you may want CSS and JS files to be versioned, but not fonts, images or other assets.

I've written and tested this against Django 2.2. Your mileage elsewhere may vary!

## Installation

Use pip:

```shell
pip install django-flexible-manifest-staticfiles
```

## Setup

Set in your `settings.py`:

```python
STATICFILES_STORAGE = 'django_flexible_manifest_staticfiles.storages.ForgivingManifestStaticFilesStorage'
```

## Usage

Set in your `settings.py` you can set two settings:

 - `STATICFILES_VERSIONED_INCLUDE` - This is a list of patterns you want to be included. Only files that match at least one of these patterns will be included. If you omit this setting, then all files are included by default.
 - `STATICFILES_VERSIONED_EXCLUDE` - Any file matching any of these patterns will be excluded from being versioned.

Files must match against both rules (e.g. they must be both in the include list and not in the exclude list) in order to be versioned.

Note that the complete path relative to the `static` directory is available for matching against.

## Examples

This would only version `.css` and `.js` files, but would exclude minified files:

```python
STATICFILES_VERSIONED_INCLUDE = ['.css$', '.js$']
STATICFILES_VERSIONED_EXCLUDE = ['min.css$', 'min.js$']
```

This would version all files asides from `.jpg` files:

```python
STATICFILES_VERSIONED_EXCLUDE = ['.jpg$']
```

This would only version things in your `/static/scripts`:

```python
STATICFILES_VERSIONED_INCLUDE = ['scripts/.*$']
```
fast-soup 1.1.0
BeautifulSoup interface for lxml
License: MIT
Requires Python: >=3.6,<4.0


FastSoup 
========

.. image:: https://travis-ci.org/spumer/FastSoup.svg
    :target: https://travis-ci.org/spumer/FastSoup
    :alt: Build Status

.. image:: https://coveralls.io/repos/github/spumer/FastSoup/badge.svg
    :target: https://coveralls.io/github/spumer/FastSoup

=====================================================================================================================================================

BeautifulSoup interface for lxml

Key features
============


* **FAST** search in tree
* **FAST** serialize to str
* BeautifulSoup4 interface to interact with object:

  * Search: ``find``\ , ``find_all``\ , ``find_next``\ , ``find_next_sibling``
  * Text: ``get_text``\ , ``string``
  * Tag: ``name``\ , ``get``\ , ``clear``\ , ``__getitem__``\ , ``__str__``, ``__repr__``, ``append``, ``new_tag``, ``extract``, ``replace_with``

Install
-------

.. code-block:: bash

   pip install fast-soup==1.1.0

How to use
----------

.. code-block:: python

   from fast_soup import FastSoup

   content = ...  # read some html content
   soup = FastSoup(content)

   # interact like BS4 object
   result = soup.find('a', id='my_link')

   # interact like lxml object
   el = result.unwrap()

FAQ
===

**Q:** BS4 already implement lxml parser. Why i should use FastSoup?

**A:** Yes, BS4 implement **parser**\ , and it's just building the tree. All next interactions proceed with "Python speed":
searching, serialization.
FastSoup internally use lxml and guarantee "C speed".

**Q:** How FastSoup speedup works?

**A:** FastSoup just build **xpath** and execute them. For prevent rebuilding LRU cache used.

**Q:** Why you don't support whole interface? This will be soon?

**A:** I wrote functions which speed up parsing in my projects. Just create a issue or pull request and i think we find the solution ;)

Miscellaneous
-------------

You can got power of BeautifulSoup when wrap your lxml objects, e.g:

.. code-block:: python

   from fast_soup import Tag

   content = ...  # some bytes ready to parse
   context = lxml.etree.iterparse(
       io.BytesIO(content),  ...
   )
   for event, elem in context:
       tag = Tag(elem)

       tag_text = tag.get_text()
       tag_attr = tag['attribute']