Welcome To DStore
Flask-DStore is a Web API and Javascript Client. The API routes, logic and client code is automatically generated for you.
Installing
PyMan is available from the PyPi repository.
This means that all you have to do to install PyMan is run the following in a console:
$ pip install dstore-flask
Minimal Example
from flask import Flask
from dstore import MemoryStore, Model, var, mod
from flask_dstore import API
class Car( Model ):
_namespace = "cars.make"
_vars = [
var.RowID,
var.String( "manufacturer", 32, mods = [ mod.NotNull() ] ),
var.String( "make", 32, mods = [ mod.NotNull() ] ),
var.Number( "year", mods = [ mod.NotNull(), mod.Min( 1950 ), mod.Max( 2017 ) ] ),
]
# Create the app instances
app = Flask( __name__ )
store = MemoryStore( [ Car ] )
api = API( store, app )
# While inside the Flask app context, create all storage and add a car
with app.app_context():
store.create_all()
Car( manufacturer = "Holden", make = "Commodore", year = 2005 ).add()
# Run the Flask dev. server
app.run()
# Now destroy all data
with app.app_context():
store.destroy_all()
store.destroy_app()
Documentation: ReadTheDocs
Source Code: GitHub
Metadata
Release files for Flask-DStore 0.1.2
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 |
|---|---|---|---|---|
| Flask-DStore-0.1.2.tar.gz | 4.5 kB | Without provenance | Details for Flask-DStore-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_DStore-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for Flask_DStore-0.1.2-py2.py3-none-any.whl |
Total release size: 12.3 kB
Release files / Flask-DStore-0.1.2.tar.gz
| Download URL | Flask-DStore-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52dcc34b578f68f426a190d1439687a26423336f7c92e43d7fe94ceb459bff47
|
|
BLAKE2b-256 checksum How to use checksums |
2ced59af668e7266c7c611eabd37201dfa3b2ea71a79acb480f43c97642b6af7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Flask_DStore-0.1.2-py2.py3-none-any.whl
| Download URL | Flask_DStore-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dd948571bd2ad923886dec0a9ef9128d838bdf7e898ffb20e96f6a50103b4981
|
|
BLAKE2b-256 checksum How to use checksums |
932b0ebb364a99384614ab901650ff12e92fd2b462961f52677e4a73534ec2f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-DStore 0.1.2
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.