Skip to main content
https://secure.travis-ci.org/drdaeman/flask-toybox.png?branch=master

Sorry, no documentation yet, this is totally pre-alpha quality.

I just needed something to implement somehow RESTful (or, to be precise, what I consider RESTful) API. I’ve looked around for a readily available solution, but didn’t found anything that suited my needs and desires. So I’ve wrote a hopefully reusable library to do it.

The work is in progress, and API is unstable and subject to various changes.

See feature list below for main points about this library.

Features

What’s implemented:

  • Extensible (de)serialization for both input and output, with HTTP content-type negotiation.

  • Handling of GET and PATCH requests (object retrieval and modification)

  • Relatively flexible field-level permissions. Could be always supplemented by TastyPie-like hydration/dehydration methods.

  • SQLAlchemy model and collection views support. Best used with Flask-SQLAlchemy.

  • Simple pagination helper (pagination using “Range” request header).

  • Built-in helper for filtering SQLAlchemy collections.

What’s missing:

  • Better example.

  • Documentation. There are some docstrings in source code, but not much.

  • POST, PUT and DELETE requests (object creation and deletion).

  • Overriding negotiation using query string (i.e. ?format=json)

  • Nested resources.

  • Better test coverage.

Metadata

Release files for Flask-ToyBox 0.0.3

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

Source distribution (sdist)

Source distribution for Flask-ToyBox 0.0.3
File Size Uploaded Provenance
Flask-ToyBox-0.0.3.tar.gz 28.1 kB Without provenance Details

Release files / Flask-ToyBox-0.0.3.tar.gz

Download URL Flask-ToyBox-0.0.3.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e82bb40211a1d59e573b286ca1aa8c47771f38f4b51c9b3203f0a1945b1fe186
BLAKE2b-256 checksum
How to use checksums
fdbd3d4c239d6c8fb7fd58431812c1c1bd1d24f7852353869016869d44cf2737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flask-ToyBox 0.0.3

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.

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