semvec/pypi-packages huggingface dataset:
gopher-server 0.4.0
Library for building Gopher servers.
Requires Python: >=3.7.0


gopher_server
=============

[![Documentation Status](https://readthedocs.org/projects/gopher-server/badge/?version=latest)](https://gopher-server.readthedocs.io/en/latest/?badge=latest)

A library for building Gopher servers. It supports serving static files or writing your own code to generate pages, with TCP, TLS and QUIC transports.

See [the documentation](https://gopher-server.readthedocs.io/) for more details.
ansible-template-validator 0.1.4
A helper script to use with the validate option from ansible template module
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*

# ansible-config-validator


[![image](https://img.shields.io/pypi/v/ansible-template-validator.svg)](https://pypi.org/project/ansible-template-validator/)
[![Build Status](https://travis-ci.org/naimetti/ansible-template-validator.svg?branch=master)](https://travis-ci.org/naimetti/ansible-template-validator)

A helper script to use with the validate option from ansible 
[template](https://docs.ansible.com/ansible/latest/modules/template_module.html) module

The module provides a command line tool to validate configuration templates in cases where the validation depends
on more than one file, and there is no clear way to sandboxing the validation process.

So, for example, if you want to validate an *NGINX* config file that contains a server block configuration you will have
to validate the entire configuration tree of *NGINX* files, therefore what this script does is to replace 
the original config file with the new one, runs the validation command, and then restores all to the previous state 
independently of the validation command result.

# Install

```shell script
pip install ansible-config-validator
```

# Usage

```bash
usage: ansible-template-validator [-h] [-l SYMLINK]
                                  new_file original_file validation_command

Command to be used as helper with ansible template validate. Replaces
original_file with new_file, and then run validation_command. After this,
returns validation_command return code and original_file is restored.If a
symlink is specified, in case it doesn't exists, it is created pointing to
original_file and then is deleted.

positional arguments:
  new_file              File used to replace original_file
  original_file         Original file that is going to be validated
  validation_command    Command to be executed to validate the config files

optional arguments:
  -h, --help            show this help message and exit
  -l SYMLINK, --create-sym-link SYMLINK
                        Creates an ephemeral symbolic link pointing to
                        original_file, just in case it doesn't exists.

```

# Example 

```yaml
- name: Update nginx {{website_config}} file
  template:
    src: "website.conf"
    dest: "{{website_config}}"
    validate: "ansible-template-validator %s {{website_config}} {{nginx_validation_command|quote}}"
  vars:
    website_config: "/etc/nginx/sites-enabled/website.conf"
    nginx_validation_command: /usr/sbin/nginx -t -q -g 'daemon on; master_process on;
```

**Note**: _The script must have been previously installed on the target node._
rss-reader-Anna-Gonchar 4.2
RSS reader - simple command-line utility.
Requires Python: >=3.8

# RSS reader
RSS reader is a command-line utility which receives RSS URL and prints results in human-readable
format.

[The source for this project is available here](https://github.com/AnnaPotter/FinalTaskRssParser).


### Installation
$ pip install rss-reader-Anna-Gonchar

### Usage
$ rss-reader (-h | --help)

    Show help message and exit

$ rss-reader <RSS-SOURCE-LINK>

    Print rss feeds in human-readable format

$ rss-reader --version

    Print version info

$ rss-reader --json

    Print result as JSON in stdout

$ rss-reader.py --verbose

    Outputs verbose status messages

$ rss-reader.py --limit LIMIT

    Limit news topics, if this parameter provided

$ rss-reader.py --date DATE

    Gets a date in %Y%m%d format. Print news from the specified date
    and source (<RSS-SOURCE-LINK>), if it specified

$ rss-reader.py --to-pdf PATH_TO_PDF

    Gets file path. Convert news to pdf and save them to pdf file on the specified path

$ rss-reader.py --to-html PATH_TO_HTML

    Gets file path. Convert news to html and save them to html file on the specified path

### Storage
All the pieces of news received from the source are saved to the binary file.
Shelve module is used for this. It saves object with the specific key to the file.
The key is the rss news publication date, the value is the news.