semvec/pypi-packages huggingface dataset:
purrito 1.0.4
ETL tool for transfering data from MongoDB to PostgreSQL

# Purrito

Purrito is an open source ETL tool which transfers collections from MongoDB to PostgreSQL.

## Features

- quick setup
- generate schema based on existing MongoDB collections or use a custom schema
- keep syncing with MongoDB real-time 
- update the schema while syncing without stopping anything
- handle connectivity issues
- view collection transfer statistics

## Support

MongoDB 3.4

PostgreSQL 9.6

## Installation

Check out an [example]() or set things up on your own:

- install Purrito by typing `pip install purrito`
- start MongoDB as a replica set
- create a source database in MongoDB and add a collection with a couple of documents
- create a destination database in Postgres
- generate the schema (`collections.yml`): 

  `purrito -m -mdb mongodb://localhost:27017 -n source_db`
- start Purrito:

  `purrito -cf collections.yml -pg postgres://localhost:5432/destination_db -mdb mongodb://localhost:27017 -n source_db -t`


## Documentation

For more details about Purrito check out our [Documentation](https://boosterfuels.github.io/purr/docs).


## Contribute

Want to help us and the community with perfecting Purrito? Take a look at our contribution [Guidelines](https://boosterfuels.github.io/purr/docs#contribute) and submit a PR.
flask-censor 0.1
A profanity censor with hooks for Flask and Jinja2

# flask-censor
A profanity censor by Rob Heath with hooks for Flask and Jinja2, based on `profanity` by Ben Friedland and `flask-recaptcha` by mardix.

## Installation

`pip install flask-censor`

## Usage

The module can be used standalone (as `profanity` is), or can be integrated into a Flask app for use in Jinja2 templates.

### Flask

In your Flask code, link flask-censor to your Flask app as so:

```python
from flask import Flask
from flask_censor import Censor

app = Flask(__name__)
censor = Censor(app=app)

# or if adding app later:

censor = Censor()
censor.init_app(app)
```

### Jinja2

When integrated with Flask the module provides a template filter `censor` accessible through Jinja2 templates using the filter pipe:

```jinja
<h1> {{ data_from_flask|censor }} </h1>
```

## Config

If integrated with Flask, the following config variables control behaviour:

`CENSOR_WORDLIST`: path to file from which to read the word list for censorship

`CENSOR_CHARACTERS`: string of values to use in place of censored word

If not integrating with Flask, these can be set using the keyword arguments `wordlist` and `censorchars` when instantiating the class.

## API

**censor.init_app(app=app)** initialises flask-censor to a Flask app instance

**censor.import_wordlist(wordlist)** imports a new word list from the file at path `wordlist`

**censor.censor(input_string)** goes over the input string, replacing sub-strings from the word list with sensor characters from the censor character pool

**censor.set_censorchars(censorchars)** sets the pool of characters to use for censoring words from the word list