semvec/pypi-packages huggingface dataset:
vr.server 8.3
Velociraptor's Django and Celery components.
Requires Python: >=2.7

.. image:: https://img.shields.io/pypi/v/vr.server.svg
   :target: https://pypi.org/project/vr.server

.. image:: https://img.shields.io/pypi/pyversions/vr.server.svg

.. image:: https://img.shields.io/travis/yougov/vr.server/master.svg
   :target: https://travis-ci.org/yougov/vr.server

.. .. image:: https://img.shields.io/appveyor/ci/yougov/vr.server/master.svg
..    :target: https://ci.appveyor.com/project/yougov/vr.server/branch/master

.. .. image:: https://readthedocs.org/projects/vr_server/badge/?version=latest
..   :target: https://vr_server.readthedocs.io/en/latest/?badge=latest

vr.server is a component of the `Velociraptor
<https://github.com/yougov/velociraptor>`_ project.
pyinstrument-flame 1.0.2
An interactive SVG Flame Chart Renderer for pyinstrument.


Provides a FlameGraphRenderer for pyinstrument.

Uses Brendan Gregg's flamegraph.pl in the backend to render an interactive SVG.

Example usage:

```python
import pyinstrument
import pyinstrument_flame

with pyinstrument.Profiler() as profiler:
    # do stuff

renderer = pyinstrument_flame.FlameGraphRenderer(title = "Task profile", flamechart=True)
svg = profiler.output(renderer)
```

See the flamegraph.pl documentation for all renderer options.
haip-template 0.1.3
Jinja2 based template module.

# haip.template

[![License](https://img.shields.io/github/license/haipdev/template.svg)](LICENSE)
[![Build Status](https://travis-ci.org/haipdev/template.svg?branch=master)](https://travis-ci.org/haipdev/template)

haip.template is Jinja2 based async template rendering module.

## Features

* **minimalistic**: a single exported async function "render"
* **autoreturn-type**: the return data type is derived from the file suffix

## Getting Started

### Installing

```sh
pip install haip.template
```

or from source:

```sh
git clone https://github.com/haipdev/template.git
```

### Usage

> async def render(template_filename, *, template_dir=None, **args)

The template-file is defined by *config.template_dir/template_dir/template_filename*. **args are used to fillin the placeholders in the template_file and the suffix of the template_file determines the return type. E.g. "template_name.json" will return a json structure (dict). *render* will propagate exceptions as they are raised by the underlaying modules.

Suffix handling is as follows:

* .json : json struct (dict)
* .sql : string (but **args values will be escaped)
* .* : string

### Example

#### config (using haip.config)

```yaml
template-dir: /path-to-template-dir/
```

mytemplate.jinja2

```jinja2
Hello my name is {{ firstname }} {{ lastname }}!
```

#### python implementation

```python
import haip.config as config
import haip.template as template

config.load('/path-to-my-config-dir')
document = await template.render('mytemplate.jinja2', firstname='Reinhard', lastname='Hainz')
```

If mytemplate.jinja is in a subdirectory of the template-dir (e.g. /path-to-template-dir/mysubdir/):

```python
document = await template.render('mytemplate.jinja2', template_dir='mysubdir', firstname='Reinhard', lastname='Hainz')
```

You can also use absolute paths in the template_dir argument of the render function.

## Running the tests

Tests are written using pytest and located in the "tests" directory.

```sh
pytest tests
```

## Contributing

Feel free to use and enhance this project. Pull requests are welcome.

## Authors

* **Reinhard Hainz** - *Initial work* - [haipdev](https://github.com/haipdev)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

## Dependencies

* [haip_config](https://github.com/haipdev/config)
* [jinja2](http://jinja.pocoo.org/)
ftpmail 0.8.2
accept FTP uploads and forward via SMTP

# ftpmail

This program accepts FTP uploads (e.g. from a document scanner) and forwards them as emails via SMTP.

It'll terminate the FTP connection as fast as possible, this means directly after the upload has finished.
The email process will happen in a separate thread to not block the uploader.

It can do optional optical character recognition (OCR) for scanned PDFs and embed the read text into the PDF file
using the great [pdfsandwich](http://www.tobias-elze.de/pdfsandwich/) by Tobias Elze.


## Usage

```
usage: ftpmail.py [-h] --from FROM_ADDR --to TO_ADDR --smtp-host SMTP_HOST
                  [--smtp-port SMTP_PORT] --smtp-user SMTP_USER --smtp-pass
                  SMTP_PASS --ftp-addr FTP_ADDR --ftp-port FTP_PORT
                  --ftp-pasv-min FTP_PASV_MIN --ftp-pasv-max FTP_PASV_MAX
                  [--ocr] [--ocr-lang OCR_LANG]

Send FTP uploads via SMTP.

optional arguments:
  -h, --help            show this help message and exit
  --from FROM_ADDR      Sender email address
  --to TO_ADDR          Recipient email address
  --smtp-host SMTP_HOST
                        SMTP hostname
  --smtp-port SMTP_PORT
                        SMTP port
  --smtp-user SMTP_USER
                        SMTP username
  --smtp-pass SMTP_PASS
                        SMTP password
  --ftp-addr FTP_ADDR   FTP server address which will be returned for PASV
                        requests.
  --ftp-port FTP_PORT   FTP port to bind to.
  --ftp-pasv-min FTP_PASV_MIN
                        FTP PASV minimal port.
  --ftp-pasv-max FTP_PASV_MAX
                        FTP PASV maximal port.
  --ocr                 enable OCR (embeds a hidden text layer in PDF files)
  --ocr-lang OCR_LANG   OCR: language of the text; option to tesseract
                        (defaut: eng), e.g: eng, deu, deu-frak, fra, rus, swe,
                        spa, ita, ... Multiple languages may be specified,
                        separated by plus characters.
```