AF Questions on a github repo / second guessing myself for a job interview
Hello,
I’m interviewing for a flask developer position and part of the process is this:
“Use Case: Building a Cloud Portal
After looking around to leverage other gov code, you find an available repo to use as a portal for your future cloud portal. Before using it, you want to review the instructions, deploy the system locally to your computer, and provide technical feedback on the README.md file that you could use to streamline the local deployment of the application.
After getting the system running, you are excited to show your work and setup a demo for the application for us to see.
The repo is locating here: https://github.com/dod-ccpo/atst”
After attempting to deploy this application on multiple systems (mac os, windows, linux and docker) I’m unable to for a multitude of reasons,
My questions are the following: Is this code base fucked or what? What’s the point of using poetry (first time ive ever seen it) when better alternatives exist? Why reinvent the wheel? Why the hell would you want to use one script rules them all? Is this repo a test and it’s not meant to at work at all and they want to see what I say?
And also, for the record the docker deployment doesn’t
/r/flask
https://redd.it/l4clcy
Hello,
I’m interviewing for a flask developer position and part of the process is this:
“Use Case: Building a Cloud Portal
After looking around to leverage other gov code, you find an available repo to use as a portal for your future cloud portal. Before using it, you want to review the instructions, deploy the system locally to your computer, and provide technical feedback on the README.md file that you could use to streamline the local deployment of the application.
After getting the system running, you are excited to show your work and setup a demo for the application for us to see.
The repo is locating here: https://github.com/dod-ccpo/atst”
After attempting to deploy this application on multiple systems (mac os, windows, linux and docker) I’m unable to for a multitude of reasons,
My questions are the following: Is this code base fucked or what? What’s the point of using poetry (first time ive ever seen it) when better alternatives exist? Why reinvent the wheel? Why the hell would you want to use one script rules them all? Is this repo a test and it’s not meant to at work at all and they want to see what I say?
And also, for the record the docker deployment doesn’t
/r/flask
https://redd.it/l4clcy
GitHub
dod-ccpo/atat
Contribute to dod-ccpo/atat development by creating an account on GitHub.
Pyston 2.1 Is Blowing Past Python 3.8/3.9 Performance
https://www.phoronix.com/scan.php?page=news_item&px=Pyston-2.1-vs-Python-3.8-3.9
/r/Python
https://redd.it/l478fq
https://www.phoronix.com/scan.php?page=news_item&px=Pyston-2.1-vs-Python-3.8-3.9
/r/Python
https://redd.it/l478fq
Phoronix
Pyston 2.1 Is Blowing Past Python 3.8/3.9 Performance - Phoronix
Phoronix is the leading technology website for Linux hardware reviews, open-source news, Linux benchmarks, open-source benchmarks, and computer hardware tests.
Hiring Senior Backend Engineer | HR SaaS (Remote)
HI!
My team is looking for a skilled Senior Backend Engineer to join our growing 4-person engineering team. We're looking for someone with deep experience in Django Rest Framework and how it fits into a SaaS product.
Tech stack: Vue+Django, but open to other backgrounds
Compensation: $120k-150k base
Location: Remote (open to global applicants // we have team members in USA, Canada, and Europe // no visa transfers)
Company: Pequity
Mission: Equal pay and opportunity for all
Funding: Seed
Requirements:
Must have previous professional experience as a senior backend engineer
Startup experience highly preferred but not required
SaaS experience highly preferred by not required
Full-time preferred, but we can be flexible
If interested in learning more, please shoot me a message here and to warren@getpequity.com
/r/django
https://redd.it/l49bt0
HI!
My team is looking for a skilled Senior Backend Engineer to join our growing 4-person engineering team. We're looking for someone with deep experience in Django Rest Framework and how it fits into a SaaS product.
Tech stack: Vue+Django, but open to other backgrounds
Compensation: $120k-150k base
Location: Remote (open to global applicants // we have team members in USA, Canada, and Europe // no visa transfers)
Company: Pequity
Mission: Equal pay and opportunity for all
Funding: Seed
Requirements:
Must have previous professional experience as a senior backend engineer
Startup experience highly preferred but not required
SaaS experience highly preferred by not required
Full-time preferred, but we can be flexible
If interested in learning more, please shoot me a message here and to warren@getpequity.com
/r/django
https://redd.it/l49bt0
Getpequity
Pequity | Compensate with Confidence
Build competitive & equitable pay programs with data-driven compensation software.
Show profile page after login
If possible I'd like some help with a little self-teaching project. So I was following flask's own tutorial to build a blog. See here. I've managed to get the login and registration pages up and running with a connection to a mariadb server sitting on a raspberry pi in my network.
So I decided to expand on it to create a profile page which requires the user to be logged in to view. I created a new py file and a new html page to display this profile page. However, when I add the @loginrequired to the blueprint route for the profiles page it throws an app.context error.
Profile page code snippet
@zerg.beforeapprequest
def loadloggedinuser():
userid = session.get('userid')
if userid is None:
g.user = None
else :
db = getdb()
cur = db.cursor()
/r/flask
https://redd.it/l3zz22
If possible I'd like some help with a little self-teaching project. So I was following flask's own tutorial to build a blog. See here. I've managed to get the login and registration pages up and running with a connection to a mariadb server sitting on a raspberry pi in my network.
So I decided to expand on it to create a profile page which requires the user to be logged in to view. I created a new py file and a new html page to display this profile page. However, when I add the @loginrequired to the blueprint route for the profiles page it throws an app.context error.
Profile page code snippet
@zerg.beforeapprequest
def loadloggedinuser():
userid = session.get('userid')
if userid is None:
g.user = None
else :
db = getdb()
cur = db.cursor()
/r/flask
https://redd.it/l3zz22
My startup failed, so I open sourced the code. I hope someone finds it useful.
https://github.com/AdamGold/Dryvo
/r/Python
https://redd.it/l4kpou
https://github.com/AdamGold/Dryvo
/r/Python
https://redd.it/l4kpou
GitHub
GitHub - AdamGold/Dryvo: Driving lessons made simpler. Custom scheduling API built with Python.
Driving lessons made simpler. Custom scheduling API built with Python. - AdamGold/Dryvo
Best way to display python code and graphic outcomes in a Django site?
If I want to display some python code, and its resulting output and graphs as part of a Django page (I haven't decided if the visitors can or cannot modify the code, and rerun), what is the best way to do it? If I allow visitors to tweak the python code to see different output or graphs, is it really risky as a site security point of view?
/r/django
https://redd.it/l4i0of
If I want to display some python code, and its resulting output and graphs as part of a Django page (I haven't decided if the visitors can or cannot modify the code, and rerun), what is the best way to do it? If I allow visitors to tweak the python code to see different output or graphs, is it really risky as a site security point of view?
/r/django
https://redd.it/l4i0of
reddit
Best way to display python code and graphic outcomes in a Django site?
If I want to display some python code, and its resulting output and graphs as part of a Django page (I haven't decided if the visitors can or...
Creating a scalable Flask Application
We have a large
The system is supposed to get data in large bulk, so it should be able to use hardware at full capacity on heavy load
I researched and found some ways (mentioned below) to make application scalable but which one to choose
​
1. Gunicorn
2. Docker swarm
/r/flask
https://redd.it/l4lb1v
We have a large
flask application containerized using docker, different services are exposed via different endpoints. The application has a total of 5 containers with multiple deep learning models The system is supposed to get data in large bulk, so it should be able to use hardware at full capacity on heavy load
I researched and found some ways (mentioned below) to make application scalable but which one to choose
​
1. Gunicorn
2. Docker swarm
/r/flask
https://redd.it/l4lb1v
reddit
Creating a scalable Flask Application
We have a large `flask` application containerized using `docker`, different services are exposed via different endpoints. The application has a...
5 Python Slicing Tricks That Will Make Your Code More Elegant
https://medium.com/techtofreedom/5-python-slicing-tricks-that-will-make-your-code-more-elegant-bd5e27c73f7
/r/Python
https://redd.it/l4k3w9
https://medium.com/techtofreedom/5-python-slicing-tricks-that-will-make-your-code-more-elegant-bd5e27c73f7
/r/Python
https://redd.it/l4k3w9
Medium
5 Python Slicing Tricks That Will Make Your Code More Elegant
Small tricks for a big difference
Django Async vs FastAPI vs WSGI Django: Performance Comparision of ML/DL Inference Servers
https://aibharata.medium.com/django-async-vs-fastapi-vs-wsgi-django-choice-of-ml-dl-inference-servers-answering-some-burning-e6a354bf272a
/r/django
https://redd.it/l4nkyr
https://aibharata.medium.com/django-async-vs-fastapi-vs-wsgi-django-choice-of-ml-dl-inference-servers-answering-some-burning-e6a354bf272a
/r/django
https://redd.it/l4nkyr
Medium
Django Async vs FastAPI vs WSGI Django: Choice of ML/DL Inference Servers — Answering some burning questions.
Is it time to make the switch to FastAPI from Django? Read ahead to decide on your own.
How to use AWS Secrets Manager as a substitute for env vars and GitHub Secrets
https://www.youtube.com/watch?v=k1glWR8avuQ&list=PL0dOL8Z7pG3IWsvseNd-JoFTHL16P_iTC&index=12
/r/flask
https://redd.it/l4nex5
https://www.youtube.com/watch?v=k1glWR8avuQ&list=PL0dOL8Z7pG3IWsvseNd-JoFTHL16P_iTC&index=12
/r/flask
https://redd.it/l4nex5
YouTube
Flask to AWS ECS - Part 12: AWS Secrets Manager
GitHub link: https://github.com/alexanderdamiani/aws-ecs-demo
00:00 - Introduction
00:45 - AWS Secrets Manager
02:05 - AWS IAM User Permission
02:50 - Flask and CI/CD pipeline
05:17 - GitHub Secrets
05:43 - Running CI/CD pipeline and testing app
06:17…
00:00 - Introduction
00:45 - AWS Secrets Manager
02:05 - AWS IAM User Permission
02:50 - Flask and CI/CD pipeline
05:17 - GitHub Secrets
05:43 - Running CI/CD pipeline and testing app
06:17…
Does your Flask-powered site has robots.txt?
My first Flask project went into production mode a couple of days ago. What's different about my project is that I'm replacing a 5-year old php-powered site with a brand new python app. The project is a directory for professional services, and the old site was built using WordPress. I've analysed the structure and tried to preserve all of the important endpoints, but did not try to make sure that every WP endpoint would have an equivalent in the Flask app. There were just too many rudimentary endpoints that did not serve any meaningful purpose. Since the new site went live, I've been monitoring the requests that resulted in 404 error. There are hundreds of such requests per day, and it looks like most of them are made by bots. There are also lots of requests for the images that are no longer where they used to be - perhaps these images were embedded on some external sites? Anyway, one thing that I've noticed is that robots.txt is requested very often, but I did not bother adding this file. I know what robots.txt is for, but I'm not sure how it should be configured and used in the context of
/r/flask
https://redd.it/l4xqf7
My first Flask project went into production mode a couple of days ago. What's different about my project is that I'm replacing a 5-year old php-powered site with a brand new python app. The project is a directory for professional services, and the old site was built using WordPress. I've analysed the structure and tried to preserve all of the important endpoints, but did not try to make sure that every WP endpoint would have an equivalent in the Flask app. There were just too many rudimentary endpoints that did not serve any meaningful purpose. Since the new site went live, I've been monitoring the requests that resulted in 404 error. There are hundreds of such requests per day, and it looks like most of them are made by bots. There are also lots of requests for the images that are no longer where they used to be - perhaps these images were embedded on some external sites? Anyway, one thing that I've noticed is that robots.txt is requested very often, but I did not bother adding this file. I know what robots.txt is for, but I'm not sure how it should be configured and used in the context of
/r/flask
https://redd.it/l4xqf7
reddit
Does your Flask-powered site has robots.txt?
My first Flask project went into production mode a couple of days ago. What's different about my project is that I'm replacing a 5-year old...
Advise - Flask + ? for job board website
Hi everyone!
I'm building a job board website and I just finished building the backend using Flask + Eve. I will use MongoDB Atlas to store the database and I think I want to serve the website using Heroku. I'm a beginner with web apps but I've been writing Python and Scala for my DS 9-5 since I got out of college. My question is, how should I proceed with this project? The way I see it I could:
Build the app fully in Flask with jinja + html and style it with Bootstrap
Separate back end and front end, write a front end app that will communicate with my flask server
I can see advantages to both of these approaches, the easiest for me would be to just use Flask all the way. But I'm interested in the future of this app if it would scale up better by having a separate front end.
For the front end I have been researching Vue.js, and React.js but I'm unsure of the benefits of one over the other.
I'm open to suggestions or any other comments! Thanks everyone!
/r/flask
https://redd.it/l4wa5d
Hi everyone!
I'm building a job board website and I just finished building the backend using Flask + Eve. I will use MongoDB Atlas to store the database and I think I want to serve the website using Heroku. I'm a beginner with web apps but I've been writing Python and Scala for my DS 9-5 since I got out of college. My question is, how should I proceed with this project? The way I see it I could:
Build the app fully in Flask with jinja + html and style it with Bootstrap
Separate back end and front end, write a front end app that will communicate with my flask server
I can see advantages to both of these approaches, the easiest for me would be to just use Flask all the way. But I'm interested in the future of this app if it would scale up better by having a separate front end.
For the front end I have been researching Vue.js, and React.js but I'm unsure of the benefits of one over the other.
I'm open to suggestions or any other comments! Thanks everyone!
/r/flask
https://redd.it/l4wa5d
reddit
Advise - Flask + ? for job board website
Hi everyone! I'm building a job board website and I just finished building the backend using Flask + Eve. I will use MongoDB Atlas to store the...
Clean Architecture in Flask
Hi guys!
Nice to post here, I coming from Javascript and I keep looking at Flask. I'm a little noob in this framework but I wanna an alternative programming language to develop my backend as API REST.
I using Clean Architecture for all my new projects and I wanna look at some projects that use Clean Architecture.
Can you share your folder structure with Clean Architecture? I don't wanna copy your project, it's just for my personal projects.
​
(excuse for my English, it's not my native language)
/r/flask
https://redd.it/l540pd
Hi guys!
Nice to post here, I coming from Javascript and I keep looking at Flask. I'm a little noob in this framework but I wanna an alternative programming language to develop my backend as API REST.
I using Clean Architecture for all my new projects and I wanna look at some projects that use Clean Architecture.
Can you share your folder structure with Clean Architecture? I don't wanna copy your project, it's just for my personal projects.
​
(excuse for my English, it's not my native language)
/r/flask
https://redd.it/l540pd
reddit
Clean Architecture in Flask
Hi guys! Nice to post here, I coming from Javascript and I keep looking at Flask. I'm a little noob in this framework but I wanna an...
This project is flask heavy and quite robust. Interesting for people that want a deep dive into a full project!
https://github.com/AdamGold/Dryvo
/r/flask
https://redd.it/l5632d
https://github.com/AdamGold/Dryvo
/r/flask
https://redd.it/l5632d
GitHub
GitHub - AdamGold/Dryvo: Driving lessons made simpler. Custom scheduling API built with Python.
Driving lessons made simpler. Custom scheduling API built with Python. - AdamGold/Dryvo
Trying to find entry in my database but cant
So I'm trying to find a entry in my database that I created. When I go to query and compare the entry I'm looking for I get nothing.
Below is my code to query my database
enteredusername = request.form"username"
existinguser = db.session.query(UsersTable).filterby(username = enteredusername)
This is the result I get
SELECT userstable.id AS userstableid, userstable.username AS userstableusername, userstable.password AS userstablepassword FROM userstable WHERE userstable.username = ?
Assistance is much appreciated
/r/flask
https://redd.it/l52wpl
So I'm trying to find a entry in my database that I created. When I go to query and compare the entry I'm looking for I get nothing.
Below is my code to query my database
enteredusername = request.form"username"
existinguser = db.session.query(UsersTable).filterby(username = enteredusername)
This is the result I get
SELECT userstable.id AS userstableid, userstable.username AS userstableusername, userstable.password AS userstablepassword FROM userstable WHERE userstable.username = ?
Assistance is much appreciated
/r/flask
https://redd.it/l52wpl
reddit
Trying to find entry in my database but cant
So I'm trying to find a entry in my database that I created. When I go to query and compare the entry I'm looking for I get nothing. Below is my...
My First Django App! A diabetes management solution.
Fairly new to django, python, and programming in general. I wrote a hobby app of sorts that records blood glucose levels, insulin doses, and meals. It takes the user input and uses matplotlib to render graphs. Its a whole bunch of python pasta code holding it together, but it works, and it was a great learning experience to get the basic functionality in place.
https://preview.redd.it/7om5b0m97ld61.jpg?width=874&format=pjpg&auto=webp&s=d9676137069aac8752f568736ea5ad9cce3e3142
/r/django
https://redd.it/l53xls
Fairly new to django, python, and programming in general. I wrote a hobby app of sorts that records blood glucose levels, insulin doses, and meals. It takes the user input and uses matplotlib to render graphs. Its a whole bunch of python pasta code holding it together, but it works, and it was a great learning experience to get the basic functionality in place.
https://preview.redd.it/7om5b0m97ld61.jpg?width=874&format=pjpg&auto=webp&s=d9676137069aac8752f568736ea5ad9cce3e3142
/r/django
https://redd.it/l53xls
How to design microservices using Django Rest framework?
Currently I am working on a project which is similar to online streaming platforms like Netflix, but here the content will be comics.
Project WorkFlow:
User will create his account and then he will buy a subscription plan of his choice and then he can have access to the comics with respect to his subscription plan.
Firstly we thought to build as a monolithic application, but i feel this project can be build using microservices, for eg there can be three microservices, each will be a rest api
Microservice 1 --> Authentication
Microservice 2 --> Subscription and payment handling
Microservice 3 --> Comic books hosting based on subscription
Also I am a bit confused with the database part like each service will have it's own data layer or a single data layer to all the services? Any leads on this would be appreciated.
Should I go ahead with this approach or is there a better alternative to that?
Please do share articles or material that could be any use to me.
/r/django
https://redd.it/l5bfdn
Currently I am working on a project which is similar to online streaming platforms like Netflix, but here the content will be comics.
Project WorkFlow:
User will create his account and then he will buy a subscription plan of his choice and then he can have access to the comics with respect to his subscription plan.
Firstly we thought to build as a monolithic application, but i feel this project can be build using microservices, for eg there can be three microservices, each will be a rest api
Microservice 1 --> Authentication
Microservice 2 --> Subscription and payment handling
Microservice 3 --> Comic books hosting based on subscription
Also I am a bit confused with the database part like each service will have it's own data layer or a single data layer to all the services? Any leads on this would be appreciated.
Should I go ahead with this approach or is there a better alternative to that?
Please do share articles or material that could be any use to me.
/r/django
https://redd.it/l5bfdn
reddit
How to design microservices using Django Rest framework?
Currently I am working on a project which is similar to online streaming platforms like Netflix, but here the content will be comics. Project...
Tuesday Daily Thread: Advanced questions
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/l518c8
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/l518c8
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
Scrapera: A universal tools of scrapers for humans
The toughest part of data science and machine learning is the collection of data itself. The huge requirements of data in recent years and the difficulty of obtaining such data inspired me to create project Scrapera, a universal scraper library.
The aim of Scrapera is to ease the process of data collection so that ML engineers and researchers can focus towards building better models and pipelines than worrying about collection of data.
Scrapera has a collection of scrapers for commonly found domains such as images, text, audio, etc to help you with your data collection process. Scrapera is written in pure python3, has full support for proxies and is continuously updated to support new versions of websites.
If you found this initiative helpful then star the GitHub repository and consider contributing with your own scrapers to help fellow researchers! Contributions and scraper requests are always welcomed! :)
Please note that Scrapera is currently in beta and I am actively looking for contributors for this project. If you are willing to contribute then please contact me. Thanks for reading!
PyPi: https://pypi.org/project/scrapera/
GitHub Link: https://github.com/DarshanDeshpande/Scrapera
/r/Python
https://redd.it/l5921l
The toughest part of data science and machine learning is the collection of data itself. The huge requirements of data in recent years and the difficulty of obtaining such data inspired me to create project Scrapera, a universal scraper library.
The aim of Scrapera is to ease the process of data collection so that ML engineers and researchers can focus towards building better models and pipelines than worrying about collection of data.
Scrapera has a collection of scrapers for commonly found domains such as images, text, audio, etc to help you with your data collection process. Scrapera is written in pure python3, has full support for proxies and is continuously updated to support new versions of websites.
If you found this initiative helpful then star the GitHub repository and consider contributing with your own scrapers to help fellow researchers! Contributions and scraper requests are always welcomed! :)
Please note that Scrapera is currently in beta and I am actively looking for contributors for this project. If you are willing to contribute then please contact me. Thanks for reading!
PyPi: https://pypi.org/project/scrapera/
GitHub Link: https://github.com/DarshanDeshpande/Scrapera
/r/Python
https://redd.it/l5921l
PyPI
scrapera
A universal package of scraper scripts for humans
P Guitar + ML
I've recently been diving into the world of guitar circuit/amp modeling and where ML is starting to have an impact. I am still working on the video, in which I interview a researcher from Neural DSP (Lauri Juvela), but have just published the sister blog post. Would love to get any community feedback or questions, which we can hopefully get answered by Lauri.
For proper formatting, the article can be viewed on *blog.zakjost.com*. If you have questions, you can come ask them to me or Neural DSP researcher, Lauri Juvela, in this thread or the official discussion thread *here*.
## Introduction
If you play electric guitar, you probably know that “tube amps” have been the gold standard since the beginning. Originally, amplifiers were just about making the guitar louder, but it's become more than that–it's about manipulating the character of the audio to make it sound more pleasing or achieve some artistic effect. What makes vacuum tubes so attractive is the peculiar non-linearities they introduce to the incoming signal as a byproduct of their interactions with the rest of the circuit when they're pushed to the limits of their operating ranges. Or “distortion” for short. If you push a sine wave
/r/MachineLearning
https://redd.it/l5feqt
I've recently been diving into the world of guitar circuit/amp modeling and where ML is starting to have an impact. I am still working on the video, in which I interview a researcher from Neural DSP (Lauri Juvela), but have just published the sister blog post. Would love to get any community feedback or questions, which we can hopefully get answered by Lauri.
For proper formatting, the article can be viewed on *blog.zakjost.com*. If you have questions, you can come ask them to me or Neural DSP researcher, Lauri Juvela, in this thread or the official discussion thread *here*.
## Introduction
If you play electric guitar, you probably know that “tube amps” have been the gold standard since the beginning. Originally, amplifiers were just about making the guitar louder, but it's become more than that–it's about manipulating the character of the audio to make it sound more pleasing or achieve some artistic effect. What makes vacuum tubes so attractive is the peculiar non-linearities they introduce to the incoming signal as a byproduct of their interactions with the rest of the circuit when they're pushed to the limits of their operating ranges. Or “distortion” for short. If you push a sine wave
/r/MachineLearning
https://redd.it/l5feqt
Zak Jost
GuitarML | Zak Jost
An exploration of the intersection of ML and guitar circuit modeling