semvec/pypi-packages huggingface dataset:
treeshake 0.3.1
Remove unused css in Python projects with C-powered tree shaking.
Requires Python: >=3.6

# Treeshake
![](https://img.shields.io/pypi/status/treeshake?style=flat-square)
![](https://img.shields.io/github/repo-size/jackmanapp/treeshake?style=flat-square)
![](https://img.shields.io/github/last-commit/jackmanapp/treeshake?style=flat-square)
![](https://img.shields.io/maintenance/yes/2021?style=flat-square)

Ever used a CSS framework and cried about all the overhead it caused? Ever wrote so much CSS that you were no longer aware what parts of it were actually used? Fear no more. Just use `treeshake` before deployment and all of your troubles will melt away.

## Dead code elimination
Tree shaking is a concept mostly used in ECMAScript languages like Dart, JavaScript and Typescript that helps to eliminate unused code. Optimizing your code in a single bundle.

This project aims to bring the power of tree shaking for css to your Python projects. This small library is written in [Cython](https://cython.readthedocs.io/) and allows you to get the best performance out of your (potentially) bloated web applications.

## Installation
It is recommended to install treeshake via pip:
```commandline
pip install treeshake
```

## Command Line Support
To quickly use treeshake, call it via command line:
```commandline
shake <css dir> <html dir>
python3 -m treeshake <css dir> <html directory>
```
If you wish to see an interactive prompt, just use `shake` or `python3 -m treeshake`. The current support is only for a single directory.
To see help, please run: `shake -h`.

## Quick example
The following piece of codes recursively adds all css files from `/styles/` and all html files from `/html` and compares the contents. Where possible, it will eliminate styling.

The new file is written to the `/out/` output directory.

```python
from treeshake import Shaker

treeshaker = Shaker()
treeshaker.discover_add_stylesheets('./styles/', True)
treeshaker.discover_add_html('./html/', True)
treeshaker.optimize('./out')
```

## Contributing
Any contribution to this project is very welcome. Please open an issue when you are dealing with a problem or want to discuss a feature. All contributions are handled by pull requests.

Please refer to [CONTRIBUTING.md](https://github.com/jackmanapp/treeshake/blob/main/CONTRIBUTING.md) for more information.
bugu_bot 1.1
适用于nb的孤寡机器人插件

<div align="center">

# 布谷机器人,增进你和你单身朋友的友谊

</div>

## 使用方式

- 先创建群聊，可以起一个好听一点的名字例如

![avatar](/图/名字.png)

- 然后把你的机器人拉进来，并给一个管理

![avatar](/图/拉人.png)

- 最后,邀请受害人加入本群即可(小于 50 不需要同意哦！)