semvec/pypi-packages huggingface dataset:
mockpy 0.1.7
Mockpy is a python open source line utility to quickly create mock servers on Mac OS X.
License: BSD
Keywords: mockpy

# Mockpy

[![Build Status](https://travis-ci.org/oarrabi/mockpy.svg?branch=master)](https://travis-ci.org/oarrabi/mockpy)

Mockpy is a python open source line utility to quickly create mock servers on Mac OS X.
Mockpy is inspired by wiremock and uses libmproxy for the proxy functionality.

mockpy works by reading a list of configuration files in the YAML format, it uses these configurations to match the http request received and return an http response based on the matched YAML file configuration.

# Why mockpy
- You want a very lightweight utility to quickly create a mock API
- No need to edit your app code as it uses proxy mocking
- Works on top of proven technology ([mitmproxy](https://mitmproxy.org/) and [cherrypi](http://www.cherrypy.org/))
- Update to the mock API are picked up from files without the need to start/restart the server again.

# Installation

Mockpy can be installed as a python wheel using `pip` or as a standalone binary using `homebrew`

## Installing with pip

Make sure you have [pip](https://pip.pypa.io/en/latest/installing.html) installed.

Run the following to install mockpy

    pip install mockpy

## Installing using brew
Install using brew tap

    brew tap oarrabi/tap
    brew install mockpy

# Usage

Bellow is a description of the basic operations that `mockpy` provides, for a more complete understanding please refer to [the wikis](https://github.com/oarrabi/mockpy/wiki).

## Initialize a directory
Initialize a the current folder by running:

    mockpy init
This will create two folders:    

`inout`: this folder will contains a list of mapping YAML files, each YAML file represents an request and response operation.

`res`: resource folder contains the static HTML, JSON, Images and static files returned as part of the mocking process.

To understand the YAML file format, please refer to the documentation.

## Start the mock server
The mock server can be started as a standalone web server, or as a proxy server.

### Standalone web server
Use `mockpy start` to start the standalone web server, this will setup a server on the default port. Visit `127.0.0.1:9090` to check the mock server.

### Proxy web server
To start mockpy in proxy server mode use `mockpy start -x`. This command does the following:
- Starts a proxy server on '127.0.0.1:9090'
- Sets the macs HTTP/HTTPS settings to the created proxy server.




History
-------

0.1.0 (2015-01-11)
---------------------

* First release on PyPI.
django-messaging-contentstore 0.1.7
A RESTful API for managing collections of messaging content
License: BSD

django-messaging-contentstore
================================

A RESTful API for managing collections of messaging content. Comes with a
client and a fake.


::

    $ virtualenv ve
    $ source ve/bin/activate
    (ve)$ pip install -r requirements.txt
    (ve)$ pip install -r requirements-dev.txt
    (ve)$ py.test --ds=testsettings contentstore/tests.py --cov=contentstore


Configuration
-------------------------------

The following configuration (with dummy values replaced by real ones) needs to
be added to ``settings.py`` to configure this app::

    INSTALLED_APPS = [
        # Usual Django stuff plus
        # Third-party apps
        'djcelery',
        'rest_framework',
        'rest_framework.authtoken',
        'django_filters'
    ]

    # REST Framework conf defaults
    REST_FRAMEWORK = {
        'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',),
        'PAGINATE_BY': None,
        'DEFAULT_AUTHENTICATION_CLASSES': (
            'rest_framework.authentication.BasicAuthentication',
            'rest_framework.authentication.TokenAuthentication',
        ),
        'DEFAULT_PERMISSION_CLASSES': (
            'rest_framework.permissions.IsAuthenticated',
        ),
        'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',)
    }



Release Notes
------------------------------
0.1.7 - 2015-07-02 - Add filter for lang, fix broken message content URL in client (bump)
0.1.6 - 2015-07-01 - Publish package with missing init
0.1.5 - 2015-07-01 - Publish package with client and verified fake
0.1.4 - 2015-06-11 - Python 3 compat imports
0.1.3 - 2015-05-21 - Initial release
django-newsletters 0.0.3
Template for reusable django applications.
License: BSD

# django-newsletters

WARNING: This app is in early development (pre-alpha) and may not work as intended, change rapidly or break something. Please wait for a stable release or at least for an alpha or beta release.

Template for reusable django applications.

All following sections are just dummies and may not work as excepted.

## Key features

* Reusable template for new reusable django applications
* ...

## Installation

If you want to install the latest stable release from PyPi:

    $ pip install django-newsletters

If you want to install the latest development version from GitHub:

    $ pip install -e git://github.com/byteweaver/django-newsletters#egg=django-newsletters

Add `newsletters` to your `INSTALLED_APPS`:

    INSTALLED_APPS = (
        ...
        'newsletters',
        ...
    )

Hook this app into your ``urls.py``:

    urlpatterns = patterns('',
        ...
        url(r'^your-url/$', include('newsletters.urls', namespace='newsletters')),
        ...
    )