semvec/pypi-packages huggingface dataset:
rproxy 18.6.0
A super simple reverse proxy.

rproxy
======

A super simple HTTP/1.1 proxy, with TLS and Let's Encrypt support.

rproxy takes care of your Let's Encrypt certificates, automatically renewing them.
This is done by the excellent `txacme <https://github.com/mithrandi/txacme>`_ library.

Install from PyPI:

.. code::

    $ pip install rproxy

Make a directory to store your certificates:

.. code::

    $ mkdir my-certs

Make a ``rproxy.ini``:

.. code::

    [rproxy]
    certificates=my-certs
    http_ports=80
    https_ports=443

    [hosts]
    mysite.com_port=8080

Then run it:

.. code::

   sudo twistd -u nobody -g nobody -n rproxy


This will start the server, drop permissions (setting the effective uid/guid to nobody), and will proxy incoming requests to ``mysite.com`` to ``localhost:8080``.
You can configure it further:

.. code::

    [rproxy]
    certificates=my-certs
    http_ports=80,8080
    https_ports=443
    clacks=true

    [hosts]
    mysite.com_port=8080
    mysite.com_host=otherserver
    mysite.com_onlysecure=True
    mysite.com_proxysecure=True

    myothersite.net_port=8081


This config will:

- connect to ``https://otherserver:8080`` as the proxied server for ``mysite.com``, and only allow HTTPS connections to the proxy for this site
- connect to ``http://localhost:8081`` as the proxied server for ``myothersite.net``, and allow HTTP or HTTPS connections.


General Config
--------------

- ``http_ports`` -- comma-separated list of numerical ports to listen on for HTTP connections.
- ``https_ports`` -- comma-separated list of numerical ports to listen on for HTTPS connections.
- ``certificates`` -- directory where certificates are kept.
- ``clacks`` -- Enable ``X-Clacks-Overhead`` for requests.


Hosts Config
------------

- ``<host>_onlysecure`` -- enforce HTTPS connections. If not set, or set to False, it will allow HTTP and HTTPS connections.
- ``<host>_proxysecure`` -- connect to the proxied server by HTTPS. If not set, or set to False, it will connect over HTTP.
- ``<host>_port`` -- The port of the proxied server that this proxy should connect to.
- ``<host>_host`` -- the hostname/IP of the server to proxy to.
- ``<host>_sendhsts`` -- send HSTS headers on HTTPS connections.
- ``<host>_wwwtoo`` -- match ``www`` too.
program-synthesis 0.1.2
NEAR Program Synthesis: models, tools, and datasets for program synthesis tasks
Requires Python: ~=3.5

# Program Synthesis
NEAR Program Synthesis provides a set of models, tools, and datasets for program synthesis tasks.

This repository will make it easier for the community to compare and reuse program synthesis algorithms across different
datasets.

## Prerequisites
Python 3 (>=3.5) is required to run the code. We also recommend using
[virtualenv](https://virtualenv.pypa.io/en/stable/) for isolated Python environments and
[pip](https://pypi.org/project/pip/) for package management. Note, to create a Python 3 environment you need to run:

```
virtualenv .env --python=python3
source .env/bin/activate
```

The code also assumes that [PyTorch](https://pytorch.org/) is already installed.

## Installation
```
pip install program-synthesis
```

## Development installation

For development installation you need to clone the repository:
```
git clone https://github.com/nearai/program_synthesis.git
cd program_synthesis
```

Install program-synthesis in editable mode:
```
pip install -e .
```

## Models and datasets
- [AlgoLisp](program_synthesis/algolisp)
- [Karel](program_synthesis/karel)
- [NAPS](program_synthesis/naps)
ngrp 0.3.3
A handy tool that configures nginx reverse proxy for you
Requires Python: >=3

# NGRP

[![PyPI](https://img.shields.io/pypi/v/ngrp.svg)](https://pypi.org/project/ngrp/)

A handy tool that configures nginx reverse proxy for you

## Installation

```
pip install ngrp
```

## Usage

```
Usage: ngrp [OPTIONS] COMMAND [ARGS]...

  Nginx domains configuration tool.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  add      Add and enable a domain configuration.
  disable  Disable configuration for given domain.
  enable   Enable configuration for given domain.
  reload   Reload nginx configuration.
```

**ngrp** supports multiple reverse proxy templates. 

```
Usage: ngrp add [OPTIONS] COMMAND [ARGS]...

  Add and enable a domain configuration.

Options:
  --help  Show this message and exit.

Commands:
  http          Redirect DOMAIN traffic to 127.0.0.1:PORT
  https         Redirect DOMAIN traffic to 127.0.0.1:PORT
  static-http   Serve content from WEBSITE_ROOT on DOMAIN
  static-https  Serve content from WEBSITE_ROOT on DOMAIN
```

To add a HTTP reverse proxy do the following (_etherpad running on port `9001`, proxied to `etherpad.example.com`_):

```
ngrp add http 9001 etherpad.example.com
```

For a change in configuration to take effect, nginx config needs to be reloaded:

```
ngrp reload
```