semvec/pypi-packages huggingface dataset:
django-hidefield 0.2.0
hide fields in django admin
Keywords: django,widget,admin,field,hide

### django-hidefield ###

Provides a field base class to hide fields in django admin.
The class turns a field label in an admin edit form into a
show/hide toggle link.

Tested with Django 4.2.

#### Installation ####

- `pip install django-hidefield`
- place `'hidefield'` in `INSTALLED_APPS`

#### Usage ####

Build a custom field class for any model field type you want to hide.
The field has an additional argument `hide` with the following meaning:

- `'closed'`    : the field is hidden at start
- `'data'`      : the field is hidden at start, if the field contains data (default)
- `'no-data'`   : the field is hidden at start, if the field contains no data
- `'opened'`    : (or any other value) the field is shown at start

#### Example ####

```python
from django.db import models
from hidefield.fields import HideField


class HideCharField(HideField, models.CharField):
    pass


class MyModel(models.Model):
    name = HideCharField(max_length=32, hide='data')
```

See `exampleapp` for more examples.
scrapy-fingerprint 1.0
Request for scrapy to initiate browser fingerprinting


# scrapy-fingerprint

#### 2023/11/07 scrapy-fingerprint==1.0

- fix : This allows the entire suite of downloader functionality to function

## Description

Scrapy - fingerprint is based on [curl_cffi] (https://github.com/yifeikong/curl_cffi), which is used in the packaging of scrapy TLS or JA3 fingerprints of simulated browser requests

**github**:https://github.com/tieyongjie/scrapy-fingerprint



## Installation

```bash
pip install scrapy_fingerprint
```

## Usage

After creating the scrapy project, add the proxy by adding the following configuration in settings.py

```python
# proxy 链接配置
PROXY_HOST = 'http-dynamic-S02.xiaoxiangdaili.com'
PROXY_PORT = 10030
PROXY_USER = '******'
PROXY_PASS = '******'
```

And you also need to enable download handler in `DOWNLOAD_HANDLERS` in settings.py

```bash
DOWNLOAD_HANDLERS = {
    'http': ('scrapy_fingerprint.fingerprint_download_handler.'
             'FingerprintDownloadHandler'),
    'https': ('scrapy_fingerprint.fingerprint_download_handler.'
              'FingerprintDownloadHandler'),
}
```

You can use scrapy.Request to make a request with a browser fingerprint

```python
import scrapy

yield scrapy.Request(url=url, callback=self.parse)
```

You can also add impersonate in FingerprintRequest

```python
import scrapy

yield scrapy.Request(url, callback=self.parse, meta={"impersonate": "chrome107"})
```

impersonate **defaults** to random browser fingerprints