flask_for_startups
asdf
flask_for_startups | asdf | |
---|---|---|
24 | 341 | |
296 | 20,547 | |
- | 1.6% | |
3.8 | 7.6 | |
10 months ago | 5 days ago | |
Python | Shell | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flask_for_startups
-
Why use marshmallow with REST API and ORM?
Ref
-
Repeatedly typing export FLASK_ENV=development and export FLASK_APP=hello.py before running flask
Example of .flaskenv Example of config file
-
[AF] Role-based authentication, alternatives to [Flask-User]?
If you want to see the full example, here's my repo
-
ML web app
Here's the flask repo that I used. The repo doesn't have the specific ML bits, but all you have to do is:
-
Frankly, I don't like Flask. Am I doing something wrong?
I use this structure: https://github.com/nuvic/flask_for_startups
-
Use SQLAlchemy with and without Flask
@app.teardown_appcontext def shutdown_session(response_or_exc): db.remove() Ref
-
In what cases do you apply decorators to Route Functions?
for reference: https://github.com/nuvic/flask_for_startups/blob/main/app/permissions.py
-
How to be a better Flask Developer
I also made a repo https://github.com/nuvic/flask_for_startups showing some of the patterns I found useful while working in startups.
- Can anyone share their flask project that uses poetry, pre-commit, tox, pytest, coverage? I was looking for a practical example
-
Pytest database not creating tables
Here's my conftest setup for reference (repo here:
asdf
-
Install Asdf: One Runtime Manager to Rule All Dev Environments
The main issue most people have with asdf is that it’s annoyingly slow. Not unusably so, but just enough that it’s irritating.
I identified [0] the source for much of it (sub-shells and pipes) and began a PR [1], but became bogged down with BATS testing, and then found mise / rtx, so kind of lost interest. Sorry. You can always implement these if you’d like.
[0]: https://github.com/asdf-vm/asdf/issues/290#issuecomment-1383...
[1]: https://github.com/asdf-vm/asdf/pull/1441
- Show HN: I made a multiple runtime version manager that can be used on Windows
-
Volta – Fastest Node version manager in Rust
Or if you need to manage more than just node, asdf has been around for over a decade and works great. You can use a .tool-versions to change runtimes for each project you have, in addition to managing your global runtime versions
https://asdf-vm.com/
-
Pyenv – lets you easily switch between multiple versions of Python
Why not just use a tool like asdf (https://asdf-vm.com/) or mise (https://mise.jdx.dev/)?
These tools have the advantage of not being multi-taskers and can manage version for all your tools. You wouldn’t need pyenv and npm and rvm and…
We’ve even started committing the .mise.toml files for projects to our repos. That way, since we work on multiple projects that may need multiple versions of the same tool, it’s handled and documented.
-
A Journey to Find an Ultimate Development Environment
The purpose of a version manager is to help you navigate or install any tools for development easily. Version Manager can be one tool for each dependency (e.g. NVM, g) or One tool for all dependencies (e.g. asdf, mise).
-
How to Install Your Python Version on Ubuntu
(asdf)[https://asdf-vm.com/] fully supports Python and almost any other language. I've been using it for Ruby, Python, Elixir, and other languages for years and never looked back.
-
Beginners Intro to Trunk Based Development
Secondly, our development environments must not drift, because then code may behave differently and a change could pass on our machine but fail in production. There are many tools for locking down environments, e.g nix, pkgx, asdf, containers, etc., and they all share the common goal of being able to lock down dependencies for an environment accurately and deterministically. And that needs to be enforced in our local workflow so we don't have to rely on CI environments for correctness. All developers must have environments that are effectively identical to what runs in CI (which itself should be representative of the production environment).
-
Practical Guide to Trunk Based Development
There are many ways this can be done (e.g nix, pkgx, asdf, containers, etc.), and we won’t get into which specific tools to use, because we'll instead cover the essential essence of preventing environment drift:
- Criando seu ambiente com ASDF
-
Kotlin version manager
I've really been enjoying asdf, which is a program that allows you to install specified versions of dev utilities as well as dynamically manage them via shims and .tool-versions files.
What are some alternatives?
apispec - A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
SDKMan - The SDKMAN! Command Line Interface
flask-ask - Alexa Skills Kit for Python
pyenv - Simple Python version management
pycord - Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API
rbenv - Manage your app's Ruby environment
flask-restless - NO LONGER MAINTAINED - A Flask extension for creating simple ReSTful JSON APIs from SQLAlchemy models.
nvm - Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
nextcord - A Python wrapper for the Discord API forked from discord.py
volta - Volta: JS Toolchains as Code. ⚡
flask-api - Browsable web APIs for Flask.
HomeBrew - 🍺 The missing package manager for macOS (or Linux)