semvec/pypi-packages huggingface dataset:
punter_cli 0.0.4
Simple CLI for the Email Hunter API.
License: MIT

# punter-cli

[![status][1]][2]
[![version][3]][4]
[![license][5]][6]

A simple command line utility for the [Email Hunter API](https://emailhunter.co/api).

## Usage

The command line interface provides two commands, `search` and `key`. Before executing a search it is advisable that you first set your [API key](](https://emailhunter.co/users/sign_up)) using the `key` command. When `key` is first run a configuration file is created in the user's home directory (`~/.punter`). Currently the only value stored is the API key. To view the current API key (if it has been set) simply run the `key` command without any arguments.

![key][7]

The `search` command takes as its argument either a domain name or valid email address, with a successful search returning raw JSON collected from the Email Hunter service. 

![key][8]



## Install

    $ pip install punter-cli

## Todo

- Add unit tests
- Output throttling 
- Options for parsing/formatting results

## License

Copyright &copy; 2015 Joshua Goodlett

Released under the [MIT License (MIT)](https://github.com/jgoodlet/punter-cli/blob/master/LICENSE)


[1]: https://img.shields.io/travis/jgoodlet/punter-cli.svg
[2]: https://travis-ci.org/jgoodlet/punter-cli.svg
[3]: https://img.shields.io/pypi/v/punter-cli.svg
[4]: https://pypi.python.org/pypi/punter-cli
[5]: https://img.shields.io/pypi/l/punter-cli.svg
[6]: https://pypi.python.org/pypi/punter-cli
[7]: assets/key.png
[8]: assets/screenshot.png
django-naomi 0.8
Email backend for Django. Preview your email in browser instead of sending it.
License: MIT
Keywords: django email

django-naomi
============

Django-naomi is a email backend for Django that let you preview email from your web browser instead of sending it using SMTP server. This is perfect for development environment that lack of SMTP server or you want to debug the email message. Attachment will be shown as link. This library is inspired from `Letter Opener <https://github.com/ryanb/letter_opener>`_.

Django Setup
------------

First, install django-naomi by using pip. You can add `django-naomi` to your requirements file or run this command. ::

    pip install django-naomi

Then, add `naomi` to your `INSTALLED_APPS` on your django settings file. ::

    INSTALLED_APPS += ('naomi',)


Lastly, change the Django email backend and set the temporary directory. ::

    EMAIL_BACKEND = "naomi.mail.backends.naomi.NaomiBackend"
    EMAIL_FILE_PATH = "/home/test/tmp"


Please make sure that the `EMAIL_FILE_PATH` directory is writeable. That's all you need to do. Now, every time you send email it will shown on your web browser.

Development and Feedback
------------------------
Questions or problems? Please use the issue tracker. If you would like to contribute to this project, fork this repository and send me a pull request.
yard-framework 3.5.1
Yet Another Resftul Django framework
License: MIT

Yard is an API oriented framework that aims to simplify the developer's work when implementing complex API design.


Main features
-------------------


- Resource and API oriented 
- JSON serialization
    - with pagination
    - and metadata
- Hypermedia
    - API documentation (Swagger support)
    - API discovery and browsing
- Resource versioning
- GEOS support


Usage
------------


*views.py*

::

    from yard import resources, fields
    from .models import Book
    from .forms import BookListForm

    class BooksResource(resources.Resource):
        class Meta:
            # model associated with the resource
            model = Book
            # used in the list and detail methods
            fields = {
                'id': fields.Integer, 
                'title': fields.Unicode, 
                'publication_date': fields.Unicode, 
                'author': {
                    'age': fields.Integer,
                    'name': fields.Unicode
                }        
            }

        @validate(BookListForm)
        def list(self, request):
            #GET /resource/
            return Book.objects.filter(**request.form.parameters)

        def detail(self, request, pk):
            #GET /resource/:pk/
            return Book.objects.get(pk=pk)


*forms.py*

::

    from yard import forms

    class ListBook(forms.QueryForm):
        year   = forms.IntegerField(required=False, min_value=1970, max_value=2012)
        title  = forms.CharField(required=False) # Django's fields
        genre  = forms.CharField(required=False)
        author = forms.CharField(required=False)
        house  = forms.CharField(required=False)
    
        class Meta:
            lookups = {
                'year': 'publication_date__year',
                'title': 'title__icontains',
                'genre': 'genres',
                'author': 'author_id',
                'house': 'publishing_house__id',
            }
            extralogic = [
                AND('genre', OR('author', 'house'))   
            ]


*urls.py*

::

    from yard.api import Api
    from app.views import BookResource

    api = Api(discover=True) # Swagger support
    api.include( 'books', BookResource )

    urlpatterns = api.urlpatterns