semvec/pypi-packages huggingface dataset:
code-wake-v1rest-store 0.2.1
Code Wake V1 REST API store adapter
Requires Python: >=3.6

# Python Code Wake V1 REST API store adapter (pycodewake-v1rest-store)

[![test](https://github.com/mwri/pycodewake-v1rest-store/actions/workflows/test.yml/badge.svg)](https://github.com/mwri/pycodewake-v1rest-store/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/mwri/pycodewake-v1rest-store/branch/main/graph/badge.svg)](https://codecov.io/gh/mwri/pycodewake-v1rest-store)

This store adapter provides backing via the V1 REST API for Code Wake. A server
implementing this API may be achieved by using pycodewake-v1wsgi-service (a middleware
you could use to provide the API via a Flask server say, if that suits.

For example:

```python
import code_wake
from code_wake_v1rest_store import V1RestStore

cwproc = code_wake.Process(
    app_name="my_app",
    app_vsn="1.2.3",
    env_name="production",
    store=V1RestStore("https://code.wake.server/path/to/api"),
)
```
html-classes-obfuscator 1.0.1
Obfuscate class names in HTML, CSS and Javascript files.
Keywords: html,obfuscator

# 👋 HTML-Classes-Obfuscator 🔒

> CLI tool that obfuscates HTML classes:
>
> _Normal HTML file_ :

```html
<div class="card w-50">
  <div class="card-body">Hello World</div>
</div>
```

> _Obfuscated HTML file_ :

```html
<div class="oywdon tgmvkg">
  <div class=emnpzm>Hello World</div>
</div>
```

## 🚀 Usage

Via command line...

```bash
git clone git@github.com:xandermann/html-classes-obfuscator.git

cp html-classes-obfuscator/html_classes_obfuscator/html_classes_obfuscator.py ./YOUR_PROJECT

python3 html_classes_obfuscator.py --htmlpath="**/*.html" --csspath="**/*.css" --jspath="**/*.js"
```

...Or via a python script

```bash
# https://pypi.org/project/html-classes-obfuscator/
pip install html-classes-obfuscator
```

```python
import glob
import random
import string
from html_classes_obfuscator import html_classes_obfuscator

# [...]

htmlfiles = glob.glob("./**/*.html", recursive=True)
cssfiles = glob.glob("./**/*.css", recursive=True)
jsfiles = glob.glob("./**/*.js", recursive=True)

print(htmlfiles)
print(cssfiles)
print(jsfiles)

# Generate random string
def generate_class(current_classes_list):

    def random_class():
        # Offers (26*2)^6 random class name possibilities
        return ''.join(random.choice(string.ascii_letters) for i in range(6))

    res = random_class()

    while res in current_classes_list.values():
        res = random_class()

    return res

html_classes_obfuscator.html_classes_obfuscator(htmlfiles, cssfiles, jsfiles, generate_class)
```

---

## ⚠️️ Important notes

1. **Make a backup before use.**
2. DON'T use if you have duplicate class names in your css files.
3. If you modify the class generator, be sure that the generated name doesn’t begin with a number:

> In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit. Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier “B&W?” may be written as “B&W?” or “B\26 W\3F”.
> https://www.w3.org/TR/CSS21/syndata.html#characters

## ✅ Run tests

```python
python3 -m unittest tests/*.py
```

## 🤝 Contributing

Contributions, issues and feature requests are welcome.

Feel free to check issues page if you want to contribute.

Check the contributing guide.
broccoli-server 7.2.8
A Python framework to build web scraping applications.

# broccoli-server
[![Build Status](https://travis-ci.org/k-t-corp/broccoli-server.svg?branch=master)](https://travis-ci.org/k-t-corp/broccoli-server)
[![PyPI version](https://badge.fury.io/py/broccoli-server.svg)](https://badge.fury.io/py/broccoli-server)

A Python framework to build web scraping applications.

## Problem Statement
* I want to
    * Scrape contents (images, texts, etc) from places on the web (RSS, Twitter, parsing HTML, etc)
    * Moderate and modify them internally on a web UI
    * Expose them in a public API
* Without having to re-implement, for different scraping applications
    * Reliable "cron" jobs that scrape the content
    * A pipeline that processes the contents stage by stage
    * Internal web UIs that allow human to moderate the contents as a pipeline stage


## Solution
This is a Python framework that extracts out common components in the scraping, processing and moderating of web contents,
and provides interfaces for programmers to implement "business logic" with, so that they can build reliable and easy-to-use web scraping applications in less time.

## Getting started
WIP (https://github.com/k-t-corp/broccoli-server/issues/124)

## Development
### Prerequisites
* `Python 3.9`
* `Make`

### Prepare virtualenv
```bash
make venv
```

### Develop
```bash
make deps
```

### Test
```bash
make test
```