https://stackoverflow.com/questions/4069595/flask-with-geoalchemy-sample-code
Using SQLAlchemy 0.8, Flask-SQLAlchemy and Geoalchemy 2:
from app import db
from geoalchemy2.types import Geometry
from flask import request, g | |
from functools import wraps | |
def login_required(f=None, url="public.login", next=None): | |
""" | |
Check if user is logged or redirect to a certain page. | |
By default go to public login. | |
""" | |
def outer_decorator(decorated_fn): |
from google.cloud import firestore | |
from google.cloud.firestore_v1 import base_client | |
from google.oauth2 import service_account | |
from typing import Dict, List | |
import os | |
import json | |
import datetime as dt | |
import uuid | |
# declare root level path |
https://stackoverflow.com/questions/4069595/flask-with-geoalchemy-sample-code
Using SQLAlchemy 0.8, Flask-SQLAlchemy and Geoalchemy 2:
from app import db
from geoalchemy2.types import Geometry
from apscheduler.schedulers.background import BackgroundScheduler | |
from apscheduler.executors.pool import ThreadPoolExecutor | |
from apscheduler.jobstores.memory import MemoryJobStore | |
from apscheduler.job import Job | |
import json | |
import logging | |
from apscheduler.triggers.cron import CronTrigger | |
import time | |
from celery import Celery | |
from typing import List |
Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.
I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.
If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.
Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.
ranged_int = type('ranged_int', (int,), {}) | |
# # define a type alias | |
# type RangedInt = int | |
class RangeObj: | |
def __new__(self, floor, ceil): | |
if ceil <= floor or floor >= ceil: | |
raise ValueError( |