semvec/pypi-packages huggingface dataset:
anti-header 0.0.6
fake chrome, firefox, opera browser header anti header
License: MIT
Requires Python: >=3.7.0
Keywords: header,headers,crawl header,fake,fake header,browser,spider header,anti,anti header,scrapy header

# anti-header



> info: fake chrome, firefox, opera browser header anti header

## Features

- more header params
- more request method

### Installation

```shell
pip install anti-header
```

### Usage

```python
import anti_header
from anti_header import Header
from pprint import pprint

hd = Header(platform='windows', min_version=90, max_version=100).base
hd = Header(platform='windows', min_version=90,max_version=100).random
print(anti_header.VERSION)

# must_header param useage
hd = Header(must_header={'aa': 'bb'}).random
hd = Header(must_header={'aa': 'bb'}).base

# rand_header param useage
hd = Header(rand_header={'cc': 'dd'}).random
hd = Header(rand_header={'cc': 'dd'}).base

# default_header param useage
for i in range(10):
    hd = Header(default_header={'ee': 'ff'}).base
    pprint(hd.to_unicode_dict())
    
"""
base example
{'cjito': 'azhbmf',
 'ee': 'ff',
 'referer': 'https://www.google.com/',
 'user-agent': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.7.3455.76 Safari/537.36'}
 
random example
{'accept-encoding': 'gzip, deflate',
 'accept-type': 'utf-8',
 'ee': 'ff',
 'origin': 'https://www.google.com/',
 'referer': 'https://www.google.com/',
 'sec-ch-ua-mobile': '?0',
 'sec-fetch-mode': 'navigate',
 'te': 'Trailers',
 'upgrade-insecure-requests': '1',
 'user-agent': 'Mozilla/5.0 (SM-G3609 Build/KTU84P; WIFI) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.5.6492.87 Safari/537.36',
 'x-forwarded-for': '1',
 'xorsv': 'pvmcue'}
"""
```


If You want to  requests method useage just: 

```python
# test.py
import requests
from anti_header import Header

_url = 'https://www.google.com/'
hd = Header(url=_url, platform='windows')
requests.get(_url, header=hd.random.to_unicode_dict())

```

If You want to  scrapy downloadmiddleware method useage just: 

```python

# random_header.py
from anti_header import Header


class RandomHeaderMiddleware(object):
    def __init__(self):
        pass
    
    def process_request(request, spider):
       request.headers = Headers(url=request.url).random
    
    def process_response(request, response, spider):
        return response
```

If You want to  specify param just: 

```python
from anti_header import Header
hd = Header(logger=True)

# the default install loguru
try:
    from loguru import logger
except:
    install("loguru")
    from loguru import logger
    
# close default singleton
hd = Header(dry=True)

```



Make sure that You using latest version

```
pip install -U anti-header
```

Check version via python console: 

```
import anti_header

print(anti_header.VERSION)
```
django-fakejira-final-app-1 0.1
Fakejira installable django app
License: MIT
Requires Python: >=3.8

django-fakejira-testing-app-1
=============================

This is sample code used in the Real Python article [Writing an Installable Django App](???). The article describes how to take an app from an existing Django project and make it a stand-alone installable package avilable on PyPI.

Installable App
---------------

This app models a list of items on a receipt. Each item has a description and a cost. A receipt may reference multiple items.

This app can be installed and used in your django project by:

.. code-block:: bash

    $ pip install django-fakejira-testing-app-1


Edit your `settings.py` file to include `'fakejira1'` in the `INSTALLED_APPS`
listing.

.. code-block:: python

    INSTALLED_APPS = [
        ...

        'fakejira1',
    ]


Edit your project `urls.py` file to import the URLs:


.. code-block:: python

    url_patterns = [
        ...

        path('/', include('fakejira1.urls')),
    ]


Finally, add the models to your database:


.. code-block:: bash

    $ ./manage.py migrate fakejira1
stcnb 0.1.1
My short description for my project.
License: MIT
Requires Python: >=3.6.0


📦 setup.py (for humans)
=======================

This repo exists to provide [an example setup.py] file, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices for `setup.py`, as well as some
commented–out nice–to–haves.

For example, this `setup.py` provides a `$ python setup.py upload`
command, which creates a *universal wheel* (and *sdist*) and uploads
your package to [PyPi] using [Twine], without the need for an annoying
`setup.cfg` file. It also creates/uploads a new git tag, automatically.

In short, `setup.py` files can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)

[Check out the example!][an example setup.py]

Installation
-----

```bash
cd your_project

# Download the setup.py file:
#  download with wget
wget https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py -O setup.py

#  download with curl
curl -O https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py
```

To Do
-----

-   Tests via `$ setup.py test` (if it's concise).

Pull requests are encouraged!

More Resources
--------------

-   [What is setup.py?] on Stack Overflow
-   [Official Python Packaging User Guide](https://packaging.python.org)
-   [The Hitchhiker's Guide to Packaging]
-   [Cookiecutter template for a Python package]

License
-------

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.

  [an example setup.py]: https://github.com/navdeep-G/setup.py/blob/master/setup.py
  [PyPi]: https://docs.python.org/3/distutils/packageindex.html
  [Twine]: https://pypi.python.org/pypi/twine
  [image]: https://farm1.staticflickr.com/628/33173824932_58add34581_k_d.jpg
  [What is setup.py?]: https://stackoverflow.com/questions/1471994/what-is-setup-py
  [The Hitchhiker's Guide to Packaging]: https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/creation.html
  [Cookiecutter template for a Python package]: https://github.com/audreyr/cookiecutter-pypackage
daidaideya 0.1.1
My short description for my project.
License: MIT
Requires Python: >=3.6.0


📦 setup.py (for humans)
=======================

This repo exists to provide [an example setup.py] file, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices for `setup.py`, as well as some
commented–out nice–to–haves.

For example, this `setup.py` provides a `$ python setup.py upload`
command, which creates a *universal wheel* (and *sdist*) and uploads
your package to [PyPi] using [Twine], without the need for an annoying
`setup.cfg` file. It also creates/uploads a new git tag, automatically.

In short, `setup.py` files can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)

[Check out the example!][an example setup.py]

Installation
-----

```bash
cd your_project

# Download the setup.py file:
#  download with wget
wget https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py -O setup.py

#  download with curl
curl -O https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py
```

To Do
-----

-   Tests via `$ setup.py test` (if it's concise).

Pull requests are encouraged!

More Resources
--------------

-   [What is setup.py?] on Stack Overflow
-   [Official Python Packaging User Guide](https://packaging.python.org)
-   [The Hitchhiker's Guide to Packaging]
-   [Cookiecutter template for a Python package]

License
-------

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.

  [an example setup.py]: https://github.com/navdeep-G/setup.py/blob/master/setup.py
  [PyPi]: https://docs.python.org/3/distutils/packageindex.html
  [Twine]: https://pypi.python.org/pypi/twine
  [image]: https://farm1.staticflickr.com/628/33173824932_58add34581_k_d.jpg
  [What is setup.py?]: https://stackoverflow.com/questions/1471994/what-is-setup-py
  [The Hitchhiker's Guide to Packaging]: https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/creation.html
  [Cookiecutter template for a Python package]: https://github.com/audreyr/cookiecutter-pypackage
django-fakejira-final-app 0.1
Fakejira installable django app
License: MIT
Requires Python: >=3.8

fakejira-testing-app
====================

This is sample code used in the Real Python article [Writing an Installable Django App](???). The article describes how to take an app from an existing Django project and make it a stand-alone installable package avilable on PyPI.

Installable App
---------------

This app models a list of items on a receipt. Each item has a description and a cost. A receipt may reference multiple items.

This app can be installed and used in your django project by:

.. code-block:: bash

    $ pip install fakejira-testing-app


Edit your `settings.py` file to include `'fakejira1'` in the `INSTALLED_APPS`
listing.

.. code-block:: python

    INSTALLED_APPS = [
        ...

        'fakejira1',
    ]


Edit your project `urls.py` file to import the URLs:


.. code-block:: python

    url_patterns = [
        ...

        path('/', include('fakejira1.urls')),
    ]


Finally, add the models to your database:


.. code-block:: bash

    $ ./manage.py migrate fakejira1
chariot-plugin 1.1.9
插件生成等功能...
License: MIT
Requires Python: >=3

### chariot-plugin

---

#### 简介
**chariot-plugin**是千乘系统插件的生成器，用于生成插件基本架构．简单实用．

#### 基本架构
```txt
.
├── actions
│   ├── __init__.py
│   ├── ???.py     
│   ├── models.py
├── Dockerfile
├── help.md
├── icon.png
├── main.py
├── Makefile
├── plugin.spec.yaml
├── requirements.txt
├── SDK
│   ├── base.py
│   ├── chariot.py
│   ├── cli.py
│   ├── __init__.py
│   ├── models.py
│   ├── plugin.py
│   ├── subassembly.py
│   └── web.py
├── tests
│   ├── ???.json
└── triggers
    └── models.py
    └── ???.py
```

- plugin.spec.yaml: 编排文件，自行编写，用于生成插件，声明参数及类型验证．
- actions/???.py: 自动生成，用于编写脚本，是插件的最基本组件之一，也是最常使用的．
- triggers/???.py: 自动生成，用于编写需循环触发的脚本，常用于工作流开头分发任务．
- actions/models.py & triggers/models.py: 自动生成，也可自行修改，用于类型验证，语法参考[pydantic](https://github.com/samuelcolvin/pydantic)
- tests/???.json: 自动生成，用于测试　action和trigger 脚本

#### 环境要求
- python3.+

#### 安装
> pip install chariot-plugin 

#### 插件开发
- 千乘社区: https://www.chariots.cn/market/introduction

#### 官网
- 碳泽官网: https://www.tanze.net.cn/about-Tanze
django-fakejira-testing-app 0.1
Fakejira installable django app
License: MIT
Requires Python: >=3.8

django-fakejira
===============

This is sample code used in the Real Python article [Writing an Installable Django App](???). The article describes how to take an app from an existing Django project and make it a stand-alone installable package avilable on PyPI.

Installable App
---------------

This app models a list of items on a receipt. Each item has a description and a cost. A receipt may reference multiple items.

This app can be installed and used in your django project by:

.. code-block:: bash

    $ pip install django-fakejira-testing125


Edit your `settings.py` file to include `'fakejira'` in the `INSTALLED_APPS`
listing.

.. code-block:: python

    INSTALLED_APPS = [
        ...

        'fakejira1',
    ]


Edit your project `urls.py` file to import the URLs:


.. code-block:: python

    url_patterns = [
        ...

        path('/', include('fakejira1.urls')),
    ]


Finally, add the models to your database:


.. code-block:: bash

    $ ./manage.py migrate fakejira1
django-fakejira-testinga-app 0.1
Fakejira installable django app
License: MIT
Requires Python: >=3.8

django-fakejira
===============

This is sample code used in the Real Python article [Writing an Installable Django App](???). The article describes how to take an app from an existing Django project and make it a stand-alone installable package avilable on PyPI.

Installable App
---------------

This app models a list of items on a receipt. Each item has a description and a cost. A receipt may reference multiple items.

This app can be installed and used in your django project by:

.. code-block:: bash

    $ pip install django-fakejira-testing125


Edit your `settings.py` file to include `'fakejira'` in the `INSTALLED_APPS`
listing.

.. code-block:: python

    INSTALLED_APPS = [
        ...

        'fakejira1',
    ]


Edit your project `urls.py` file to import the URLs:


.. code-block:: python

    url_patterns = [
        ...

        path('/', include('fakejira1.urls')),
    ]


Finally, add the models to your database:


.. code-block:: bash

    $ ./manage.py migrate fakejira1
c-out 1.0
Colored Output - c_out. Python print with a style!
License: MIT
Requires Python: >=3.0
Keywords: pyton print color styles

# Introduction  

**Colored Output = c_out**  

You don't have to tell me how monotonous it is to use the same old print statement in python, as there is no option to format it. Moreover, we all have faced problems while debugging our code with countless print statements but no way to highlight any of it.

Well we can definitely install/import third-party packages, but some of us just prefer the old school solutions.

I have a simple, yet effective solution for you.
What if I tell you, it is possible to create a custom class yourself which can format the output in the terminal?

Using this module you can directly format the output you see in your command line interface **without using any external packages**.  
It uses **ANSI Escape Codes** to format the standard output.
  
# Installation
```
pip install c_out
```

# Usage

## Import
```python
from c_out.beauty_print import c_out, TextColor, BackgroundColor, Style
```

## Different Ways to use

#### Normal print
```python
c_out("Hello World")  
```

#### Print with just text color
```python
c_out("Hello World", text_color=TextColor.BLUE)  
```

#### Print with just background color
```python
c_out("Hello World", bg_color=BackgroundColor.BLACK)  
```

#### Print with text color and background color
```python
c_out("Hello World", text_color=TextColor.RED, bg_color=BackgroundColor.BLACK, styles=[Style.BOLD])  
```

#### Print with text color, background color and font styles
```python
c_out("Hello World", text_color=TextColor.RED, bg_color=BackgroundColor.BLACK, styles=[Style.BOLD])  
c_out("Hello World", text_color=TextColor.RED, bg_color=BackgroundColor.BLACK, styles=[Style.BOLD, Style.STRIKETHROUGH, Style.ITALIC])
```

#### Print with separator and text color
```python
c_out("Hello", "World", text_color=TextColor.RED, sep='\n')  
```

#### Print with end of line and text color
```python
c_out("Hello", "World", text_color=TextColor.RED, end='\t')  
```


And there are many more combinations that you can try yourself.


# Choices

### Current Choices for TextColor
- BLACK
- RED
- GREEN
- ORANGE
- BLUE
- PURPLE
- CYAN
- LIGHTGREY
- DARKGREY
- LIGHTRED
- LIGHTGREEN
- YELLOW
- LIGHTBLUE
- PINK
- LIGHTCYAN

### Current Choices for BackgroundColor
- BLACK
- RED
- GREEN
- ORANGE
- BLUE
- PURPLE
- CYAN
- LIGHTGREY

### Current choices for Styles
- BOLD
- UNDERLINE
- ITALIC
- STRIKETHROUGH
- SELECTED