semvec/pypi-packages huggingface dataset:
is-this-journal-predatory 0.0.2
Check whether a journal is listed in Beall's List from within Python.
Requires Python: >=3.6

# is_this_journal_predatory
Check whether a journal is predatory from within Python.


# usage example:
```python
import is_this_journal_predatory 

journalURL = "http://www.academeresearchjournals.org/"

is_this_journal_predatory.is_predatory(journalURL)      #outputs message about whether the input URL is predatory
```
mewing 1.1.0
A Twitter scraper with integration with Neo4j for the purposes of social mapping.
Requires Python: >=3.6

# Mewing

Mewing is a term for a flock of Catbirds. Catbirds are song birds whose wailing calls resemble a cat's meow.
Twitter being bird themed and the internet's love of cats this seemed like an appropriate name.

[Catbird](https://en.wikipedia.org/wiki/Catbird)
sarcastic-color-scheme 0.2.0
A sarcastic color scheme for matplotlib.
Requires Python: >=3.5


# Sarcastic Color Scheme

Color scheme for when you want to present some data visualization, but sarcastically.

This is useful for

 - presenting bad data where you aren't confident in the results,
 - turning in assignments you'd rather not do
 - annoying people who care about good dataviz


# Features

The code for all the demos can be found [here](https://github.com/kavigupta/sarcastic-color-theme/blob/master/demo/demo.py).


## Afwul background

<img src="https://github.com/kavigupta/sarcastic-color-theme/raw/master/demo/sarcastic_0.png">

Yes, you saw that correctly, there are two different awful background colors for the plot background and the legend background.

## Terrible plot colors

Yes, the colors on display here are cyan, grey, light blue, purple and orange. Yes, that looks terrible.

## Bad spacing

You may have noticed the abysmal spacing of the title. Yes, that is deliberate.

## Weird inexplicable borders / grid

Yes, you are right that the borders aren't all correctly there.

## Colored axes

Yep, the axes are colored, different colors.

# Inconsistent Style

This wouldn't be maximally awful if it was consistent, which is why running exactly the same code two more times yields these:

<img src="https://github.com/kavigupta/sarcastic-color-theme/raw/master/demo/sarcastic_1.png">
<img src="https://github.com/kavigupta/sarcastic-color-theme/raw/master/demo/sarcastic_2.png">

This way, not only is every graph terrible looking, but you can't get used to the style!

# How to install and use

You can install this package using the following command

```sh
pip install sarcastic-color-scheme
```

To use it you can run

```python
from sarcastic_color_scheme import sarcastic
```

and then either run

```python
sarcastic.sarcastic()
```

to make all subsequent graphs sarcastic (`sarcastic.normal()` undoes the change), or to make a single graph sarcastic run

```python
with sarcastic:
    # your graph code here
```

# Configurable

If you look at [the code](https://github.com/kavigupta/sarcastic-color-theme/blob/master/demo/demo.py) you'll notice that you use a context manager to make sure that the sarcasm mode is enabled:

```python
with sarcastic:
    test_graph()
```

You can also run

```python
sarcastic.sarcastic()
test_graph()
sarcastic.normal()
```

to get the same effect, without the context manager. After the context manager is complete, the styles are reset to where they were before it ran as can be seen in the plot


<img src="https://github.com/kavigupta/sarcastic-color-theme/raw/master/demo/back_to_normal.png">
httperrors 1.0.0
Library that provides a easy to use set of http errors along with useful descriptions
Requires Python: >=3.0

httperrors
==========

Http errors provide a list of easy to test and descriptive set of python
errors.

Code example
------------

Raising exception
~~~~~~~~~~~~~~~~~

::

   from httperrors import BadRequestError
   class View(BaseView):
       def validate(self, request):
           ... 
           if not request.body.is_json():
               raise BadRequestError(
                   error_message="You must provide a JSON body",
                   error_code="NOT_A_JSON_BODY_ERROR",
               )
       def run(self,request):
           ...

Serialization
~~~~~~~~~~~~~

You will be able to catch this exception somewhere in the flow of your
application, map it and serialize it to the corresponding request.

::

   from httperrors import BadRequestError
   class BaseView:
   def __init__(self):
       try:
           self.validate()
       except BadRequestError as e:
           return json_response(
               status_code=e.status_code,
               body=e.serialize()
           )

Testing
~~~~~~~

You will be able to easily test your application

::

   from httperrors import BadRequestError
   class TestView:
   def test_it_raises_bad_request_error_not_json_body(self):
       view = View()
       request = Mock()
       request.body.is_json.return_value = False
       with pytest.raises(BadRequestError) as error:
           view.validate()
           assert error.error_code == "NOT_A_JSON_BODY_ERROR"
pyqt5-file-dialogs 1.0.1
Interactive file selection prompts using Qt5.
Requires Python: >=3.6

# pyqt5-file-dialogs
Interactive file selection prompts using Qt5.

## Usage

```python
import json
from pathlib import Path

from pyqt5filedialogs import get_open_filepath, get_save_filepath

def read_data():
    """
    Load data from a JSON file selected by the user.
    """
    filepath = get_open_filepath(caption="Select a JSON data file.")
    with open(filepath, 'r') as f:
        data = json.load(f)
    return data

def export_config():
    """
    Export a config `dict` object to a JSON file selected by the user.
    """
    config = {
        'preferences': {
            'theme': 'light',
            'font_size': 16,
            'font_family': 'Roboto',
        }
    }

    config_dir = Path.home().joinpath('.config', 'myapp')
    if not config_dir.exists():
        config_dir.mkdir(parents=True)
    filepath = get_save_filepath(filter='JSON Files (*.json)')
    with open(filepath, 'w') as f:
        json.dump(config, f)
    return filepath.stat().st_size
```

## Installation

Install with pip.

```bash
$ pip install pyqt5filedialogs
```

## Dependencies

* `PySide2` - Qt5 bindings for Python.

## License

This project is licensed under the [MIT license](./LICENSE.txt).