Skip to main content

Latest Version Apache 2.0 STARS

PonyORM for your Flask application.

Installation

pip install flask-pony

Quick start

Read the documentation for the pony-database-facade package.

# app.py

from flask import Flask

from flask_pony import Pony


app = Flask(__name__)
app.config.from_object('configmodule.Config')

pony = Pony(app)

from . import models

pony.connect()
# models.py

from pony.orm import Required

from . import pony


db = pony.db


class Person(db.Entity):
    username = Required(str, 50)
# configmodule.py

class Config(object):
    PONY = {
        'provider': 'mysql',
        'user': 'anyone',
        'password': 'anykey',
        'dbname': 'blog'
    }

Metadata

Release files for Flask-Pony 3.0.1

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-Pony 3.0.1
File Size Uploaded Provenance
flask-pony-3.0.1.tar.gz 2.8 kB Without provenance Details

Release files / flask-pony-3.0.1.tar.gz

Download URL flask-pony-3.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4ec6fca4e1ecf4bd3f7a1ad26c47b2eadea381f15661da9278304f8f4f32deef
BLAKE2b-256 checksum
How to use checksums
deb7d1292418a7f968bd7e310051c90eb0bfb0431fde35c4e6116bf894e91eb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flask-Pony 3.0.1

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.

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