GithubHelp home page GithubHelp logo

reorx / params Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 4.0 103 KB

A Python package that does better in request parameters validation than django.forms, wtforms, web_args or so.

Makefile 0.62% Python 99.38%
arguments django parameters python tornado validator

params's People

Contributors

lesywix avatar pathcl avatar reorx avatar weaming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

params's Issues

Python3 support

There are weird inconsistencies regarding exception handling:

rumanio:ezmomi cosmonautas$ pip3 list |grep -i params
params (0.2.1)

rumanio:ezmomi cosmonautas$ grep -r -i except /usr/local/lib/python3.6/site-packages/params/
Binary file /usr/local/lib/python3.6/site-packages/params//contrib/pycache/django.cpython-36.pyc matches
Binary file /usr/local/lib/python3.6/site-packages/params//contrib/pycache/tornado.cpython-36.pyc matches
/usr/local/lib/python3.6/site-packages/params//contrib/django.py: except Exception as e:
/usr/local/lib/python3.6/site-packages/params//contrib/tornado.py: except Exception as e:
/usr/local/lib/python3.6/site-packages/params//core.py:class InvalidParams(Exception):
/usr/local/lib/python3.6/site-packages/params//core.py: except Exception as e:
/usr/local/lib/python3.6/site-packages/params//core.py: except ValueError, e:
/usr/local/lib/python3.6/site-packages/params//core.py: except ValueError, e:
/usr/local/lib/python3.6/site-packages/params//core.py: except ValueError, e:
/usr/local/lib/python3.6/site-packages/params//fields.py: except UnicodeDecodeError:
/usr/local/lib/python3.6/site-packages/params//fields.py: except ValueError as e:
/usr/local/lib/python3.6/site-packages/params//fields.py: except ValueError as e:
/usr/local/lib/python3.6/site-packages/params//fields.py: except ValueError, e:
/usr/local/lib/python3.6/site-packages/params//fields.py: except ValueError:

rumanio:ezmomi cosmonautas$ python3
Python 3.6.0 (default, Dec 24 2016, 00:01:50)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

Why not always use 'as' ?. This breaks compatibility on python 3.6.0 at least

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.