A boilerplate Flask API for a Fullstack Project :rocket:

Overview

NECTUS

Nectus ūüöÄ

Flask Boilerplate to quickly get started with production grade flask application with some additional packages and configuration prebuilt.

Getting Started

Prerequisites

  • Python 3.9.2 or higher
  • PostgreSQL
  • Docker

Project setup

# clone the repo
$ git clone https://github.com/yezz123/Nectus.git

# move to the project folder
$ cd Nectus

Creating virtual environment

  • Install pipenv a global python project pip install pipenv
  • Create a virtual environment for this project
# creating pipenv environment for python 3
$ pipenv --three

# activating the pipenv environment
$ pipenv shell

# if you have multiple python 3 versions installed then
$ pipenv install -d --python 3.8

# install all dependencies (include -d for installing dev dependencies)
$ pipenv install -d

Configuration

  • Create a .env file from .env.sample and set appropriate environment variables before running the project
APP_NAME=Nectus

DB_HOST= # Host ex. localhost
DB_DATABASE= # Database
DB_USERNAME= # Username ex. Root
DB_PASSWORD= # Password

JWT_SECRET= # generate a JWT Secret
UPLOAD_FOLDER = public

FLASK_APP=main.py
FLASK_ENV=development

Database Migration

  • Make sure the database name username, password and host have been set in the env

  • Migrate and upgrade database into your database management (for this case postgreeSQL)

flask db init

flask db migrate -m "create new table"

flask db upgrade

Running app

  • If you feel that everything can be run, then run the Flash API
flask run

Running the Docker Container

  • We have the Dockerfile created in above section. Now, we will use the Dockerfile to create the image of the flask app and then start the flask app container.
docker build
  • list all the docker images and you can also see the image nectus:latest in the list.
docker images
  • run the application at port 5000. The various options used are:
  • -p: publish the container's port to the host port.
  • -d: run the container in the background.
  • -i: run the container in interactive mode.
  • -t: to allocate pseudo-TTY.
  • --name: name of the container
docker container run -p 5000:5000 -dit --name Nectus nectus:latest
  • Check the status of the docker container
docker container ps

Preconfigured Packages

Includes preconfigured packages to kick start flask app by just setting appropriate configuration.

Package Usage
flask-cors Configuring CORS
python-dotenv Reads the key-value pair from .env file and adds them to environment variable.
PyJWT Python library which allows you to encode and decode JSON Web Tokens (JWT).

yapf packages for linting and formatting

License

This program is free software under MIT license. Please see the LICENSE file in our repository for the full text.

Issues
  • Lint & Rebuild Nectus ‚ú®

    Lint & Rebuild Nectus ‚ú®

    null

    enhancement Extra Large 
    opened by yezz123 2
  • ‚¨ÜÔłŹ Bump greenlet from 1.1.1 to 1.1.2

    ‚¨ÜÔłŹ Bump greenlet from 1.1.1 to 1.1.2

    Bumps greenlet from 1.1.1 to 1.1.2.

    Changelog

    Sourced from greenlet's changelog.

    1.1.2 (2021-09-29)

    • Fix a potential crash due to a reference counting error when Python subclasses of greenlet.greenlet were deallocated. The crash became more common on Python 3.10; on earlier versions, silent memory corruption could result. See issue 245 <https://github.com/python-greenlet/greenlet/issues/245>_. Patch by fygao-wish.
    • Fix a leak of a list object when the last reference to a greenlet was deleted from some other thread than the one to which it belonged. For this to work correctly, you must call a greenlet API like getcurrent() before the thread owning the greenlet exits: this is a long-standing limitation that can also lead to the leak of a thread's main greenlet if not called; we hope to lift this limitation. Note that in some cases this may also fix leaks of greenlet objects themselves. See issue 251 <https://github.com/python-greenlet/greenlet/issues/251>_.
    • Python 3.10: Tracing or profiling into a spawned greenlet didn't work as expected. See issue 256 <https://github.com/python-greenlet/greenlet/issues/256>_, reported by Joe Rickerby.
    Commits
    • ea9ad9c Preparing release 1.1.2
    • a7cd644 Add extra metadata to setup.py
    • 88ae96a Update change log to clarify greenlet/list leak
    • d70ab45 Merge pull request #259 from python-greenlet/issue256
    • 22e3464 Propagate the use_tracing value at switch time as well on 3.10.
    • 7eee763 Start adding some tests.
    • 4287a40 Fix profile behaviour in 3.10.
    • 127d6aa Merge pull request #253 from python-greenlet/issue251
    • da4ddc0 Fix #251 by getting the reference count of the list correct.
    • ebb9254 Add failing test for #251.
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump mako from 1.1.5 to 1.1.6

    ‚¨ÜÔłŹ Bump mako from 1.1.5 to 1.1.6

    Bumps mako from 1.1.5 to 1.1.6.

    Release notes

    Sourced from mako's releases.

    1.1.6

    Released: Wed Nov 17 2021

    bug

    • [bug] [lexer] Fixed issue where control statements on multi lines with a backslash would not parse correctly if the template itself contained CR/LF pairs as on Windows. Pull request courtesy Charles Pigott.

      References: #346

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump sqlalchemy from 1.4.26 to 1.4.27

    ‚¨ÜÔłŹ Bump sqlalchemy from 1.4.26 to 1.4.27

    Bumps sqlalchemy from 1.4.26 to 1.4.27.

    Release notes

    Sourced from sqlalchemy's releases.

    1.4.27

    Released: November 11, 2021

    orm

    • [orm] [bug] Fixed bug in "relationship to aliased class" feature introduced at relationship_aliased_class where it was not possible to create a loader strategy option targeting an attribute on the target using the _orm.aliased() construct directly in a second loader option, such as selectinload(A.aliased_bs).joinedload(aliased_b.cs), without explicitly qualifying using _orm.PropComparator.of_type() on the preceding element of the path. Additionally, targeting the non-aliased class directly would be accepted (inappropriately), but would silently fail, such as selectinload(A.aliased_bs).joinedload(B.cs); this now raises an error referring to the typing mismatch.

      References: #7224

    • [orm] [bug] All _result.Result objects will now consistently raise _exc.ResourceClosedError if they are used after a hard close, which includes the "hard close" that occurs after calling "single row or value" methods like _result.Result.first() and _result.Result.scalar(). This was already the behavior of the most common class of result objects returned for Core statement executions, i.e. those based on _engine.CursorResult, so this behavior is not new. However, the change has been extended to properly accommodate for the ORM "filtering" result objects returned when using 2.0 style ORM queries, which would previously behave in "soft closed" style of returning empty results, or wouldn't actually "soft close" at all and would continue yielding from the underlying cursor.

      As part of this change, also added _result.Result.close() to the base _result.Result class and implemented it for the filtered result implementations that are used by the ORM, so that it is possible to call the _engine.CursorResult.close() method on the underlying _engine.CursorResult when the the yield_per execution option is in use to close a server side cursor before remaining ORM results have been fetched. This was again already available for Core result sets but the change makes it available for 2.0 style ORM results as well.

      References: #7274

    • [orm] [bug] [regression] Fixed 1.4 regression where _orm.Query.filter_by() would not function correctly on a _orm.Query that was produced from _orm.Query.union(), _orm.Query.from_self() or similar.

      References: #7239

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump jinja2 from 3.0.2 to 3.0.3

    ‚¨ÜÔłŹ Bump jinja2 from 3.0.2 to 3.0.3

    Bumps jinja2 from 3.0.2 to 3.0.3.

    Release notes

    Sourced from jinja2's releases.

    3.0.3

    What's Changed

    New Contributors

    Full Changelog: https://github.com/pallets/jinja/compare/3.0.2...3.0.3

    Changelog

    Sourced from jinja2's changelog.

    Version 3.0.3

    Released 2021-11-09

    • Fix traceback rewriting internals for Python 3.10 and 3.11. :issue:1535
    • Fix how the native environment treats leading and trailing spaces when parsing values on Python 3.10. :pr:1537
    • Improve async performance by avoiding checks for common types. :issue:1514
    • Revert change to hash(Node) behavior. Nodes are hashed by id again :issue:1521
    • PackageLoader works when the package is a single module file. :issue:1512
    Commits
    • 2a48dd8 Merge pull request #1543 from pallets/release-3.0.3
    • ce1a539 release version 3.0.3
    • 199b6d5 Merge pull request #1542 from pallets/package-loader-file
    • eec0db8 PackageLoader works with single module file
    • 46f3a68 Merge pull request #1541 from pallets/docs-pow-order
    • 0d19990 document chained pow order
    • 99daa2a Merge pull request #1540 from pallets/docs-macro-defaults
    • a6162da rewrite docs about extending template objects
    • cab5545 Merge pull request #1539 from pallets/docs-macro-defaults
    • 369ff03 remove reference to macro.defaults
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump sqlalchemy from 1.4.25 to 1.4.26

    ‚¨ÜÔłŹ Bump sqlalchemy from 1.4.25 to 1.4.26

    Bumps sqlalchemy from 1.4.25 to 1.4.26.

    Release notes

    Sourced from sqlalchemy's releases.

    1.4.26

    Released: October 19, 2021

    orm

    • [orm] [bug] Improved the exception message generated when configuring a mapping with joined table inheritance where the two tables either have no foreign key relationships set up, or where they have multiple foreign key relationships set up. The message is now ORM specific and includes context that the _orm.Mapper.inherit_condition parameter may be needed particularly for the ambiguous foreign keys case.

    • [orm] [bug] Fixed issue with _orm.with_loader_criteria() feature where ON criteria would not be added to a JOIN for a query of the form select(A).join(B), stating a target while making use of an implicit ON clause.

      References: #7189

    • [orm] [bug] Fixed bug where the ORM "plugin", necessary for features such as _orm.with_loader_criteria() to work correctly, would not be applied to a _sql.select() which queried from an ORM column expression if it made use of the _sql.ColumnElement.label() modifier.

      References: #7205

    • [orm] [bug] Add missing methods added in #6991 to _scoping.scoped_session and _asyncio.async_scoped_session().

      References: #7103

    • [orm] [bug] An extra layer of warning messages has been added to the functionality of _orm.Query.join() and the ORM version of _sql.Select.join(), where a few places where "automatic aliasing" continues to occur will now be called out as a pattern to avoid, mostly specific to the area of joined table inheritance where classes that share common base tables are being joined together without using explicit aliases. One case emits a legacy warning for a pattern that's not recommended, the other case is fully deprecated.

      The automatic aliasing within ORM join() which occurs for overlapping mapped tables does not work consistently with all APIs such as _orm.contains_eager(), and rather than continue to try to make these use cases work everywhere, replacing with a more user-explicit pattern is clearer, less prone to bugs and simplifies SQLAlchemy's internals further.

      The warnings include links to the errors.rst page where each pattern is

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump pyjwt from 2.2.0 to 2.3.0

    ‚¨ÜÔłŹ Bump pyjwt from 2.2.0 to 2.3.0

    Bumps pyjwt from 2.2.0 to 2.3.0.

    Release notes

    Sourced from pyjwt's releases.

    2.3.0

    What's Changed

    New Contributors

    Full Changelog: https://github.com/jpadilla/pyjwt/compare/2.2.0...2.3.0

    Changelog

    Sourced from pyjwt's changelog.

    v2.3.0 <https://github.com/jpadilla/pyjwt/compare/2.2.0...2.3.0>__

    Fixed

    
    - Revert "Remove arbitrary kwargs." `[#701](https://github.com/jpadilla/pyjwt/issues/701) <https://github.com/jpadilla/pyjwt/pull/701>`__
    

    Added

    • Add exception chaining [#702](https://github.com/jpadilla/pyjwt/issues/702) <https://github.com/jpadilla/pyjwt/pull/702>__
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump python-dotenv from 0.19.0 to 0.19.1

    ‚¨ÜÔłŹ Bump python-dotenv from 0.19.0 to 0.19.1

    Bumps python-dotenv from 0.19.0 to 0.19.1.

    Release notes

    Sourced from python-dotenv's releases.

    Version 0.19.1

    What's Changed

    New Contributors

    Full Changelog: https://github.com/theskumar/python-dotenv/compare/v0.19.0...v0.19.1

    Changelog

    Sourced from python-dotenv's changelog.

    [0.19.1] - 2021-08-09

    Added

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump click from 8.0.1 to 8.0.3

    ‚¨ÜÔłŹ Bump click from 8.0.1 to 8.0.3

    Bumps click from 8.0.1 to 8.0.3.

    Release notes

    Sourced from click's releases.

    8.0.3

    8.0.2

    Changelog

    Sourced from click's changelog.

    Version 8.0.3

    Released 2021-10-10

    • Fix issue with Path(resolve_path=True) type creating invalid paths. :issue:2088
    • Importing readline does not cause the confirm() prompt to disappear when pressing backspace. :issue:2092
    • Any default values injected by invoke() are cast to the corresponding parameter's type. :issue:2089, 2090

    Version 8.0.2

    Released 2021-10-08

    • is_bool_flag is not set to True if is_flag is False. :issue:1925
    • Bash version detection is locale independent. :issue:1940
    • Empty default value is not shown for multiple=True. :issue:1969
    • Fix shell completion for arguments that start with a forward slash such as absolute file paths. :issue:1929
    • Path type with resolve_path=True resolves relative symlinks to be relative to the containing directory. :issue:1921
    • Completion does not skip Python's resource cleanup when exiting, avoiding some unexpected warning output. :issue:1738, 2017
    • Fix type annotation for type argument in prompt function. :issue:2062
    • Fix overline and italic styles, which were incorrectly added when adding underline. :pr:2058
    • An option with count=True will not show "[x>=0]" in help text. :issue:2072
    • Default values are not cast to the parameter type twice during processing. :issue:2085
    • Options with multiple and flag_value use the flag value instead of leaving an internal placeholder. :issue:2001
    Commits
    • 41f5b7a Merge pull request #2096 from pallets/release-8.0.3
    • 90fb9f5 release version 8.0.3
    • ba0e9dd Merge pull request #2095 from pallets/invoke-cast-default
    • 662a30e invoke type casts default values
    • 3dde6c5 Merge pull request #2093 from alex-ball/patch-1
    • f31d564 click.confirm preserves prompt when readline is imported
    • 3737511 Merge pull request #2094 from pallets/path-resolve-symlink
    • c8ca29b use pathlib to resolve symlinks
    • 96146c9 Merge pull request #2087 from pallets/release-8.0.2
    • a14e7b0 release version 8.0.2
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump pre-commit from 2.4.0 to 2.15.0

    ‚¨ÜÔłŹ Bump pre-commit from 2.4.0 to 2.15.0

    Bumps pre-commit from 2.4.0 to 2.15.0.

    Release notes

    Sourced from pre-commit's releases.

    pre-commit v2.15.0

    Features

    Fixes

    pre-commit v2.14.1

    Fixes

    pre-commit v2.14.0

    Features

    Fixes

    pre-commit v2.13.0

    Features

    ... (truncated)

    Changelog

    Sourced from pre-commit's changelog.

    2.15.0 - 2021-09-02

    Features

    Fixes

    2.14.1 - 2021-08-28

    Fixes

    2.14.0 - 2021-08-06

    Features

    Fixes

    2.13.0 - 2021-05-21

    ... (truncated)

    Commits
    • 36b8ad6 v2.15.0
    • c64c36b Merge pull request #2036 from uSpike/add-post-rewrite-hook
    • 4cd8b36 Add: post-rewrite hook support
    • 3bab151 Merge pull request #2030 from pre-commit/duplicate-messages-autoupdate
    • 25a1988 Merge pull request #2029 from pre-commit/broken-symlink-check-useless-excludes
    • 726f2ad remove duplicate warnings while running autoupdate
    • 35d3ed4 fix check-useless-excludes for exclude of broken symlink
    • a96bb23 Merge pull request #2031 from pre-commit/wtf-is-ort
    • 54a481c update tests for latest git
    • 66c51a3 Merge pull request #2027 from pre-commit/dart
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • ‚¨ÜÔłŹ Bump pre-commit from 2.15.0 to 2.16.0

    ‚¨ÜÔłŹ Bump pre-commit from 2.15.0 to 2.16.0

    Bumps pre-commit from 2.15.0 to 2.16.0.

    Release notes

    Sourced from pre-commit's releases.

    pre-commit v2.16.0

    Features

    Fixes

    Changelog

    Sourced from pre-commit's changelog.

    2.16.0 - 2021-11-30

    Features

    Fixes

    Commits
    • d91a4c4 v2.16.0
    • 3efc436 Merge pull request #2145 from pre-commit/all-repos_autofix_covdefaults-2-1
    • 270b539 improve coverage pragmas with covdefaults 2.1
    • f6547ac Merge pull request #2138 from pre-commit/all-repos_autofix_gh-funding-default
    • c45b84b Use org-default .github/FUNDING.yml
    • 36e9514 Merge pull request #2136 from emzeat/fix/git_config_env
    • fbf9648 Merge pull request #2134 from pre-commit/pre-commit-ci-update-config
    • 4eb91cd support gitconfig from env
    • a064f24 [pre-commit.ci] pre-commit autoupdate
    • b300116 Merge pull request #2137 from pre-commit/upgrade-perl-tidy
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • TypeError: __call__() missing 2 required positional arguments: 'environ' and 'start_response'

    TypeError: __call__() missing 2 required positional arguments: 'environ' and 'start_response'

    Getting this issue while trying to run the project. please help. couldn't find help from stackoverflow also. thanks.

    opened by Ravikumar028 3
  • ‚¨ÜÔłŹ Bump alembic from 1.7.4 to 1.7.5

    ‚¨ÜÔłŹ Bump alembic from 1.7.4 to 1.7.5

    Bumps alembic from 1.7.4 to 1.7.5.

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies No Changes 
    opened by dependabot[bot] 1
  • TypeError: __call__() missing 2 required positional arguments: 'environ' and 'start_response'

    TypeError: __call__() missing 2 required positional arguments: 'environ' and 'start_response'

    Hi, I think I followed the Getting Started guide, but when I "flask db init", i have the following error:

    TypeError: call() missing 2 required positional arguments: 'environ' and 'start_response'

    Any ideas ?

    Thanks in advance

    opened by guitarzero 0
  • Improve The Boilerplate by Creating a Frontend Based on JavaScript Framework ReactJs ūüöÄ

    Improve The Boilerplate by Creating a Frontend Based on JavaScript Framework ReactJs ūüöÄ

    Frontend Based on JavaScript Framework ReactJs ūüöÄ

    • Create a Frontend Part for Nectus Boilerplate Based on ReactJs ūü§Ė .

    • build a basic CRUD (Create, Read, Update, and Delete) application using Python with Flask as the API and React for the front-end.

    Simple boilerplate for a Flask backend and React client including:

    • ES6 transpiring via Webpack
    • Hot module reloading via Webpack Dev Server
    • State management via Redux
    • Tests via Pytest and Jest
    • Linting via Pylint and Eslint

    Dependencies :

    "dependencies": {
            "@testing-library/jest-dom": "^5.14.1",
            "@testing-library/react": "^11.2.7",
            "@testing-library/user-event": "^12.8.3",
            "babel-loader": "8.1.0",
            "axios": "^0.21.1",
            "bootstrap": "^5.0.2",
            "react": "^17.0.2",
            "react-dom": "^17.0.2",
            "react-dotenv": "^0.1.3",
            "react-router-dom": "^5.2.0",
            "react-scripts": "4.0.3",
            "reactstrap": "^8.9.0",
            "web-vitals": "^1.1.2"
        }
    

    Note : This issue relate to this pull request #1

    documentation enhancement good first issue 
    opened by yezz123 0
  • Frontend Part using ReactJS for Nectus ūüöÄ

    Frontend Part using ReactJS for Nectus ūüöÄ

    Setup The FrontEnd Part

    #change Directory to Frontend
    $ cd Frontend
    
    # Prepare the environment by Installing all the Packages
    $ npm install package.json
    
    • If all the Packages are installed and you see node_modules Folder Start :
    • if you feel there is no error in the settings of .env.
    • make sure the API url is correct.
    • If you feel that everything can be run, then run Frontend Part.
    # Build the Project
    $ npm run build
    
    # Start The Project
    $ npm run start
    
    REACT_APP_URL_API = http://localhost:5000
    
    documentation enhancement help wanted good first issue Extra Large 
    opened by yezz123 2
Owner
Yasser Tahiri
Backend Developer ūüĎ®ūüŹľ‚ÄćūüíĽ who speaks @python. ūüźć Creator of @BnademOverflow. I love Open Source & Ancient Greece.
Yasser Tahiri
:rocket: Generate a Postman collection from your Flask application

flask2postman A tool that creates a Postman collection from a Flask application. Install $ pip install flask2postman Example Let's say that you have a

Numberly 127 Nov 9, 2021
Flask Project Template A full feature Flask project template.

Flask Project Template A full feature Flask project template. See also Python-Project-Template for a lean, low dependency Python app. HOW TO USE THIS

Bruno Rocha 26 Nov 23, 2021
Boilerplate code for basic flask web apps

Flask Boilerplate This repository contains boilerplate code to start a project instantly It's mainly for projects which you plan to ship in less than

Abhishek 6 Sep 27, 2021
flask-apispec MIT flask-apispec (ūü•Č24 ¬∑ ‚≠ź 520) - Build and document REST APIs with Flask and apispec. MIT

flask-apispec flask-apispec is a lightweight tool for building REST APIs in Flask. flask-apispec uses webargs for request parsing, marshmallow for res

Joshua Carp 572 Nov 22, 2021
A Fast API style support for Flask. Gives you MyPy types with the flexibility of flask

Flask-Fastx Flask-Fastx is a Fast API style support for Flask. It Gives you MyPy types with the flexibility of flask. Compatibility Flask-Fastx requir

Tactful.ai 18 Sep 23, 2021
A nice anonymous messaging api (Uses Flask's restful api)

anonymous-message-api A nice anonymous message api (Uses Flask's restful api) How it works: 1. The user send a put request to your api server: Require

null 6 Nov 7, 2021
Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.

Flask-Bcrypt Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application. Due to the recent increased prevelance of

Max Countryman 291 Nov 17, 2021
Flask-Rebar combines flask, marshmallow, and swagger for robust REST services.

Flask-Rebar Flask-Rebar combines flask, marshmallow, and swagger for robust REST services. Features Request and Response Validation - Flask-Rebar reli

PlanGrid 189 Nov 18, 2021
Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.

Flask-Bcrypt Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application. Due to the recent increased prevelance of

Max Countryman 282 Feb 11, 2021
Brandnew-flask is a CLI tool used to generate a powerful and mordern flask-app that supports the production environment.

Brandnew-flask is still in the initial stage and needs to be updated and improved continuously. Everyone is welcome to maintain and improve this CLI.

brandonye 3 Oct 17, 2021
Flask-app scaffold, generate flask restful backend

Flask-app scaffold, generate flask restful backend

jacksmile 1 Nov 24, 2021
SqlAlchemy Flask-Restful Swagger Json:API OpenAPI

SAFRS: Python OpenAPI & JSON:API Framework Overview Installation JSON:API Interface Resource Objects Relationships Methods Custom Methods Class Method

Thomas Pollet 322 Nov 28, 2021
√Č uma API feita em Python e Flask que pesquisa informa√ß√Ķes em uma tabela .xlsx e retorna o resultado.

API de rastreamento de pacotes √Č uma API feita em Python e Flask que pesquisa informa√ß√Ķes de rastreamento de pacotes em uma tabela .xlsx e retorna o r

Marcos Beraldo Barros 4 Jun 27, 2021
This repo contains the Flask API to expose model and get predictions.

Tea Leaf Quality Srilanka Chapter This repo contains the Flask API to expose model and get predictions. Expose Model As An API Model Trainig will happ

DuKe786 2 Nov 12, 2021
A web application made with Flask that works with a weather service API to get the current weather from all over the world.

Weather App A web application made with Flask that works with a weather service API to get the current weather from all over the world. Uses data from

Christian Jairo Sarmiento 19 Nov 16, 2021
Learn REST API with Flask, Mysql and Docker

Learn REST API with Flask, Mysql and Docker A project for you to learn to work a flask REST api with docker and the mysql database manager! Table of C

Aldo Matus 0 Jul 31, 2021
REST API with Flask and SQLAlchemy. I would rather not use it anymore.

Flask REST API Python 3.9.7 The Flask experience, without data persistence :D First, to install all dependencies: python -m pip install -r requirement

Luis Qui√Īones Requelme 1 Oct 26, 2021
REST API with mongoDB and Flask.

Flask REST API with mongoDB py 3.10 First, to install all dependencies: python -m pip install -r requirements.txt Second, into the ./src/ folder, cop

Luis Qui√Īones Requelme 1 Oct 28, 2021
Curso Desenvolvimento avançado Python com Flask e REST API

Curso Desenvolvimento avançado Python com Flask e REST API Curso da Digital Innovation One Professor: Rafael Galleani Conteudo do curso Introdução ao

Elizeu Barbosa Abreu 1 Nov 14, 2021