semvec/pypi-packages huggingface dataset:
waifu-cli 0.0.4
A simple wrapper for waifu2x.
License: MIT

===============
Waifu CLI
===============

Waifu CLI is a command line wrapper for `waifu2x <https://github.com/nagadomi/waifu2x>`_ .


Sample Usage
------------

Just input this command::

    waifu images/sample.png --scale=0 --noise=2

Will get::

    $ ls images
    sample.high@0.png sample.png

Image before:

.. image:: images/sample.png
    :alt: after

After:

.. image:: images/sample.high@0.png
    :alt: after
pytest-trialtemp 1.0.1
py.test plugin for using the same _trial_temp working directory as trial
License: MIT

pytest-trialtemp
================

py.test plugin for using the same _trial_temp working directory as trial


usage
-----

Install the plugin with ``pip install pytest-trialtemp`` and it will be used
automatically when tests are run.

To disable it for a particular run, use ``py.test -p no:trialtemp [...]`` to
run your tests. See pytest's documentation for further options.


why?
----

I frequently use ``py.test`` to run Twisted tests written using ``trial``. This
works pretty well on its own, except trial's temporary directory infrastructure
assumes the working directory during test runs is ``./_trial_temp`` or
something similar.

In order to avoid littering my project root with annoying test-created
temporary directories, I wrote this little plugin.
django-xor-formfields 0.1.0
Mutually Exclusive form field wigets for Django
License: MIT
Keywords: django development forms

# Mutually Exclusive Form Fields
[![Build Status](https://travis-ci.org/dschep/django-xor-formfields.svg?branch=master)](https://travis-ci.org/dschep/django-xor-formfields)

Easily add mutually exclusive fields to Django forms.
## Install
### PyPI
```
pip install django-xor-formfields
```

### Source
```
python setup.py install
```

## Example mutually exclusive form field (TextInput & Select):
```
# with a widget inference
MutuallyExclusiveValueField(
    fields=(forms.TypedChoiceField(choices=[(1,1), (2,2)], coerce=int),
            forms.IntegerField()))

# manual widget creation (allows for the placeholder attr & other customization)
MutuallyExclusiveValueField(
    fields=(forms.IntegerField(), forms.IntegerField()),
    widget=MutuallyExclusiveRadioWidget(widgets=[
            forms.Select(choices=[(1,1), (2,2)]),
            forms.TextInput(attrs={'placeholder': 'Enter a number'}),
        ]))
```

## Using FileOrUrlField
This library also includes a more complete field that inherits from
`MutuallyExclusiveValueField` that allows users to upload files via an URL or a
file upload. The field accepts a `to` parameter accepting the following values:
`None, 'url', 'file'`. This value causes the field to perform either no
normalization, normalizatoin to an url (by storing uploaded files as media) or
to a file (by downloading urls to an `InMemoryUploadedFile`).
### Example:
```
FileOrUrlField(None) # returns UploadedFile objects or URL based on user input
FileOrUrlField(to='file') # always validates to an UploadedFile
FileOrUrlField(to='url', upload_to='foobar') # always validates to an URL
```
#### AWS note:
The `FileOrUrlField` supports a they keyword argument `no_aws_qs` which
disables aws querystring authorization if using AWS via `django-storages`

## Tests & coverage!
to run the tests simply run:
```
DJANGO_SETTINGS_MODULE=xorformfields.test_settings django-admin.py test xorformfields
```

Coverage results are available here: https://dschep.github.io/django-xor-formfields/htmlcov/