semvec/pypi-packages huggingface dataset:
softshell 0.1
Turn hard-coded variables into dynamic ones without refactoring.
License: MIT

# softshell

Turn hard-coded variables into dynamic ones without refactoring.

This module allows you to run a script where you replace hard-coded variable assignments with a list of values.
For example, suppose we have some script (`add.py`) that looks like this:

```python
PARAM=2

def add(x, y=2):
    return x + y

print("Adding {} to 2".format(PARAM))
print(add(PARAM))
```

Without changing anything in `add.py`, you just create some configuration (`config.yml`) file like the following:

```yaml

---
path: add.py
configurations:
    - line_number: 1
      variable: PARAM
      value: [1, 2, 3]
```

And then run this:

```
$ softshell -f config.yml python add.py

[{'configurations': [{'line_number': 1,
                      'value': [1, 2, 3],
                      'variable': 'PARAM'}],
  'path': 'add.py'}]
Going through edit 1/3
Configuration is: [('add.py', [(1, 'PARAM', 1)])]
Logs can be found here: /var/folders/km/41mjphdd6553jdjjf32y9jkh0000gn/T/tmp7sr_umua
Going through edit 2/3
Configuration is: [('add.py', [(1, 'PARAM', 2)])]
Logs can be found here: /var/folders/km/41mjphdd6553jdjjf32y9jkh0000gn/T/tmpn5y4b48c
Going through edit 3/3
Configuration is: [('add.py', [(1, 'PARAM', 3)])]
Logs can be found here: /var/folders/km/41mjphdd6553jdjjf32y9jkh0000gn/T/tmpo4vlz7e3
```

You will see three separate log files, each showing the result where we set `PARAM` to 1, 2, 3, respectively:


```
$ cat /var/folders/km/41mjphdd6553jdjjf32y9jkh0000gn/T/tmp7sr_umua
Configuration is: [('add.py', [(1, 'PARAM', 1)])]
Adding 1 to 2
3
$ cat /var/folders/km/41mjphdd6553jdjjf32y9jkh0000gn/T/tmpn5y4b48c
Configuration is: [('add.py', [(1, 'PARAM', 2)])]
Adding 2 to 2
4
$ cat /var/folders/km/41mjphdd6553jdjjf32y9jkh0000gn/T/tmpo4vlz7e3
Configuration is: [('add.py', [(1, 'PARAM', 3)])]
Adding 3 to 2
5
```

More examples can be found in the [examples](examples/) directory

## Installation

```
$ pip install softshell
```
adblockeval 0.3
Evaluates URLs against AdBlock rules efficiently to check which rules would block them, if any.
License: MIT
Requires Python: >= 3.5
Keywords: adblock

# adblockeval

[![Build Status](https://travis-ci.org/hprid/adblockeval.svg?branch=master)](https://travis-ci.org/hprid/adblockeval)
[![codecov](https://codecov.io/gh/hprid/adblockeval/branch/master/graph/badge.svg)](https://codecov.io/gh/hprid/adblockeval)

Evaluates URLs against AdBlock rules efficiently to check which rules would 
block them, if any. It applies Aho-Corasick string matching to reduce the 
number of AdBlock rules that have to be evaluated.

## Status
This project is currently under development. It is already usable, but not
yet well tested against the real world data.
xontrib-powerline-refined 0.4.1
Powerline for Xonsh shell
License: MIT

Xontrib Powerline
=================

Powerline for Xonsh shell.

.. image:: https://github.com/santagada/xontrib-powerline/raw/master/screenshot.png

Install
-------

To install this xontrib first download and install the python package:

.. code:: bash

    pip3 install xontrib-powerline

And them load it on your ``.xonshrc``

.. code:: bash

    xontrib load powerline

Configuration
-------------

There are two variables that can be set, ``PL_PROMPT`` for the right prompt and ``PL_TOOLBAR`` for the bottom toolbar.
They contain a list of sections that can be used separated by ``>``. The value ``!`` means not to use that prompt.

Examples:

.. code:: python

    $PL_TOOLBAR = 'who>virtualenv>branch>cwd>full_proc'
    $PL_TOOLBAR = '!'  # for no toolbar

To see all available sections type ``pl_available_sections``, and to commit changes to your prompt execute ``pl_build_prompt``.

More Info
---------

read more on the `xontrib docs`_ and if you want to create your own on
the `xontrib tutorial`_

Credits
-------

This package was created by Leonardo Santagada with Cookiecutter_ 
and the `laerus/cookiecutter-xontrib`_ project template.

The font being used on the screenshot is the incredible `3270 font`_ with injected characters from `nerd fonts`_.

.. _`nerd fonts`: https://github.com/ryanoasis/nerd-fonts
.. _`3270 font`: https://github.com/rbanffy/3270font
.. _`xontrib docs`: http://xon.sh/xontribs.html
.. _`xontrib tutorial`: http://xon.sh/tutorial_xontrib.html
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`laerus/cookiecutter-xontrib`: https://github.com/laerus/cookiecutter-xontrib