semvec/pypi-packages huggingface dataset:
omgpy 0.0.1
Python helper package for implementing Onion Mirror Guidelines (OMG)
Requires Python: >=3.6

# omg-py

Python helper for implementing the Onion Mirror Guidelines (OMG)

The Onion Mirror Guidelines are a set of rules enforced by the operator of [DarkDotFail](https://dark.fail) - a dark net directory of confirmed and official Tor .onions - to help
improve the reliability of the information displayed on the website. 

Practically, implementing the OMG shows a commitment to user safety by proving ownership of PGP keys on a regular basis.


## Reference Specification 

https://dark.fail/spec/omg.txt


## Installation

This will install the `omgpy` package globally with `pip`

    git clone https://code.samourai.io/walletguy/omg-py.git
    cd omg-py
    pip3 install .

## Usage

Import OMG

    from omgpy import OMG


Start OMG with the email address of the PGP key you want to sign with. This key must exist already and be correctly loaded in `gpg`. You can also use a key ID instead of an email address.


    omg = OMG("email@example.com")

Define a `template_path`. If this directory exists then you must manually populate it with templates of the files that will be signed. If this directory doesn't exist currently, it will be created automatically in the next step and the default template files will be copied. 

You can always add new template files to the Template directory, you are not limited by the default set.

    omg.template_path = "/Desktop/omg/templates"


You can copy the default set of files that need to be signed in order to comply with the OMG by calling `create_template_files` after setting the `template_path`. This only needs to be done once (and it is optional - if you do not do this, you will need to manually create the template files and place them in your `template_path` directory.)

    omg.create_template_files()


You can optionally declare where you would like the output saved. If this is not set the default location of the files will be in the current working directory where the script is called from.

    omg.public_path = "/Desktop/omg/public"


You are ready to sign.

    omg.sign()

When the files are signed, the output will be saved in a directory called `public`. In this directory will be two additional directories: `signed` and `unsigned`. The `unsigned` directory will contain the raw `.txt` file of what is to be signed and the `signed` directory will contain the corresponding clearsigned `.txt.asc` file.
Astrology-Aries 0.0.5.dev447
Python package providing shortcuts to tasks like accessing files on the cloud, running background tasks, configuring logging, etc.
Requires Python: >=3.6

# Aries

Aries is a Python package providing shortcuts to a wide range of small tasks like access files on the cloud, running background tasks, configuring logging, etc.

[![PyPI version](https://badge.fury.io/py/Astrology-Aries.svg)](https://badge.fury.io/py/Astrology-Aries)
[![Build Status](https://travis-ci.org/qiuosier/Aries.svg?branch=master)](https://travis-ci.org/qiuosier/Aries)
[![Coverage Status](https://coveralls.io/repos/github/qiuosier/Aries/badge.svg?branch=master)](https://coveralls.io/github/qiuosier/Aries?branch=master)
[![codebeat badge](https://codebeat.co/badges/f7217133-f495-455d-8808-d2cdaf46bc60)](https://codebeat.co/projects/github-com-qiuosier-aries-master)

Aries includes:
* [Storage](https://github.com/qiuosier/Aries/blob/master/docs/storage.md) sub-package, which provides a unified interface for accessing files on local computer, Google Cloud Storage and Amazon S3 Storage. The storage interface includes shortcuts for listing, copying, deleting files/folder.
* [Google](https://github.com/qiuosier/Aries/blob/master/docs/GoogleDrive.md) sub-package, providing simple API for accessing data in Google Drive and Google Sheets.
* [Outputs](https://github.com/qiuosier/Aries/blob/master/docs/outputs.md)(`outputs.py`) module for logging and capturing outputs.
* Excel(`excel.py`) module to create, read and modify Microsoft Excel spreadsheets.
* Files(`files.py`) module to handle JSON, Markdown and temporary files with templates.
* String(`string.py`) module to provide enhanced String types, as well as FileName, Base64String.
* Task(`tasks.py`) module to manage asynchronous/background functions and commands.
* Web(`web.py`) module to access web APIs and HTML pages.

## Installation
Aries is developed with Python 3.7. You can install the package with `pip`:
```
pip3 install Astrology-Aries
```

## Usage
To use this package, import the module/sub-package from `Aries`
```
from Aries.tasks import ShellCommand
```

As an example, here is how to use Aries to write a `pandas` DataFrame to a CSV file on Google Cloud Storage:
```
import pandas as pd
df = pd.DataFrame([1, 3, 5])

uri = "gs://bucket_name/path/to/file.txt"

# Using StorageFile with pandas
with StorageFile.init(uri, 'w') as f:
    # f will be a file-like object
    df.to_csv(f)
```

See the documentation for sub-packages for more details.