semvec/pypi-packages huggingface dataset:
gsozo-pkg 0.0.7
Gsozo PKG
Requires Python: >=3.8

# Grupo sozo Package

Set of python modules to implements or extend interfaces, like: extend pipedrive or mailchimp (third party module)


# gsozo_pkg
![](https://img.shields.io/badge/version-0.7.1-success) ![](https://img.shields.io/badge/Python-%203.8%20|%203.9%20|%203.10%20-4B8BBE?logo=python&logoColor=white)
<br />*gsozo_pkg* is an API wrapper for [Pipedrive](https://www.pipedrive.com/) written in Python.

## Installing
```
pip install gsozo-pkg
```

## Usage

### Using this library with API Token

#### Client instantiation
```python
from gsozo_pkg.pipedrive import Client

client = Client("CLIENT_ID", "CLIENT_TOKEN")
```

### Activities 

API docs: https://developers.pipedrive.com/docs/api/v1/Activities

#### Get all activity types
```python
response = client.activities.get_activity_types()
```

### Deals

API docs: https://developers.pipedrive.com/docs/api/v1/Deals <br />
API docs: https://developers.pipedrive.com/docs/api/v1/DealFields

#### Get one deal field
```python
response = client.deals.get_deal_one_field('FIELD_ID')
```

#### Update a deal field
```python
data = {
    'id': ''
}
response = client.deals.update_deal_field('FIELD_ID', data)
```

#### Delete a participant from a deal
```python
response = client.deals.delete_participant_to_deal_by_person_id('DEAL_ID', 'PERSON_ID')
```

### Organizations

API docs: https://developers.pipedrive.com/docs/api/v1/Organizations

#### Add a follower to an organization
```python
response = client.organizations.add_follower_to_organization('ORGANIZATION_ID', 'USER_ID')
```

### Persons 

API docs: https://developers.pipedrive.com/docs/api/v1/Persons

#### Get all persons
```python
response = client.persons.get_all_persons('*ARGS', 'PAGINATION_ON' = TRUE)
```

#### List activities associated with a person
```python
response = client.persons.get_person_activities('PERSON_ID')
```

#### List files attached to a person
```python
response = client.persons.get_person_attaches('PERSON_ID')
```

#### List mail messages associated with a person
```python
response = client.persons.get_person_emails('PERSON_ID')
```

#### List followers of a person
```python
response = client.persons.get_person_followers('PERSON_ID', 'PAGINATION_ON' = TRUE)
```

#### Add a follower to a person
```python
response = client.persons.add_follower_to_person('PERSON_ID', 'USER_ID')
```

#### Delete a follower from a person
```python
response = client.persons.delete_follower_to_person('PERSON_ID', 'USER_ID')
```

#### Merge two persons
```python
response = client.persons.merge_two_persons('PERSON_TO_KEEP', 'PERSON_TO_OVERWRITE')
```

### PersonFields 

API docs: https://developers.pipedrive.com/docs/api/v1/PersonFields

#### Get one person field
```python
response = client.persons.get_person_one_field('FIELD_ID')
```

#### Update a person field
```python
data = {
    'id': ''
}
response = client.persons.update_person_field('FIELD_ID', data)
```

For additional information or access to other endpoints within the same API structure, refer to the library used as a template for building this one [pipedrive-python-lib](https://github.com/GearPlug/pipedrive-python).
robotframework-libdoc2text 1.0.1
Generate library documentation in plain text from the JSON generated by libdoc
Requires Python: >= 3.8.2

# libdoc2text

Generate library documentation in plain text from the JSON generated by libdoc.

## Use Cases

- Markdown documentation to generate a static site with Mkdocs or upload it to Confluence
- Asciidoc documentation to generate a static site with Asciidoctor

## How to use it

1. Install the package

```bash
pip install robotframework-libdoc2text
```

2. Save the desired template to the current directory

For Markdown:

```bash
libdoc2text init.md
```

For Asciidoc:

```bash
libdoc2text init.adoc
```

**Hint**: In case your environment does not allow executing libdoc2text, call the Python module directly:

```bash
python -m Libdoc2Text init.md
```

3. Modify the template

4. Generate the library documentation with libdoc

```bash
python -m robot.libdoc Library Library.json
```

5. Generate the plain text documentation with libdoc2text

```bash
libdoc2text run library.md.jinja Library.json Library.md
```

## How it works

The template files are Jinja templates. When `libdoc2text run` is executed Jinja processes the template, which results in a Markdown or Asciidoc file.
xrypt-xethhung12 0.0.10
A simple tools to hybrid encryption and decryption
Requires Python: >=3.7

# Installation
```shell
pip install -U xrypt-xethhung12
```

# Usage
```shell
from xrypt_xethhung12.rsa_encryption import gen_key_pair, read_public_key_from_pem_str, read_private_key_from_pem_str
from xrypt_xethhung12.rsa_format import pub_key_to_pem, pri_key_to_pem
from xrypt_xethhung12.xrypt.xrypt import DeEnCryptor, Signer, Verifier

if __name__ == '__main__':
    # Generate key pair
    s_pub, s_pri = gen_key_pair()
    r_pub, r_pri = gen_key_pair()

    # encrypt and decrypt
    data_encrypted = DeEnCryptor(s_pub, s_pri).encryptToContainer(r_pub, "helloworld")
    data = DeEnCryptor(r_pub, r_pri).decryptContainer(s_pub, data_encrypted)
    print(data)

    # sign and verify
    signed_data = Signer(s_pri).sign("helloworld")
    print(Verifier(s_pub).verify(signed_data))

    # To pem format string
    print(pub_key_to_pem(s_pub))
    print(pri_key_to_pem(s_pri))

    reloaded_s_pub_key = read_public_key_from_pem_str(pub_key_to_pem(s_pub))
    reloaded_s_pri_key = read_private_key_from_pem_str(pri_key_to_pem(s_pri))
    reloaded_r_pub_key = read_public_key_from_pem_str(pub_key_to_pem(r_pub))
    reloaded_r_pri_key = read_private_key_from_pem_str(pri_key_to_pem(r_pri))

    # encrypt and decrypt - again
    data_encrypted = DeEnCryptor(reloaded_s_pub_key, reloaded_s_pri_key).encryptToContainer(reloaded_r_pub_key, "helloworld")
    data = DeEnCryptor(reloaded_r_pub_key, reloaded_r_pri_key).decryptContainer(reloaded_s_pub_key, data_encrypted)
    print(data)

    # sign and verify - again
    signed_data = Signer(reloaded_s_pri_key).sign("helloworld")
    print(Verifier(reloaded_s_pub_key).verify(signed_data))
```

# Scripts

## Generate rsa key pair
```shell
pri={pri}
pub={pub}
openssl genrsa -out $pri 4096
openssl rsa -in $pri -outform PEM -pubout -out $pub
```

## Build 
```shell
rm -fr dist
python3 -m build
```


## Build and Deploy
```shell
rm -fr dist
python3 -m build
twine upload dist/* -u __token__ -p $pwd
```

## Update version dev
```shell
python3 -m xh_py_project_versioning --patch
```

## Update version
```shell
python3 -m xh_py_project_versioning --patch -d
```