semvec/pypi-packages huggingface dataset:
pancli 0.1.9
pansihub command-line tools.

# pancli
pancli (also known as Pansi Cli), is a tool for running scrapy spider or interacting to ScrapyDD server.

pancli give some useful supplymentary functions to scrapy command line, some of the functions are:
1. Execute spider from a egg packaged project.
2. Install package required libraries at run-time if necessary.
3. Package a scrapy project into egg.


# Installation
pancli is available on pypi, you can install it by simply run:

```
pip install pancli
```

# Usages
## Run a spider

Run a spider is very easy by executing `pancli crawl {spider_name}`, the command is compatiable with `scrapy crawl`

One special and the most wonderful parameter is the `-f ` parameter, which specifies a FIGURE file in which all settings/parameters/plugins of a spider can be writen as a simple JSON/YAML file. If you run spider very often, FIGURE file can save tons of time.

FIGURE fields:

* spider: the target spider name which is the same in the `scrapy list` command.
* settings: (dict) settings can be used to populate all settings at runtime, not only the literal/string values, but list/dicts

And other parameters, the more detail documentation is coming soon.

## package a spider
A packaged spider is extremely portable, with one spider package and a FIGURE file, you can easily crawl the whole internet.

When your current dir is in the scope of scrapy project(with any ancient folder which contains a scrapy.cfg file), you can easily run the following commmand to build a spider package.

```
pancli package
```

If you haven't create setup.py for the project, this command will help you create one.

And this command is inspired by [scrapyd-client](https://github.com/scrapy/scrapyd-client)
hea-aiohttp-remotes 1.2.1
Control remote side information.
Requires Python: >=3.6

===============
aiohttp-remotes
===============

The library is a set of useful tools for ``aiohttp.web`` server. It is a 
hopefully temporary fork of the aiohttp-remotes project containing a fix for
parsing the X-Forwarded-Host header.

The full list of tools is:

* ``AllowedHosts`` -- restrict a set of incoming connections to
  allowed hosts only.
* ``BasicAuth`` -- protect web application by *basic auth*
  authorization.
* ``Cloudflare`` -- make sure that web application is protected
  by CloudFlare.
* ``ForwardedRelaxed`` and ``ForwardedStrict`` -- process
  ``Forwarded`` HTTP header and modify corresponding
  ``scheme``, ``host``, ``remote`` attributes in strong secured and
  relaxed modes.
* ``Secure`` -- ensure that web application is handled by HTTPS
  (SSL/TLS) only, redirect plain HTTP to HTTPS automatically.
* ``XForwardedRelaxed`` and ``XForwardedStrict`` -- the same
  as ``ForwardedRelaxed`` and ``ForwardedStrict`` but process old-fashion
  ``X-Forwarded-*`` headers instead of new standard ``Forwarded``.


Read https://aiohttp-remotes.readthedocs.io for more information.



The library was donated by Ocean S.A. https://ocean.io/

Thanks to the company for contribution.
bfscale 0.1.1
Best fit image scaling
Requires Python: >=3.5

# bfscale

Best Fit Scale (bfscale) is a image downscaling method to create the highest possible image quality upon upscaling/upsampling with a certain scaling method (in this instance bilinear). This is achieved by fitting the parameters of the upscaling model to sections of the original image. In the case of bilinear, this can be done with a simple linear regression.

Bfscale was originally developed for improved Signed Distance Fields (SDFs), but was separated due to its broader usefulness.

Source: https://github.com/GroveDG/bfscale

PyPi: https://pypi.org/project/bfscale

## Dependencies
<ul>
  <li>Numpy</li>
</ul>

## How to Use
bfscale only has one function: **bfscale.scale(img, scale)**.
<ul>
  <li>Returns an numpy image downscaled by a factor of scale, which must be an integer factor of the image shape.</li>
</ul>

## Image Comparison

<table>
  <tr>
    <th>Unscaled</th>
    <th>Bfscale 20% Scale</th>
    <th>Linear 20% Scale</th>
  </tr>
  <tr>
    <td><img alt="Billiard Balls A. Unscaled" src="https://github.com/GroveDG/bfscale/assets/87248833/c7cd6e43-19ee-42fd-b5c6-9bda1a5ca9cf" width="10000"></td>
    <td><img alt="Billiard Balls A. Bfscaled" src="https://github.com/GroveDG/bfscale/assets/87248833/2d009578-bb3e-41f2-9a61-929046fa8b24" width="10000"></td>
    <td><img alt="Billiard Balls A. Linear Scaled" src="https://github.com/GroveDG/bfscale/assets/87248833/d3e676e0-0d85-48b9-bbfa-8424deb805b1" width="10000"></td>
  </tr>
  <tr>
    <td><img alt="Billiard Balls A. Unscaled Cropped" src="https://github.com/GroveDG/bfscale/assets/87248833/694e895e-371f-46f2-b402-e73b217b4e3e" width="10000"></td>
    <td><img alt="Billiard Balls A. Bfscaled Cropped" src="https://github.com/GroveDG/bfscale/assets/87248833/4c58f538-9e88-4f3a-a81c-8d1a4ab37437" width="10000"></td>
    <td><img alt="Billiard Balls A. Linear Cropped" src="https://github.com/GroveDG/bfscale/assets/87248833/85bd749a-caa5-43a2-bd15-056542cfe61c" width="10000"></td>
  </tr>
</table>
<details>
  <summary>Image Source</summary>
  <p>Copyright (C) 2011-2014 Nicola Asuni - Tecnick.com LTD</p>
  <p>The images shown are part of the TESTIMAGES project: http://testimages.tecnick.com</p>
</details>
fcolors 0.0.3
A simple fstring-friendly string colorizer
Requires Python: >=3.8

# colors

Colors is a simple library that makes it easier to use colors in fstrings.
The standard ansi colors are (in order):

- Black
- Red
- Green
- Yellow
- Blue
- Pink
- Cyan
- White

These are accessible in the following variations:

- (f)ore(g)round
- (b)ack(g)round
- (u)nder(line)d
- (bold)ed
- (f)ore(g)round_(hi)lighted
- (b)ack(g)round_(hi)lighted
- (bold)_(hi)lighted

Forground, Background, Underline, and Bold can all be chained together in any order, as:

```python3
f"{uline.blue}{bg.red}red underlined text{reset}"
```

Highlighted colors must be custom-built due to a difference in how their codes are constructed.
This can be done as so:

```python3
f"{all_hi(Color.Blue, Color.White, bold=0)}this is white on blue text, unbolded{reset}"
```

While I may end up figuring out a way around this, it will not be soon. Feel free to use these features as-is.


## Installation
```sh
$ pip3 install colors
```

or

```sh
$ python3 setup.py install
```

## Examples
### Hello, World!
```python3
from fcolors.fcolors import fg, bg, bold, reset

print(f"{bg.blue}{bold.white}Hello, World!{reset}")

```
### A tree that talks
```python3
from fcolors.fcolors import fg, fg_hi, bg, bg_hi, bold, reset, all_hi, Color

canopy = f"{fg.green}"
leaves = f"{fg.green}"
wood   = f"{bold.yellow}"
grass  = f"{bg_hi.green}"
text   = f"{bold.white}"
c = canopy
l = leaves
w = wood
x = reset
t = text

def rgb(string):
    chars = [c for c in string]
    for index in range(len(chars)):
        chars[index] = bold.colors[index % len(bold.colors)-1] + chars[index]
    return ''.join(chars) + f'{text}'
picture = (
f"""\
  {c}__________{x}  {t}  ______________________
 {l}/       )  \{x} {t} /                      \ 
{l}| (          |{x}{t}|  Have fun using my     |
 {l}\________)_/{x} {t}|    {rgb('fcolors')} package!    |
   {w}|  ||  |{x}   {t}|   - Jayson             |
    {w}\ -- /{x}    {t} \    __________________/
     {w}|  |{x}     {t}  | _/
     {w}|  |{x}     {t} <_/
     {w}|  |{x}
     {w}|  |{x}
{grass}                                              {reset}""")

print(picture)
```


## License

See LICENSE.
whimsylib 1.4.2
A generic game engine for text-based games, inspired by adventurelib.
Requires Python: >=3.8

[![PyPI version](https://img.shields.io/pypi/v/whimsylib.svg)](https://pypi.org/project/whimsylib/)

# whimsylib

A game engine for text-based games, inspired by [adventurelib](https://github.com/lordmauve/adventurelib).

This is currently the game engine behind [cronenbroguelike](https://github.com/Cronenbrogues/cronenbroguelike).

## Develop

Set up a virtualenv and install the dev requirements.

```
python3.8 -m venv venv
source venv/bin/activate
pip install -r requirements/requirements-dev.txt
```

## Release

Update the version number in `setup.py`, and then push a new tag with that version number. This will trigger a Github Action that publishes the new version to [PyPI](https://pypi.org/project/whimsylib/).

## API Documentation

Coming soon!