semvec/pypi-packages huggingface dataset:
cfcommander 0.1.15
A simple Cloudflare DNS CLI tool
Requires Python: >=3.8

# cfcommander

**cfcommander** is a simple CLI tool for managing DNS records in Cloudflare. After installing via `pip`, you can use it with the `cf` command.

## Installation

```bash
pip install cfcommander
```

## Configuration

Before using the tool, configure your Cloudflare API credentials:

```bash
cf config your_email@example.com your_api_key
```

This saves your credentials to `~/.cfcli_config.json`.

## Usage

### Add a DNS record

```bash
cf add example.com A home 192.0.2.1 yes 120
```

- `example.com` – The zone name (your domain).
- `A` – Record type (A, CNAME, etc.).
- `home` – Subdomain (creates `home.example.com`).
- `192.0.2.1` – The record value (e.g., an IP address).
- `yes` – Whether the record is proxied through Cloudflare (`yes/no`).
- `120` – TTL (Time-To-Live in seconds).

### Edit a DNS record

```bash
cf edit example.com A home 198.51.100.42 no 300
```

### Delete a DNS record

```bash
cf del example.com A home
```

### List all DNS records for a domain

```bash
cf list example.com
```

### List all manageable domains

```bash
cf domains
```

## Examples

```bash
# Configure API credentials
cf config user@example.com my_api_key

# Add an A record for home.example.com
cf add example.com A home 203.0.113.10 no 3600

# Modify an existing record
cf edit example.com A home 198.51.100.42 yes 1800

# Delete a record
cf del example.com A home

# List all DNS records for a domain
cf list example.com

# List all domains under your Cloudflare account
cf domains
```

## Dependencies

- Python 3.6+
- Required libraries: `requests`, `argparse`, `tabulate`, `json`, `sys`, `os`, `textwrap`

## License

MIT License © Jakub Jim Zacek
python-rpa 0.0.4
A description of your package
Requires Python: >=3.9

# Get Started
```bash
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```

# How to Test (Pacakge, Module)
- [pytest documentation](https://docs.pytest.org/en/stable/)

![pytest-example](../docs/images/pytest-example.png)

```bash
source venv/bin/activate
cd python
pytest --password ${CONFLUENCE_PASSWORD} tests/confluence_utils

pytest --password ${CONFLUENCE_PASSWORD}
```

# How to Build
```bash
# DEPRECATED
# python setup.py sdist bdist_wheel

pip install build

python -m build
```

# How to Deploy
```bash
pip install twine

twine upload dist/*
```

# Confluence Utils
- [confluence-developer-documentation](https://developer.atlassian.com/cloud/)
- [confluence-rest-api](https://developer.atlassian.com/server/confluence/rest/v912/intro/#about)
- [confluence-rest-api-examples](https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/)
- [confluence cql search](https://confluence.hmg-corp.io/plugins/servlet/scriptrunner/enhancedsearch/)
- [confluence cql quide](https://docs.adaptavist.com/sr4c/8.34.0/get-started/cql-guide)

```python
from confluence_utils import confluence_api


base_url = "https://confluence.hmg-corp.io"
username = "Confluence ID"      # 사번
password = "Confluence 비밀번호"

page_info = confluence_api.get_page_info(page_id="931614920", 
                                         base_url=base_url, 
                                         usernamme=username, 
                                         password=password)

confluence_api.update_page(page_id="931614920", 
                           content="", 
                           base_url=base_url, 
                           usernamme=username, 
                           password=password)
```

# Selenium Utils
```python
from selenium_utils import crawler


element = crawler.get_element_by_xpath(url="url", xpath="xpath")
elements = crawler.get_elements_by_xpath(url="url", xpath="xpath")
```