semvec/pypi-packages huggingface dataset:
namecom 0.6.0
Python SDK for name.com
Keywords: name.com v4 sdk

## Python sdk for name.com v4 api


#### Installation
```
pip install namecom --upgrade
``` 


#### Command line guidance

If you do not want to append --name and --token to the command every time, run the following command should do some help
```bash
export NAMECOM_NAME=<your namecom username>
export NAMECOM_TOKEN=<your namecom token>
```


To delete a DNS record
```bash
namecli create-dns 
    --domain example.org
    --host www
    --dns-type A
    --answer 127.0.0.1
    --name <your namecom username>
    --token <your namecom token>
```

To delete a DNS record
```bash
namecli delete-dns 
    --domain example.org
    --host www
    --name <your namecom username>
    --token <your namecom token>
```

To create a DDNS record
```bash
namecli ddns 
    --domain example.org
    --host www
    --name <your namecom username>
    --token <your namecom token>
```

#### SDK development

So far, not all name.com api are supported.

Initialization
```python
from namecom import Name
name = Name(name, token)
name.list_records("example.org", page=1, perPage=1000)
name.delete_record("example.org", id_="12345", )
name.create_record("example.org", "www", "A", "127.0.0.1")
```
literate-dataclasses 0.0.6
A simple dataclasses wrapper for easier documentation of dataclasses
Requires Python: >=3.8

literate-dataclasses
====================

This is a work-in-progress library to add documentation functionality to ``dataclasses`` introduced in Python 3.7.
The library can be used as a drop-in replacement for the standard ``dataclasses`` and can be installed from PyPI_.

.. code:: bash

    $ pip install literate_dataclasses


Literate dataclasses modify their own class docstrings and add attribute docs in [Google code style](https://google.github.io/styleguide/pyguide.html)
with the goal of removing redundant code. The docs can be written as follows:

.. code:: python 

    from literate_dataclasses import dataclass, field

    @dataclass(test_arg = "hello")
    class Test:
        """My dataclass
        
        Some comment.
        
        Args:
            See dataclass signature.
        """
        
        x: int = field(default = 42, doc = \
        """Some value x."""
        )
        
        y: int = field(default = 72, doc = \
        """Some value x."""
        )
            
        name: int = field(default = 'foo', doc = \
        """The object name.""",
        )
            
    test = Test(x = 5, y = 3)
    help(Test)

which will generate the output

.. code:: 

    Help on class Test in module __main__:

    class Test(builtins.object)
    |  Test(x: int = 42, y: int = 72, name: int = 'foo') -> None
    |  
    |  My dataclass
    |  
    |  Some comment.
    |  
    |  Args:
    |      x: Some value x.
    |      y: Some value x.
    |      name: The object name.

.. _PyPI: https://pypi.org/stes/literate_dataclasses/