semvec/pypi-packages huggingface dataset:
sawari 1.0.6
extract URLs, strings, and more from JavaScript code
License: MIT
Requires Python: <4.0,>=3.11

# ṣàwárí
> ṣàwárí (ṣe àwárí) means 'to discover, explore, or search' in Yorùbá

Extract URLs, strings, and more from JavaScript code using tree-sitter.

## Features
- **URLs Mode** - Extract API endpoints, URLs, and paths with intelligent variable resolution
- **Strings Mode** - Extract all string literals and template strings
- **Tree Mode** - Visualize Abstract Syntax Tree structure
- **Inspect Mode** - Discover node types and code patterns
- **Query Mode** - Custom tree-sitter queries for pattern matching

## Installation
**ṣàwárí** requires at least Python 3.11

```bash
pip install sawari
```

## Usage
Read more in the [documentation](docs/)

### Extract URLs and API endpoints
```bash
sawari urls app.js --include-templates
sawari urls bundle.js --context '{"API_URL":"https://api.example.com"}'
```

### Find potential secrets
```bash
sawari strings app.js --min 20 | grep -i "key\|token\|secret"
```

### Visualize code structure
```bash
sawari tree app.js --only-named
```

### Custom pattern matching
```bash
sawari query app.js --query '(function_declaration name: (identifier) @name)'
```

## Related Tools
- [LinkFinder](https://github.com/GerbenJavado/LinkFinder)
- [jsluice](https://github.com/BishopFox/jsluice/tree/main/cmd/jsluice)

## License

[MIT](LICENSE.md)
bot-formatter 0.1.2
A formatter for Discord bots.
License: MIT
Requires Python: >=3.10
Keywords: discord, discord.py, py-cord, ezcord, pre-commit

[![Bot Formatter](docs/assets/logo.png)](https://github.com/CookieAppTeam/bot-formatter)

[![](https://img.shields.io/pypi/v/bot-formatter.svg?style=for-the-badge&logo=pypi&color=yellow&logoColor=white)](https://pypi.org/project/bot-formatter/)
[![](https://img.shields.io/readthedocs/bot-formatter?style=for-the-badge&color=blue&link=https%3A%2F%2Fbot-formatter.readthedocs.io%2F)](https://bot-formatter.readthedocs.io/)
[![](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&style=for-the-badge)](https://github.com/pre-commit/pre-commit)

A formatter and language file validator for Python Discord bots.

- ✏️ Includes formatters for `Pycord` and `discord.py`.
- 📚 Format and compare YAML files.
- 📝 Supports [Ezcord](https://github.com/tibue99/ezcord) language files.

## Installing
Python 3.10 or higher is required.
```
pip install bot-formatter
```

## Usage
To format a file, run:
```
bot-formatter main.py
```
To format YAML language files in a directory, run:
```
bot-formatter --lang path/to/language/dir
```
To view all available options, run:
```
bot-formatter --help
```

For a full overview, see the [documentation](https://bot-formatter.readthedocs.io/).

## Pre-Commit
To use `bot-formatter` as a pre-commit hook, add the following lines to your `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/CookieAppTeam/bot-formatter
  rev: 0.1.2
  hooks:
    - id: bot-formatter
```