semvec/pypi-packages huggingface dataset:
pyBaseSwap 0.14
A Python library for aggregating token prices and swaps across multiple DEXs
License: MIT
Requires Python: >=3.6

# pyBaseSwap

pyBaseSwap is a Python library designed to facilitate interaction with ERC-20 tokens on the Base L2 Ethereum blockchain. It provides an easy-to-use interface for managing token balances, allowances, and transactions, allowing developers to focus on building their applications without worrying about the complexities of blockchain interactions.

## Warning

> **Warning:** You will be charged a 1% fee on your swap volume during the initial phase. This fee is temporarily set higher to cover server costs and other expenses.


## Supported DEXs
| DEX Name         |  Versions          |
|------------------|------------------|
| SushiSwap        | v2 & v3            |
| BaseSwap         | v2 & v3            |
| PancakeSwap    | v2 & v3            |
| AlienBase           | v2 & v3          |
| SwapBased         | v2 & v3          |

##  [Documentation](https://github.com/BasedTools/pyBaseSwap/blob/main/docs/README.md)
##  [Examples](https://github.com/BasedTools/pyBaseSwap/tree/main/examples)
##  [Pypi Realese](https://pypi.org/project/pyBaseSwap/)


### Installation
You can install the package using pip:
```bash
pip install pyBaseSwap
```
#### Installing from Source
If you prefer to install pyBaseSwap from the source, follow these steps:

##### Clone the repository:
```bash
git clone https://github.com/BaseTools/pyBaseSwap
cd pyBaseSwap
python setup.py install
```

#### `EXAMPLE USE`
```python
from pyBaseSwap import BaseSwap
BS = BaseSwap() # No Token Addresss Provided fallback to USDC

BS.changeToken(
  "0x65e570b560027F493f2b1907e8e8e3B9546053bD" #Tyler Token
)
usdPrice = BS.getUSDPrice() # fetch usd price

print(usdPrice)
```

#### `LICENSE`
```plaintext
MIT License

Copyright (c) [2024] [BasedTools]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
localizer 0.1.1
Localizer - Manage your app translations with ease.
License: MIT
Requires Python: <4.0,>=3.12
Keywords: translation, i18n, cli, localization

# localizer

Manage your app translations with ease. localizer is a command-line tool that helps you manage, validate, and generate translations for your applications.

## Features

- 🚀 **Quick Setup**: Initialize translation configs with a single command
- ✅ **Validation**: Ensure translation references are valid and documented
- 🌍 **Multi-language**: Generate translations for multiple languages
- 📝 **Documentation**: Keep translation contexts organized

## Installation

```bash
pip install localizer-cli
```

## Quick Start

1. Initialize localizer in your project:
```bash
localizer init
```

2. Add languages to your configuration:
```bash
localizer config --add-language fr
```

3. Generate translations:
```bash
localizer translate all -o ./translations
```

## Configuration

When you run `localizer init`, it creates a `.localizer` directory with three files:

### 1. `localizer.config.yaml`
```yaml
files:
  reference: reference.yaml  # Source translations file
  docs: docs.md             # Documentation file
languages:
  - en                      # Default languages
  - ko
  - vi
```

### 2. `reference.yaml`
Your source translations in YAML format:
```yaml
# Example structure
welcome:
  title: "Welcome to our app!"
  subtitle: "Get started by..."
errors:
  not_found: "Page not found"
```

### 3. `docs.md`
Documentation for translators:
```markdown
# Translation Documentation

## Welcome Screen
- `welcome.title`: Main welcome message on the landing page
- `welcome.subtitle`: Secondary text below the welcome message

## Error Messages
- `errors.not_found`: Shown when a page cannot be found
```

## Commands

### Config Management
```bash
# Add a language
localizer config --add-language fr

# Remove a language
localizer config --remove-language fr

# List configured languages
localizer config --list-languages
```

### Validation
```bash
# Validate all documentation references
localizer validate docs

# Validate specific reference
localizer validate ref welcome.title
```

### Translation Generation
```bash
# Generate for specific language
localizer translate generate fr -o fr.json

# Generate for all languages
localizer translate all -o ./translations
```

## CLI Reference

### `localizer init`
Initializes the localizer configuration in your project.

### `localizer config`
| Option | Description |
|--------|-------------|
| `--add-language CODE` | Add a language code |
| `--remove-language CODE` | Remove a language code |
| `--list-languages` | Show configured languages |

### `localizer validate`
| Command | Description |
|---------|-------------|
| `docs` | Validate all docs references |
| `ref PATH` | Validate specific reference path |

### `localizer translate`
| Command | Description |
|---------|-------------|
| `generate LANG [-o FILE]` | Generate translation for language |
| `all -o DIR` | Generate all translations |

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

MIT License - see [LICENSE](LICENSE) for details.