semvec/pypi-packages huggingface dataset:
flask-was 0.1.0
🍾 Flask extension for JSON API
License: MIT

![](https://og-image.vercel.app/**Flask**%20Was.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fvercel-triangle-black.svg&images=https%3A%2F%2Favatars3.githubusercontent.com%2Fu%2F73245034%3Fs%3D200%26v%3D4&images=https%3A%2F%2Fflask.palletsprojects.com%2Fen%2F1.1.x%2F_static%2Fflask-icon.png&images=https%3A%2F%2Fgithub.com%2Ffluidicon.png&widths=150&heights=150)
  
🍾 **Flask extension for JSON API**


> This project is created and maintained by ISCLUB studio. Use the MIT license on GITHUB and PYPI

## Introduction

**Flask-was** can better realize the separation of front and back ends. Quickly create data verification and check before the view function runs, generate data and return. You can also create user verification functions to data verification. Fast and elegant


## Install

Use pip to install or update:

``` bash
$ pip install -U flask-was
```

## Example

**A simple Signin**

``` python
from flask import Flask
from flask_was import Was, Checker, Column

app = Flask(__name__)
api = Was(app)

api.addChecker(
    namespace="signin",
    obj=Checker(
        {
            "name": Column(api.String, biggest_str=20, smallest_str=4),
            "email": Column(api.EmailAddress, biggest_str=255, smallest_str=3),
            "password": Column(api.String, biggest_str=20, smallest_str=4),
        }
    ),
)


@app.route("/api/signin", methods=["POST"])
@api.checkeout("signin")
def api_signin(postdata):
    if postdata[0]:
        print("======== A new user coming ... ========")
        print("Name: " + postdata[1]["name"])
        print("Email: " + postdata[1]["email"])
        return api.send(json={"messagess": "Signin was OK"}, status=200)
    else:
        return api.send(
            json={"messagess": "Have some error. Check you forms", "postdata": postdata},
            status=400,
        )

app.run()
```

**Post Request**:

``` python
import requests

print(requests.post(
    "http://127.0.0.1:5000/api/signin",
    data={
        "name":"Flask",
        "email":"flask@example.org",
        "password":"12345"
    },
).text)
```

## Documentation

Read the **documentation** to get started. The documentation is in the `/docs` folder. If this project is helpful to you, please click the **Star**

## Contribution Guide

If you find errors or have good suggestions, please refer to the following template to create **issues** and **pull requests**

- `Good ideas`

``` markdown
## Introduction

What can this idea do ...

## Code

The files I changed and what did I do ...

## Info

Version Information...

Python: 3.6.x
Flask: 1.1.x
Flask-Was: 0.1.x


```

- `Problems in use`

``` markdown
## Buiness

My business needs ...

## Code

Part of the code and full traceback ...

What does my code do ...

## Info

Version Information...

Python: 3.6.x
Flask: 1.1.x
Flask-Was: 0.1.x


```

If you make a useful contribution, you will be added to the **contributors.md**

## License

**MIT LICENSE**
genrss 1.0.6
RSS feed generator for python
License: MIT

# genrss

[![PyPI version](https://badge.fury.io/py/genrss.svg)](https://badge.fury.io/py/genrss)
[![Build Status](https://travis-ci.org/icetemple/genrss.svg?branch=master)](https://travis-ci.org/icetemple/genrss)
[![Coverage Status](https://coveralls.io/repos/github/icetemple/genrss/badge.svg?branch=master)](https://coveralls.io/github/icetemple/genrss?branch=master)
[![Documentation Status](https://readthedocs.org/projects/genrss/badge/?version=latest)](https://genrss.readthedocs.io/en/latest/?badge=latest)

RSS generator for python


## Installing

genrss using lxml library that required:

* libxml2 version 2.9.2 or later.
* libxslt version 1.1.27 or later.

To install the required development packages of these dependencies on Linux systems,
use your distribution specific installation tool, e.g. apt-get on Debian/Ubuntu:

```bash
sudo apt-get install libxml2-dev libxslt-dev
```


Install and update using pip:

```bash
pip install -U genrss
```


## A Simple Example

```python
from datetime import datetime
from genrss import GenRSS

feed = GenRSS(title='SmartFridge',
              site_url='https://smartfridge.me',
              feed_url='https://smartfridge.me/feed/rss.xml')

feed.item(title='black buns for burgers',
          description='For the first time black burgers appeared ' \
                      'in Japan. Unusual dark color buns complemented ' \
                      'with black cheese and sauce. Over time, the dish ' \
                      'has conquered the whole world. The main secret ' \
                      'ingredient in popular buns is the most common... ' \
                      'charcoal!',
          url='https://smartfridge.me/recipe/316b28-chernye-bulochki-dlya-burgerov/',
          author='@smartfridge',
          categories=['baking'],
          pub_date=datetime.utcnow())

xml = feed.xml()
```

## Links

Documentation: [https://genrss.readthedocs.io/en/latest/](https://genrss.readthedocs.io/en/latest/)
coperator 1.1.12
Custom operators for python
License: MIT

COPERATOR
==============

COPERATOR Usage
-------------------------------

factory_operator usage
------------------------
.. code:: python

    from coperator.myoperator import factory_operator


    class Example:
        """Example."""

        def __init__(self, x: int) -> None:
            """__init__.

            :param x:
            :type x: int
            :rtype: None
            """
            self._x: int = self.set_x(x)

        def set_x(self, x: int) -> int:
            """set_x.

            :param x:
            :type x: int
            :rtype: int
            """
            return x

        def get_x(self) -> int:
            """get_x.

            :rtype: int
            """
            return self._x

        def __str__(self) -> str:
            """__str__.

            :rtype: str
            """
            return str(self.get_x())


    @factory_operator(Example, Example, Example)
    def op(A: Example, B: Example) -> Example:
        """op.

        :param A:
        :type A: Example
        :param B:
        :type B: Example
        :rtype: Example
        """
        return Example(A.get_x() + B.get_x())


    E1: Example = Example(1)
    E2: Example = Example(2)
    E3: Example = Example(3)

    print(E1 * op * E2 * op * E3)

.. code-block::

   6

monad usage
------------------------

.. code:: python

   from coperator.monad import monad

    def neg(i):
        return -i

    print(monad("1")(int)(neg)(str)(None))
    print(monad("x")(int)(neg)(str)(None))

    def func1(i):
        return monad(i)(int)(neg)(str)(None)

    print(list(map(func1,["1",2,"z"])))


.. code-block::

   '-1'
   None
   ['-1','-2',None]


Links and references
------------------------
- Source code: https://gitlab.com/jecjimenezgi/coperator

LICENSE
------------

MIT License

Copyright (c) 2020 Jean Carlo Jimenez Giraldo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
fooster-curse 0.5.1
rewrite identifiers in Python source code with Unicode characters that still have the same canonical normalization
License: MIT

# Widdershins

## Usage

    $ pip install fooster-curse
    $ curse file.py >cursed_file.py
    $ cat cursed_file.py
    $ python cursed_file.py

Output is still a valid Python program with identical function and maintains API compatibility despite identifiers being mangled and with the same identifier mangled differently for each occurrence in the file.


## Rule of Three Clause

Mind the Three-fold Laws you should three times bad and three times good.
When misfortune is enow wear the star upon your brow.

Be true in love this you must do unless your love is false to you.

These Eight words the Rede fulfill:
"An Ye Harm None, Do What Ye Will"