
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
|travis| |coverage| |pyver|
.. |travis| image:: https://travis-ci.org/baverman/covador.svg?branch=master :target: https://travis-ci.org/baverman/covador
.. |coverage| image:: https://img.shields.io/badge/coverage-100%25-brightgreen.svg
.. |pyver| image:: https://img.shields.io/badge/python-2.6%2C_2.7%2C_3.4%2C_3.5%2C_3.6%2C_3.7%2C_3.8%2C_pypy-blue.svg
Validation library for processing http endpoint arguments.
.. code:: python
from flask import Flask
from covador import split, opt
from covador.flask import query_string
app = Flask(__name__)
@app.route('/')
@query_string(foo=opt(split(int), []))
def csv_argument(foo):
return repr(foo)
# GET /?foo=1,2,3 -> [1, 2, 3]
if __name__ == '__main__':
app.run()
query_string
/form
/params
/json_body
/args
wrappers.multi
param.src
param.opt(default=[]) | split(separator=' ') | List(int) | (lambda it: it[:10])
or more concise opt(split(int, separator=' '), []) | operator.itemgetter(slice(10))
—
an optional argument of space separated integers and we need top 10 items from it and it
is empty by default.schema(foo=[{'boo': int}])
, validates {'foo': [{'boo': 10}, {'boo': 20}]}
.FAQs
Python data validation with web in-mind
We found that covador demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.