semvec/pypi-packages huggingface dataset:
confcogs 0.1.0
Lib for managing .cogs file
License: MIT
Requires Python: >=3.6

# confcogs

`confcogs` is a lightweight Python library for managing `.cogs` configuration files. It allows you to easily add, edit, fetch, and remove key-value pairs in `.cogs` files.

---

## Installation

Install `confcogs` using pip:
```bash
pip install confcogs
```

---

## Usage

### Import the Library
```python
import confcogs
```

### Setting the Path
Set the path to your `.cogs` file:
```python
path = 'settings/load.cogs'
```

### Adding Key-Value Pairs
Add new key-value pairs:
```python
confcogs.acog(path, 'loaded', 'True')
confcogs.acog(path, 'debug', 'False')
```

### Fetching a Value
Retrieve a value from the `.cogs` file:
```python
value = confcogs.fcog(path, 'loaded')  # Output: 'True'
```

### Editing a Value
Edit an existing value:
```python
confcogs.ecog(path, 'debug', 'True')
```

### Removing a Key
Remove a key-value pair:
```python
confcogs.rcog(path, 'debug')
```

### Loading All Configurations
Load the entire `.cogs` file as a dictionary:
```python
config = confcogs.lcog(path)  # Output: {'loaded': 'True'}
```

---

## Example
Hereâ€™s a complete example:
```python
import confcogs

path = 'settings/load.cogs'

# Add key-value pairs
confcogs.acog(path, 'loaded', 'True')
confcogs.acog(path, 'debug', 'False')

# Fetch a value
print(confcogs.fcog(path, 'loaded'))  # Output: True

# Edit a value
confcogs.ecog(path, 'debug', 'True')

# Remove a key
confcogs.rcog(path, 'debug')

# Load all configurations
print(confcogs.lcog(path))  # Output: {'loaded': 'True'}
```

---

## File Format
`.cogs` files use a simple key-value format:
```plaintext
key: 'value';
```

Example:
```plaintext
loaded: 'True';
debug: 'False';
```

---

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
netdog 0.1.10
It is like netcat implemented in python.
License: MIT
Requires Python: <3.13,>=3.12

# netdog
It is like netcat implemented in python.

## Description  


## Install 

### Requirement

#### Dependency 
- termcolor>=2.5.0  

#### On Windows
- python >= 3.12  
Because netdog using os.set_blocking(). that function was supported on Windows since python 3.12.

### PYPI
```
pip install netdog
```

### Windows Executable file 
There is a pre-built `netdog.exe` using pyinstaller. [(Download here)](https://github.com/vz-shark/netdog/tree/main/dist_exe)

## Usage

```
$ netdog -h
usage: netdog [-l] [-u] [-C] [-h] [-V] [-v] [-e cmd] [--lbcnet {LF,CRLF,CR}] [--lbcsub {LF,CRLF,CR,auto}]
              [--encnet ENCNET] [--encsub ENCSUB]
              [hostname] port

netdog is a networking tool like netcat.

netcat compatible argument:
  hostname              Address of bind / connect to.
  port                  Port to listen, forward or connect to
  -l, --listen          Listen mode: Enable listen mode for inbound connects
  -u, --udp             UDP mode
  -C, --crlf            same as '--lbcnet CRLF'
  -h, --help            Show this help message and exit
  -V, --version         Show version information and exit

netdog extended argument.:
  -v, --verbose         Verbose. Use -vv or -vvv for more verbosity.
  -e cmd, --exec cmd    Execute command
  --lbcnet {LF,CRLF,CR}
                        Line break code for network.    (default: LF)
  --lbcsub {LF,CRLF,CR,auto}
                        Line break code for subprocess. (default: auto)
  --encnet ENCNET       Encoding for network.    (default: 'utf-8')
  --encsub ENCSUB       Encoding for subprocess. (default: 'utf-8')

[Examples]:

* Delegate application layer behavior to other programs via stdin/stdout of subprocess.
  In other words, using PIPE to make correspond recv() to stdin, and correspond stdout to send().

  The following is an example of a simple HTTP GET method.

    > netdog -v -e 'python -u httpget.py' 127.0.0.1 80

    ---httpget.py---
    print("GET / HTTP/1.1\r\n", end="")
    while(True):
      res = input()
      print(f"response = {res}", file=sys.stderr)
    ----------------

```