Flask Import/Export
Database import/export functionality for database stores under Flask
Example Usage
from frappyflaskauth import check_login_state
from frappyflaskimpex import register_endpoints
from flask import Flask
app = Flask(__name__)
# create a dictionary of stores (key > AbstractMongoStore subclass)
stores = {}
# register the endpoints
register_endpoints(app, stores, options={
"permission": "impex",
"login_check_function": check_login_state,
"temp_folder": "_data/temp",
})
Options
Options for the register_endpoints function are:
api_prefix- default/api/impex- is the prefix under which the endpoints will be registered. This should match the prefix used in the front-end.permission- defaultNone- the permission required to manage imports and exports, ifNoneis provided the user just needs to be logged in.login_check_function- defaultNone- provide a function that performs authentication and uses Flask'sabortin case the login / permission check fails. The function has 1 parameter for the required permission. You can usecheck_login_statefrom thefrappyflaskauthpackage.temp_folder- default_temp- a folder path which will be used to temporarily store zip/json files used for import and export.
Metadata
Release files for frappyflaskimpex 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| frappyflaskimpex-1.0.0.tar.gz | 3.5 kB | Without provenance | Details for frappyflaskimpex-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| frappyflaskimpex-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for frappyflaskimpex-1.0.0-py3-none-any.whl |
Total release size: 11.5 kB
Release files / frappyflaskimpex-1.0.0.tar.gz
| Download URL | frappyflaskimpex-1.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55d2c13aba75dbe536cbcfb3e7a879ac106cfb7d1aa1afa272bffd9fd7fe818e
|
|
BLAKE2b-256 checksum How to use checksums |
044029790f656475b4d76f94a7852d666bcdf045df2bf3df594dc30e281e3a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.12
|
Release files / frappyflaskimpex-1.0.0-py3-none-any.whl
| Download URL | frappyflaskimpex-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
455debfd5c995374faf786c61913fc135d7cedffd5434c98b2bbc0c320d58216
|
|
BLAKE2b-256 checksum How to use checksums |
b1a90d185300e7cfc08e1d23216c57e0d8a175ea03942b39889c7db6745d1796
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.12
|
Security for frappyflaskimpex 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.