Skip to main content

Paramo

Paramo is a library for HTTP parameter (Query) parsing.
It acts much like a common CLI argument parser, letting you adding default values.

Installation

# Git + Pip
pip install git+https://github.com/ZSendokame/Paramo

# Pip
pip install Paramo

Use

import paramo
from flask import Flask, request

app = Flask(__name__)
params = paramo.Parser()


@app.before_request
def before():
    params.add('name', default='Drackord')
    params.add('role', default='The lost son of Julio Iglesias')
    params.parse(request.url)


@app.get('/')
def root():
    params.query_list['unparsed'] = paramo.unparse(params.query_list)

    return params.query_list


app.run()

# url: http://127.0.0.1:5000/?surname=Iglesias
# {
#   "name": "Drackord",
#   "role": "The lost son of Julio Iglesias",
#   "surname": "Iglesias",
#   "unparsed": "?surname=Iglesias&name=Drackord&role=The lost son of Julio Iglesias"
# }

Metadata

Release files for Paramo 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Paramo 1.0.0
File Size Uploaded Provenance Actions
Paramo-1.0.0.tar.gz 2.2 kB Without provenance Details for Paramo-1.0.0.tar.gz

Release files / Paramo-1.0.0.tar.gz

Download URL Paramo-1.0.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
53f36e6b845408fb683a60482c3ba3d3461037322dfda34430d7cfcdc612ee07
BLAKE2b-256 checksum
How to use checksums
6d68ff28d809a9327c03bf8fc14670f4f04bba040a722dcc1aeb540ea6034be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for Paramo 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page