semvec/pypi-packages huggingface dataset:
bestring 1.1.0
More things to do with strings

# More things to do with strings!

## Example:
```python
from bestring import *
truncate("This is a very long text.") # Output: This is a very long ...
toDomain("Hello world!") # Output: https://www.hello-world.com
wordsCount("i love python") # Output: 3
removeDigits("33p3y3t3h3o3n33") # Output: python
lower("some text", False) # Output: SOME TEXT
upper("SOME TEXT", False) # Output: some text
lower("SOME TEXT", True) # Output: some text
upper("some text", True) # Output: SOME TEXT
replaces("some text", ["s", "t", "x", "m"], "h") # Output: hohe hehh
flip("nohtyp") # Output: python
generateId(length = 5) # Returns random id, example: abc12
allowedOnly("123 some 777", "1234567890s") # Output: 123s777
```

## Installation:
```bash
pip install bestring
```
### If wont work:
```bash
pip3 install bestring
```

# Enjoy!
iflow-mcp_ibaic_cobalt-strike-mcp 1.0.2
Cobalt Strike MCP Server - provides access to Cobalt Strike API operations
Requires Python: >=3.8

# Cobalt Strike MCP Server

An MCP (Model Context Protocol) server that provides access to Cobalt Strike API operations.

## Features

- **Automatic Authentication**: Authenticates with Cobalt Strike API and manages bearer token
- **Dynamic Tool Generation**: Automatically creates MCP tools from the OpenAPI specification
- **Full API Coverage**: Exposes all Cobalt Strike API operations as MCP tools

## Setup

1. Install dependencies:
```bash
pip install -r requirements.txt
```

2. Configure environment variables (copy `.env.example` to `.env` and edit):
```bash
cp .env.example .env
```

3. Set your Cobalt Strike credentials:
```bash
export CS_BASE_URL="https://your-cs-server:50443"
export CS_USERNAME="your-username"
export CS_PASSWORD="your-password"
export CS_VERIFY_SSL="false"  # Set to "true" if using valid SSL cert
```

## Usage

### Running the Server

```bash
python server.py
```

### Using with MCP Client

Add to your MCP client configuration (e.g., Claude Desktop):

```json
{
  "mcpServers": {
    "cobalt-strike": {
      "command": "python",
      "args": ["/path/to/CS-MCP/server.py"],
      "env": {
        "CS_BASE_URL": "https://your-cs-server:50443",
        "CS_USERNAME": "your-username",
        "CS_PASSWORD": "your-password",
        "CS_VERIFY_SSL": "false"
      }
    }
  }
}
```

## How It Works

1. **Authentication**: On startup, the server authenticates with `/api/auth/login` and retrieves a bearer token
2. **API Client Initialization**: Creates an HTTP client with the bearer token in the Authorization header
3. **OpenAPI Spec Loading**: Fetches the OpenAPI specification from `/v3/api-docs`
4. **Tool Generation**: Dynamically creates MCP tools for each API operation
5. **Request Handling**: Routes tool calls to the appropriate API endpoints with proper authentication

## Environment Variables

- `CS_BASE_URL`: Base URL of the Cobalt Strike server
- `CS_USERNAME`: Username for authentication (required)
- `CS_PASSWORD`: Password for authentication (required)
- `CS_VERIFY_SSL`: Whether to verify SSL certificates (default: `false`)

## Security Notes

- Store credentials securely (use environment variables, not hardcoded values)
- Consider using SSL certificate verification in production (`CS_VERIFY_SSL=true`)
- The bearer token is managed automatically and refreshed as needed
mtcli-trade 2.0.0.dev2
Plugin mtcli para gerenciamento de órdens
Requires Python: <3.14.0,>=3.10

# mtcli-trade
  
Este é um plugin para mtcli que adiciona o comando trade para gerenciamento de ordens e posições.
  
---
  
## Instalação
  
```cmd
pip install mtcli-trade
```
  
---
  
## Comandos
  
- compra a mercado: `mt trade buy --symbol WINV25` (compra a mercado o ativo WINV25).  
- compra limitada: `mt trade buy --symbol WINV25 --limit --preco 140200` (compra limitada do WINV25 no preço 140200).  
- venda a mercado: `mt trade sell --symbol WINV25` (vende a mercado o ativo WINV25).  
- venda limitada: `mt trade sell --symbol WINV25 --limit --preco 140800` (venda limitada do WINV25 no preço 140800).  
- exibe todas as ordens pendentes:  
`mt trade orders` (exibe todas as ordens pendentes),  
`mt trade orders --symbol WINV25`(exibe todas as ordens pendentes de WINV25).  
- Cancela todas as ordens pendentes:  
`mt trade cancel` (cancela todas as ordens pendentes),  
`mt trade cancel --symbol WINV25`(cancela todas as ordens pendentes de WINV25).  
- exibe todas as posições abertas:  
`mt trade pos` (exibe todas as posições abertas),    
`mt trade pos --symbol WINV25`(exibe todas as posições abertas de WINV25).  
- Encerra todas as posições abertas:  
`mt trade zera` (encerra todas as posições abertas),    
`mt trade zera --symbol WINV25`(encerra todas as posições abertas de WINV25).