Flask
Flask is a web framework for Python, based on the Werkzeug toolkit.
Here are 13,733 public repositories matching this topic...
When making a simple mistake like:
html.Table('a', 'b')
instead of
html.Table(['a', 'b'])
you get a pretty tough-to-debug error message:
TypeError: __init__() takes at most 2 arguments (3 given)
We should catch these types of errors and provide a better error message
Zappa’s documentation lists cache_cluster_enabled and cache_cluster_size properties for deployment environments in zappa_settings.json. We need a similar one for API Gateway’s cache TTL.
A curated list of awesome Flask resources and plugins
-
Updated
Jan 2, 2020
gdbgui Roadmap
gdbgui was started and developed by me in my spare time. It has grown in scope, and gotten more users than I ever expected from all over the world, which is very exciting
Expected Behavior
I expected and the documentation hints has such changing config after loading the setting file is fine, and that if one wants to benefits from the defaults one needs to load them from a file.
But that's not true because propagation of global settings to the domain happens at config file loading time.
And there is no way to tweak the settings before applying them :EveWSGIRe
What's wrong
@dvf it would be great if you could fix Step 6: Setting up Flask gist, it affects the workflow at the Learn Blockchains by Building One article. Also there is no way to mention someone at the gist comments, so I created this issue instead.
Hello Everyone, I have been a good time away from the repository.
I Wanted to tell you that I am working on version 3.0 where all errors are corrected and of course, will have many innovative improvements built in.
Best regards!
Wiki sidebar
Sorry if this is redundant. Is it possible to include _SIDEBAR.md? This is incredibly useful for README.md but I'd like to preview my wiki changes locally before I look like a chump committing a bunch of broken markdown.
If this is not possible, is there any in browser nav that can be enabled without having to adjust the URL by hand?
docs: Add an index
Currently, it is a very long page that'd be easier to navigate and search with an index. Also, maybe split up docs in small consumable amount by using different pages?
https://swagger.io/docs/specification/authentication/basic-authentication/
Using OpenAPI, in order to document a route that requires authentication (i.e. Basic Auth in this case), we need the following entry in schema.yml:
components:
securitySchemes:
basicAuth: # <-- arbitrary name for the security scheme
type: http
scheme: basic
...
paths:
/somSentryMiddleware
Test coverage 100%
For really long running queries, it is annoying not knowing if the preview click is loading anything, as it gives no feedback.
A flask template with Bootstrap 4, asset bundling+minification with webpack, starter templates, and registration/authentication. For use with cookiecutter.
-
Updated
Jan 3, 2020 - Python
In menu.py
code
def add_category(self, category, icon="", label="", parent_category=""):
label = label or category
if parent_category == "":
self.menu.append(MenuItem(name=category, icon=icon, label=label))
else:
self.find(category).childs.append(MenuItem(name=category, icon=icon, label=label))
In the last line , the 'self.find(category)...' should be '
- Should the backup file be named .ctf?
- At the moment CTFd stops on Integrity errors. Should we skip over the bad data and report it to the user?
- Error messages are show to the user in an alert. Should we do something prettier?
ie. what does it mean when a "path part is empty" or "name is not a string" or "Private torrent doesn't have our tracker".
The link would show when the .torrent fails validation serverside.
Related to #117 as well.
A simple Flask boilerplate app with SQLAlchemy, Redis, User Authentication, and more.
-
Updated
Jan 2, 2020 - Python
Hello
I am using imported classes from different files/modules. I am using api.add_resource() but I can't find a way to use api.doc() inside the imported class.
Could you help me?
Thank you
REF: https://github.com/gangverk/flask-swagger/pull/32/files
If found get, post, put, patch, delete, option, head.. swaggify based in those paths.
@app.route('/user', methods=["GET", "PUT"])
def user():
"""
get:
Get a user
Use this endpoint to get a user object
---
tags:
- User API
definitions:
- schI discovered many SyntaxError during setup.py installation.
build/bdist.macosx-10.12-x86_64/egg/pyt/__main__.py", line 323
if args.print:
^
SyntaxError: invalid syntax
File "build/bdist.macosx-10.12-x86_64/egg/pyt/analysis_base.py", line 9
class AnalysisBase(metaclass=ABCMeta):
^
SyntaxError: invalid syntax
We should add support for TravisCI or CircleCI or the like so we can run the test suite across key platforms including:
- macOS
- Windows
- Ubuntu
- CentOS
This would help catch issues like seen with #152
FlaskBB has extensive internationalization support, and several translations already. However, there's still much to be desired. After examining flaskbb's translation practices, I've found the following issues:
It's not clear what translators are supposed to do
After digging in the source files, I discovered that flaskbb uses transifex for cro
Created by Armin Ronacher
Released April 1, 2010
Latest release 6 months ago
- Repository
- pallets/flask
- Website
- flask.pocoo.org
- Wikipedia
- Wikipedia
We do not encourage people to create more than one database connection and to connect to databases in arbitrary extensions. The obvious exception are extensions whose sole purpose is to connect to databases. Dependency resolving is done by the developer. Eg:
The problem comes with blueprints. If Someth