semvec/pypi-packages huggingface dataset:
airflow-gpg-plugin 0.2.0
Airflow plugin to work with GPG files.
License: MIT
Requires Python: >=3.6.7

# Airflow GPG Plugin
[![Latest Version](https://img.shields.io/pypi/v/airflow-gpg-plugin.svg)](https://pypi.org/project/airflow-gpg-plugin/)
[![Python Versions](https://img.shields.io/pypi/pyversions/airflow-gpg-plugin.svg)](https://pypi.org/project/airflow-gpg-plugin/)

Airflow plugin with hooks and operators to work with GPG encryption and decryption.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install airflow-gpg-plugin
```

## Usage

Add an airflow connection from shell.

`login` is the email address in the GPG key.

`password` is the passphrase of the GPG key.

```shell
airflow connections add 'gpg_default_conn' \
    --conn-type 'gpg' \
    --conn-login 'gpgexamplepassphrase@example.com' \
    --conn-password 'gpgexamplepassphrase' \
    --conn-host '' \
    --conn-port '' \
    --conn-extra '{"key_file": "tests/resources/gpgexamplepassphrase.asc"}'
```

Using operators to encrypt and decrypt files.
```python
import os
from datetime import datetime

from airflow import DAG
from airflow_gpg_plugin.operators.gpg_decrypt_file_operator import GPGDecryptFileOperator
from airflow_gpg_plugin.operators.gpg_encrypt_file_operator import GPGEncryptFileOperator
gpg_conn_id = "gpg_default_conn"

dag = DAG(dag_id="gpg_example",
          start_date=datetime(2021, 1, 1),
          schedule_interval=None
          )

encrypt = GPGEncryptFileOperator(
    task_id="gpg_encrypt",
    dag=dag,
    conn_id=gpg_conn_id,
    input_file_path=os.curdir + "/README.md",
    output_file_path=os.curdir + "/README.md.gpg"
)
decrypt = GPGDecryptFileOperator(
    task_id="gpg_decrypt",
    dag=dag,
    conn_id=gpg_conn_id,
    input_file_path=os.curdir + "/README.md.gpg",
    output_file_path=os.curdir + "/README.md.txt"
)

encrypt >> decrypt


```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
soch-download 1.1.0
SOCH Download CLI lets you do multithreaded batch downloads of Swedish Open Cultural Heritage(K-samsök) records for offline processing and analytics.
License: MIT
Requires Python: >=3.4.0
Keywords: SOCH,K-samsök,heritage,cultural,CLI

# SOCH Download CLI

![screenshot](screenshot.gif)

SOCH Download CLI lets you do **multithreaded** batch downloads of Swedish Open Cultural Heritage (K-samsök) records for offline processing and analytics.

## Prerequirements

 - Python >=3.4 and PIP

## Installing

```bash
pip install soch-download
```

## Usage Examples

**Heads up: This program might use all the systems available CPUs.**

Download records based on a SOCH search query (Text, CQL, indexes, etc):

```bash
soch-download --action=query --query=thumbnailExists=j --outdir=path/to/target/directory
```

Download records from an specific institution:

```bash
soch-download --action=institution --institution=raa --outdir=path/to/target/directory
```

Download records using a predefined action/query:

```bash
soch-download --action=all --outdir=path/to/target/directory
soch-download --action=geodata-exists --outdir=path/to/target/directory
```

**Unpacking**

The download actions by default downloads large XML files containing up to 1000 RDFs each, after such a download you can use the `unpack` argument to convert all those files into individual RDF files:

```bash
soch-download --unpack=path/to/xml/files --outdir=path/to/target/directory
```

**Misc**

List all available parameters and actions:

```bash
soch-download --help
```

Target a custom SOCH API endpoint:

```bash
soch-download --action=query --query=itemKeyWord=hus --outdir=path/to/target/directory --endpoint=http://lx-ra-ksam2.raa.se:8080/
```
byteworker 1.0.2
Working with byte made easy
License: MIT
Keywords: byte to word to decimal


# byteworker
Convert byte to word and world to decimal
## Version: 1.0.0

## Background
 We are developing an automaton system. where hardware send data through post request but send only byte without any headers and formatting.
 I have just build this package for working with this kind of situation easily

# example input

<code>
b'\\xd2\\x04.\\x164#\\x80\\r'
</code>
<br>
or <br>
<code>
b'\xd2\x04.\x164#\x80\r'
</code>

# Output
[1234, 5678, 9012, 3456]

##  Available Functions

    is_byte_has_double_slash() 
	    1. return True or False
	    
    double_slash_to_sinble_slash() 
	    1. Fix byte \\ issue convert it to \ 
	    
    get_perfect_byte() 
	    1. Return perfect bye if it ha \\ change to \
	    2. If it has \ just return it
	
	byte_to_word_to_decemal_array()
		1. It receive a byte and return decimal array by word	    

# Enjoy

  

If you like please give a star
[Portfolio](https://himelrana.com) | [Send a mail](mailto:contact@himelrana.com)

Change Log
==========

1.0.0 (23/01/2022)
-------------------
- First Tested and Stable Release
- Fix Wrong byte input like \\ to \
- Convert word to decimal
- Return and arry of decimal