semvec/pypi-packages huggingface dataset:
xed 0.0.5
A utility for performing basic text transformations.
Requires Python: >=3.6

# xed

xed is a command-line tool for performing basic text transformations, modeled
after the utility [sed](https://en.wikipedia.org/wiki/Sed).

Example invocation:

```
$ echo "Hello, world!" | xed replace Hello Goodbye
Goodbye, world
```

For more information, [visit xed's website](https://xed.aryan.app).
napalm-dlink 0.1.0
NAPALM driver for Dlink

# napalm-dlink
Requirements
************
For driver needs a preconfigured TFTP server because Dlink devices can download config only from TFTP/FTP server. 
Default path: /tmp
************
Tested on device Dlink 1210-28
************

Сompletion status:
- [x] _send_command
- [x] is_alive
- [x] load_replace_candidate
- [x] load_merge_candidate
- [x] compare_config - This device doesn't contain a builtin function for compare config.
- [ ] commit_config
- [ ] discard_config
- [ ] rollback
- [ ] get_optics
- [x] get_lldp_neighbors
- [x] get_lldp_neighbors_detail
- [x] get_facts
- [x] get_interfaces
- [x] get_interfaces_ip
- [x] get_interfaces_counters
- [ ] get_environment
- [x] get_arp_table
- [x] cli
- [ ] get_ntp_peers (D-Link doesn't support this option)
- [x] get_ntp_servers
- [ ] get_ntp_stats
- [x] get_mac_address_table
- [ ] get_probes_config (D-Link doesn't support this option)
- [x] get_snmp_information
- [x] get_users
- [x] ping
- [ ] traceroute
- [x] get_config
serialclass 0.0.2.121
A base class to get well-formatted serialized representations of child classes
Requires Python: >=3.6

# serialclass
A base class to get serialized representations of any Python class

[![gavanaken](https://circleci.com/gh/circleci/circleci-docs.svg?style=shield)](https://circleci.com/gh/gavanaken/serialclass)

## Install
```
pip install serialclass
```

## Usage
```
from serialclass import SerialClass


class InnerClass(SerialClass):

    def __init__(self, id_key):
        self.id_key = id_key


class Outerclass(SerialClass):

    def __init__(self):
        self._attribute = 'attribute'
        self._list = ['a', 'list']
        self._dict = {1: InnerClass('a'), 2: InnerClass('b')}


outclass = Outerclass()
```
```
outclass.serialize()  # dict

>>>> {'Outerclass': {'_attribute': 'attribute', '_dict': {1: {'InnerClass': {'id_key': 'a'}}, 2: {'InnerClass': {'id_key': 'b'}}}, '_list': ['a', 'list']}}'
```
```
outclass.serialize(depth=1)  # do not recurse

>>>> {'Outerclass': {'_attribute': 'attribute', '_dict': {1: <__main__.InnerClass object at 0x000001DC95C800C8>, 2: <__main__.InnerClass object at 0x000001DC95C801C8>}, '_list': ['a', 'list']}}
```
```
outclass.stringify()  # json string

>>>> {"Outerclass": {"_attribute": "attribute", "_dict": {"1": {"InnerClass": {"id_key": "a"}}, "2": {"InnerClass": {"id_key": "b"}}}, "_list": ["a", "list"]}}
```
```
outclass.pstringify(indent=2)  # json string with indent (default=4)

>>>> {
    "Outerclass": {
        "_attribute": "attribute",
        "_dict": {
            "1": {
                "InnerClass": {
                    "id_key": "a"
                }
            },
            "2": {
                "InnerClass": {
                    "id_key": "b"
                }
            }
        },
        "_list": [
            "a",
            "list"
        ]
    }
}
```
```
outclass.pstringify(indent=2, ignore_protected=True))  # ignore _ - prefaced attributes
>>>> {
    "Outerclass": {}
}
```