Rant/Seeking Reassurance
It's 5am and I haven't slept a bit because I've been going down a grief rabbit hole searching for information that'll prove otherwise that AI wont fully take over coding/programming.
I can remember when I ran my first code and how the dopamine rewired my brain and while I don't entirely hate AI, it's just discerning that basic-intermediate programming will be gone in probably 5 years.
I feel like programming is all I have and have had. I recently just graduated with a degree in Computer Science, I'm beginning to fear if i made a mistake making programming both my hobby and career(career which I haven't even had lol)
Hell, the reason for this rant is that I'm just desperate for reassurance because I'm miserable.
/r/Python
https://redd.it/1ct5jre
It's 5am and I haven't slept a bit because I've been going down a grief rabbit hole searching for information that'll prove otherwise that AI wont fully take over coding/programming.
I can remember when I ran my first code and how the dopamine rewired my brain and while I don't entirely hate AI, it's just discerning that basic-intermediate programming will be gone in probably 5 years.
I feel like programming is all I have and have had. I recently just graduated with a degree in Computer Science, I'm beginning to fear if i made a mistake making programming both my hobby and career(career which I haven't even had lol)
Hell, the reason for this rant is that I'm just desperate for reassurance because I'm miserable.
/r/Python
https://redd.it/1ct5jre
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
I created a Python script that makes it easier to track how your baby's sleep is improving
My wife and I use the Huckleberry app to track our baby's sleep periods. Although the free version of the app allows you to view a number of sleep-related metrics, I also wanted to see whether his longest nightly sleep stretches were getting longer over time. Therefore, I created a Python project to help me answer this and other questions I had about my baby's sleep.
# What My Project Does
This project reads in data from a Huckleberry .csv export (or a separate custom .csv file); analyzes its sleep information; and then produces a number of visualizations.
Personally, I've found that running the code and viewing its output helps reassure me that our baby is making progress with sleep, even if he seems to have some setbacks now and then! I hope you'll find it useful as well in evaluating the effectiveness of your sleep training approach.
# Target Audience
This project can be useful for any parent who wishes to see how his or her baby's sleep is improving over time. (It could be used for other age ranges as well, but the code and visualizations are geared towards infant sleep data.)
The project's readme has instructions on using the code to track your own baby's sleep data.
# Comparison
This
/r/Python
https://redd.it/1csa6j0
My wife and I use the Huckleberry app to track our baby's sleep periods. Although the free version of the app allows you to view a number of sleep-related metrics, I also wanted to see whether his longest nightly sleep stretches were getting longer over time. Therefore, I created a Python project to help me answer this and other questions I had about my baby's sleep.
# What My Project Does
This project reads in data from a Huckleberry .csv export (or a separate custom .csv file); analyzes its sleep information; and then produces a number of visualizations.
Personally, I've found that running the code and viewing its output helps reassure me that our baby is making progress with sleep, even if he seems to have some setbacks now and then! I hope you'll find it useful as well in evaluating the effectiveness of your sleep training approach.
# Target Audience
This project can be useful for any parent who wishes to see how his or her baby's sleep is improving over time. (It could be used for other age ranges as well, but the code and visualizations are geared towards infant sleep data.)
The project's readme has instructions on using the code to track your own baby's sleep data.
# Comparison
This
/r/Python
https://redd.it/1csa6j0
GitHub
GitHub - kburchfiel/baby_sleep_analysis
Contribute to kburchfiel/baby_sleep_analysis development by creating an account on GitHub.
Step-by-Step Tutorial for High Impact Python Streamlit: Beautiful Interactive Maps and Charts
Recently, I have been working hard on coding Python Streamlit for interactive data visualizations - so that you don’t have to.
Specifically, I have been looking at how to put together interactive Streamlit dashboards - with a combination of visualizations.
Let me show you how you can create a Streamlit dashboard with:
1. A dropdown menu allowing the user to select the Year
2. Global Choropleth map by country(updated by year).
3. Horizontal bar chart of top 10 countries (updated by year)
Using a terrific public dataset, you can create a beautiful dashboard using a modular approach.
Tutorial HERE
/r/Python
https://redd.it/1csirwm
Recently, I have been working hard on coding Python Streamlit for interactive data visualizations - so that you don’t have to.
Specifically, I have been looking at how to put together interactive Streamlit dashboards - with a combination of visualizations.
Let me show you how you can create a Streamlit dashboard with:
1. A dropdown menu allowing the user to select the Year
2. Global Choropleth map by country(updated by year).
3. Horizontal bar chart of top 10 countries (updated by year)
Using a terrific public dataset, you can create a beautiful dashboard using a modular approach.
Tutorial HERE
/r/Python
https://redd.it/1csirwm
Data at Depth
High Impact Python Streamlit: Beautiful Interactive Maps and Charts
A step by step modular approach with UNFAO global food insecurity data
Blat AI generates Python code to do web-scraping (code based on Scrapy framework)
Miguel Algorri and Arnau Pont Vílchez here, blat co-founders!
Target Audience
People who need to collect public data from the web (pricing, articles, reviews, leads etc).
What does our Project Do?
At blat we aim to deliver production-ready web scraping code in minutes (written in Python, Scrapy framework).
This is feasible thanks to our Web Scraping AI Agent 🧠. Here our CLI to interact with the Web Scraping AI Agent (github). Too good to be true? Check our video
Comparison
There are lots of other tools in the market, like Zyte, Apify, Kadoa. All those are great tools for web scraping purposes. The main difference with our competitors is that we give you the Python code that's ready to use (you host it, you run it). Also, once created, the code does not use AI for parsing HTMLs, so it's more efficient and deterministic.
What are we looking for?
We encourage you to register as a alpha testers 💪 if you are willing to have a better and more automated web scraping experience.
Here our CLI to interact with the Web Scraping AI Agent (github)
/r/Python
https://redd.it/1ct9cqu
Miguel Algorri and Arnau Pont Vílchez here, blat co-founders!
Target Audience
People who need to collect public data from the web (pricing, articles, reviews, leads etc).
What does our Project Do?
At blat we aim to deliver production-ready web scraping code in minutes (written in Python, Scrapy framework).
This is feasible thanks to our Web Scraping AI Agent 🧠. Here our CLI to interact with the Web Scraping AI Agent (github). Too good to be true? Check our video
Comparison
There are lots of other tools in the market, like Zyte, Apify, Kadoa. All those are great tools for web scraping purposes. The main difference with our competitors is that we give you the Python code that's ready to use (you host it, you run it). Also, once created, the code does not use AI for parsing HTMLs, so it's more efficient and deterministic.
What are we looking for?
We encourage you to register as a alpha testers 💪 if you are willing to have a better and more automated web scraping experience.
Here our CLI to interact with the Web Scraping AI Agent (github)
/r/Python
https://redd.it/1ct9cqu
www.blat.ai
Blat [Crawling]
Transforming public data accessibility into a commodity
Track the size of your PyInstaller packages in CI
If you have ever wanted to track the size of your PyInstaller packages in CI, Bencher now supports tracking your package size: https://bencher.dev/docs/how-to/track-file-size/
/r/Python
https://redd.it/1csmx2q
If you have ever wanted to track the size of your PyInstaller packages in CI, Bencher now supports tracking your package size: https://bencher.dev/docs/how-to/track-file-size/
/r/Python
https://redd.it/1csmx2q
🐰 Bencher
📖 How to Track File Size with Bencher
How to track file size and binary size as a part of Continuous Benchmarking
Help! { }
# Code
# app/models.py
from django.db import models
class Image(models.Model):
image = models.ImageField(uploadto='images/')
uploadedat = models.DateTimeField(autonowadd=True)
def str(self):
return f"Image uploaded at {self.uploadedat}"
# app/forms.py
from django import forms
from .models import Image
class ImageForm(forms.ModelForm):
class Meta:
model = Image
fields = ['image']
# Environment
* **Request Method:** GET
* **Request URL:** \*\*\*\*\*
* **Django Version:** 5.0.4
* **Python Version:** 3.12.2
# Installed Applications
pythonCopy code
INSTALLEDAPPS =
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
/r/djangolearning
[https://redd.it/1ctcc9m
# Code
# app/models.py
from django.db import models
class Image(models.Model):
image = models.ImageField(uploadto='images/')
uploadedat = models.DateTimeField(autonowadd=True)
def str(self):
return f"Image uploaded at {self.uploadedat}"
# app/forms.py
from django import forms
from .models import Image
class ImageForm(forms.ModelForm):
class Meta:
model = Image
fields = ['image']
# Environment
* **Request Method:** GET
* **Request URL:** \*\*\*\*\*
* **Django Version:** 5.0.4
* **Python Version:** 3.12.2
# Installed Applications
pythonCopy code
INSTALLEDAPPS =
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
/r/djangolearning
[https://redd.it/1ctcc9m
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
(Something went wrong) Flask Mega Tutorial Part 3
While I was doing Part 3 Web Forms tutorial, something went wrong between 'Receiving Form Data' and 'Improving Field Validation'. The only changes were 'route.py', 'base.html', and 'login.html'.
from flask import rendertemplate, flash, redirect
@app.route('/login', methods=['GET', 'POST'])
def login():
form = LoginForm()
if form.validateonsubmit():
flash('Login requested for user {}, rememberme={}'.format(
form.username.data, form.rememberme.data))
return redirect('/index')
return rendertemplate('login.html', title='Sign In', form=form)
However, I think this code above is at fault, because the
from app import app
from app.forms import LoginForm
Now it said 'No module named 'app'.
/r/flask
https://redd.it/1ctbfc0
While I was doing Part 3 Web Forms tutorial, something went wrong between 'Receiving Form Data' and 'Improving Field Validation'. The only changes were 'route.py', 'base.html', and 'login.html'.
from flask import rendertemplate, flash, redirect
@app.route('/login', methods=['GET', 'POST'])
def login():
form = LoginForm()
if form.validateonsubmit():
flash('Login requested for user {}, rememberme={}'.format(
form.username.data, form.rememberme.data))
return redirect('/index')
return rendertemplate('login.html', title='Sign In', form=form)
However, I think this code above is at fault, because the
app was undefined (a red underline at the @ part). When I add back, these below from app import app
from app.forms import LoginForm
Now it said 'No module named 'app'.
/r/flask
https://redd.it/1ctbfc0
Miguelgrinberg
The Flask Mega-Tutorial, Part III: Web Forms
This is the third installment of the Flask Mega-Tutorial series, in which I'm going to tell you how to work with web forms.You are reading the 2024 edition of the Flask Mega-Tutorial. The complete…
Advice on using patch file for installed library
I am using rest_framework_simple_api_key in my production application on python version 3.9 .
On running command
python manage.py generatefernetkey
as given in doc(djangorestframework-simple-apikey) i am getting
File "C:\\Users\\DELL\\anaconda3\\lib\\site-packages\\rest_framework_simple_api_key\\models.py", line 15, in <module>
class AbstractAPIKeyManager(models.Manager):
File "C:\\Users\\DELL\\anaconda3\\lib\\site-packages\\rest_framework_simple_api_key\\models.py", line 16, in AbstractAPIKeyManager
def get_api_key(self, pk: int | str):
TypeError: unsupported operand type(s) for |: 'type' and 'type'
On Searching I got reason is i am getting error is
The error
I can't change my python version as it is in production so I came across solution monkey patching then i got this article https://medium.com/lemon-code/monkey-patch-f1de778d61d3
my monkey_patch.py file:
def patchgetapikey():
print("*********************************EXE****************************************")
"""
Monkey patch for AbstractAPIKeyManager.getapikey method to replace the type hint.
"""
from typing import Union
def patchedgetapikey(self, pk: Unionint, str):
/r/djangolearning
https://redd.it/1ct6z0u
I am using rest_framework_simple_api_key in my production application on python version 3.9 .
On running command
python manage.py generatefernetkey
as given in doc(djangorestframework-simple-apikey) i am getting
File "C:\\Users\\DELL\\anaconda3\\lib\\site-packages\\rest_framework_simple_api_key\\models.py", line 15, in <module>
class AbstractAPIKeyManager(models.Manager):
File "C:\\Users\\DELL\\anaconda3\\lib\\site-packages\\rest_framework_simple_api_key\\models.py", line 16, in AbstractAPIKeyManager
def get_api_key(self, pk: int | str):
TypeError: unsupported operand type(s) for |: 'type' and 'type'
On Searching I got reason is i am getting error is
The error
TypeError: unsupported operand type(s) for |: 'type' and 'type' is caused by the use of the int | str syntax for type hinting, which is only supported in Python 3.10 and later versions.I can't change my python version as it is in production so I came across solution monkey patching then i got this article https://medium.com/lemon-code/monkey-patch-f1de778d61d3
my monkey_patch.py file:
def patchgetapikey():
print("*********************************EXE****************************************")
"""
Monkey patch for AbstractAPIKeyManager.getapikey method to replace the type hint.
"""
from typing import Union
def patchedgetapikey(self, pk: Unionint, str):
/r/djangolearning
https://redd.it/1ct6z0u
Medium
A simple and clean way to monkey-patch your apps — Django
Keep your patches locally and toggle them with ease
D LWhy are Linear RNNs so performant (in terms of accuracy, not compute)? Looking for mathematical or even intuitive explanations
Trying to familiarise myself with the mamba architecture, hence familiarising myself with SSMs, hence familiarising myself with Linear RNNs. I have looked over resources on SSMs, S4 and Mamba but I’m unable to find an explanation. on why Linear RNNs with SSM parameterization improves performance. I can’t wrap my head around it intuitively either - why are linear transformations sufficient for seq2seq tasks?
Are there any exhaustive mathematical explanations, or even videos on how linear RNNs can outperform transformers on certain tasks?
/r/MachineLearning
https://redd.it/1ctea1i
Trying to familiarise myself with the mamba architecture, hence familiarising myself with SSMs, hence familiarising myself with Linear RNNs. I have looked over resources on SSMs, S4 and Mamba but I’m unable to find an explanation. on why Linear RNNs with SSM parameterization improves performance. I can’t wrap my head around it intuitively either - why are linear transformations sufficient for seq2seq tasks?
Are there any exhaustive mathematical explanations, or even videos on how linear RNNs can outperform transformers on certain tasks?
/r/MachineLearning
https://redd.it/1ctea1i
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
D Are PyTorch high-level frameworks worth using?
In an attempt to better track experiment results and hyperparameters, not only did I learn about the Weights and Biases library but also ended up finding out about frameworks such as PyTorch Lightning and Ignite. I've always used raw PyTorch, so I'm not sure if these frameworks are really useful. I mostly work with academic research, right now I also need to keep track of the MAE since it's a regression problem and I don't know if these frameworks support this or let me define a custom metric.
Would these frameworks be useful for me? Could it speed up the process when experimenting with different architectures?
If you think they're useful, let me know which one you'd recommend.
/r/MachineLearning
https://redd.it/1ctqzfa
In an attempt to better track experiment results and hyperparameters, not only did I learn about the Weights and Biases library but also ended up finding out about frameworks such as PyTorch Lightning and Ignite. I've always used raw PyTorch, so I'm not sure if these frameworks are really useful. I mostly work with academic research, right now I also need to keep track of the MAE since it's a regression problem and I don't know if these frameworks support this or let me define a custom metric.
Would these frameworks be useful for me? Could it speed up the process when experimenting with different architectures?
If you think they're useful, let me know which one you'd recommend.
/r/MachineLearning
https://redd.it/1ctqzfa
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
How do I clean a ModelForm field before every other.
For my form validation to work properly, I need to validate one of the fields before all of the others. How do I do this? Here's a simplified version my code:
class Form(ModelForm):
added_field = forms.IntegerField()
class Meta:
model = ModelExample
fields = ["field1"]
def __init__(self, user, *args, **kwargs):
super().__init__(*args, **kwargs)
self.user = user
self.other_model_object = None
for field in self.fields.values():
field.required = False
def clean_added_field(self):
/r/djangolearning
https://redd.it/1ctsbrx
For my form validation to work properly, I need to validate one of the fields before all of the others. How do I do this? Here's a simplified version my code:
class Form(ModelForm):
added_field = forms.IntegerField()
class Meta:
model = ModelExample
fields = ["field1"]
def __init__(self, user, *args, **kwargs):
super().__init__(*args, **kwargs)
self.user = user
self.other_model_object = None
for field in self.fields.values():
field.required = False
def clean_added_field(self):
/r/djangolearning
https://redd.it/1ctsbrx
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1ctrpwz
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1ctrpwz
Redditinc
Reddit Rules
Reddit Rules - Reddit
Folks who know the internals: Where does operator precedence "happen"?
Hey! Messing around with instaviz, cool library, highly recommend. You can visualize a function's bytecode as well as AST and some other stuff.
i entered this:
def f():
x = 1 + 2 - 102
return x
I was expecting the AST nodes for
... (more tree up here)
BinOp
| \\ \\
BinOp Sub BinOp
| \\ \\ / |
/r/Python
https://redd.it/1ctwi8z
Hey! Messing around with instaviz, cool library, highly recommend. You can visualize a function's bytecode as well as AST and some other stuff.
i entered this:
def f():
x = 1 + 2 - 102
return x
I was expecting the AST nodes for
1 + 2 - 10**2 to be rearranged somehow, with 10**2 being moved to the left hand of the expression, because exponents get evaluated before addition/subtraction. but no! just looks like this:... (more tree up here)
BinOp
| \\ \\
BinOp Sub BinOp
| \\ \\ / |
/r/Python
https://redd.it/1ctwi8z
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
GeoEntropy: A Python Package for Computing Spatial/Geometric Entropy
What the project does:
GeoEntropy is a Python package designed to compute various entropy measures for spatial data represented in matrices (numpy arrays).
Target audience:
Scientists.
Alternatives:
GeoEntropy is inspired by the R package SpatEntropy by L. Altieri, D. Cocchi, and G. Roli.
You can find the source code here (github.com) and the package description also on pypi.org.
/r/Python
https://redd.it/1cty1zx
What the project does:
GeoEntropy is a Python package designed to compute various entropy measures for spatial data represented in matrices (numpy arrays).
Target audience:
Scientists.
Alternatives:
GeoEntropy is inspired by the R package SpatEntropy by L. Altieri, D. Cocchi, and G. Roli.
You can find the source code here (github.com) and the package description also on pypi.org.
/r/Python
https://redd.it/1cty1zx
cran.r-project.org
SpatEntropy: Spatial Entropy Measures
The heterogeneity of spatial data presenting a finite number of categories can be measured via computation of spatial entropy. Functions are available for the computation of the main entropy and spatial entropy measures in the literature. They include the…
pip time machine
https://github.com/nevakrien/time\_machine\_pip
this is a fairly simple project barely anything to it but I think its promising
the idea is to put pip in a time machine so it can not use package versions that were made after the project is made.
I am doing this by proxiying pypi and cutting out the newer versions.
initial tests show that pip respects the proxy and works like you would expect
/r/Python
https://redd.it/1cte019
https://github.com/nevakrien/time\_machine\_pip
this is a fairly simple project barely anything to it but I think its promising
the idea is to put pip in a time machine so it can not use package versions that were made after the project is made.
I am doing this by proxiying pypi and cutting out the newer versions.
initial tests show that pip respects the proxy and works like you would expect
/r/Python
https://redd.it/1cte019
GitHub
GitHub - nevakrien/time_machine_pip: attempting to fix python depency hell by forcing pip into using only package versions from…
attempting to fix python depency hell by forcing pip into using only package versions from when the project was devloped - nevakrien/time_machine_pip
The Smartest Person In The World - a competitive logic web game written in Flask
Hi all, I've recently released a project I have been working on for a few months to learn how to build a website from scratch in Flask: https://www.the-smartest-person-in-the-world.com/ . It's a series of 36 logic minigames where you can only interact with the games through numbers. Each game awards a point, and there is a global leaderboard.
I had already created some basic APIs and UIs using Flask, but never a fully fledged project, hosted online with a proper domain. Well, using Flask was a pleasure!
The integration with DBs through
To deploy the site, I used pythonanywhere.com which has some nice tutorials to host Flask projects out of the box. It has a free tier which is already great for playing around with your project and actually seeing it on the internet. I used the cheapest tier (5$/month) to use a proper domain name and get 2 workers to serve the website.
It has been up for 5 days and has received 7k unique visitors. It now has
/r/flask
https://redd.it/1ctkvsl
Hi all, I've recently released a project I have been working on for a few months to learn how to build a website from scratch in Flask: https://www.the-smartest-person-in-the-world.com/ . It's a series of 36 logic minigames where you can only interact with the games through numbers. Each game awards a point, and there is a global leaderboard.
I had already created some basic APIs and UIs using Flask, but never a fully fledged project, hosted online with a proper domain. Well, using Flask was a pleasure!
The integration with DBs through
flask_sqlalchemy was very smooth, the handling of data between the client and server through the session object was extremely intuitive, just like if I was working with a regular Python dict.To deploy the site, I used pythonanywhere.com which has some nice tutorials to host Flask projects out of the box. It has a free tier which is already great for playing around with your project and actually seeing it on the internet. I used the cheapest tier (5$/month) to use a proper domain name and get 2 workers to serve the website.
It has been up for 5 days and has received 7k unique visitors. It now has
/r/flask
https://redd.it/1ctkvsl
The-Smartest-Person-In-The-World
The Smartest Person In The World
'The Smartest Person In The World' is a logic-based competitive challenge composed of multiple minigames. The rules for each game aren't written anywhere, you have to figure them out to win.
Independent lambda functions and Django
Hi all, I’ve tried researching this question but I can’t seem to find an answer so any help appreciated!
Background:
I currently have multiple Lambda functions that gather data from various sources and save them to a s3 bucket (currently as parquet). All are on cron schedules and deployed to aws.
At the same time I’m creating a Django app to use this data as part of a larger crud app. Am using RDS (MySQL)
I want to update the lambdas to save the data directly to the RDS in the format of the Django models.
Can I insert the data directly to RDS independent of Django or do I need to somehow integrate Django models to the lambda?
Or any other suggestions feel free to raise!
Thanks 😊
/r/django
https://redd.it/1ctvush
Hi all, I’ve tried researching this question but I can’t seem to find an answer so any help appreciated!
Background:
I currently have multiple Lambda functions that gather data from various sources and save them to a s3 bucket (currently as parquet). All are on cron schedules and deployed to aws.
At the same time I’m creating a Django app to use this data as part of a larger crud app. Am using RDS (MySQL)
I want to update the lambdas to save the data directly to the RDS in the format of the Django models.
Can I insert the data directly to RDS independent of Django or do I need to somehow integrate Django models to the lambda?
Or any other suggestions feel free to raise!
Thanks 😊
/r/django
https://redd.it/1ctvush
Reddit
From the django community on Reddit
Explore this post and more from the django community
Trying to Publish my Flask API on Postman
I'm trying to publish my Flask API on Postman but I'm not sure if I need to host the API on a hosting service before I can do that. Most tutorials I've seen are not working on the localhost so I'm not sure how to go about it.
I know this is supposed to be on the postman sub-reddit, but the sub-reddit is not active
/r/flask
https://redd.it/1cu37d6
I'm trying to publish my Flask API on Postman but I'm not sure if I need to host the API on a hosting service before I can do that. Most tutorials I've seen are not working on the localhost so I'm not sure how to go about it.
I know this is supposed to be on the postman sub-reddit, but the sub-reddit is not active
/r/flask
https://redd.it/1cu37d6
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Homoiconic Python Code
Homoiconic, what does it mean? In simple terms, homoiconic code is when code is treated as data and can be manipulated as you would data. This means the code can be changed, new functions and variables added, the code can generate new code or even examine and modify its own structure and behavior all while it is running. That’s why homoiconic languages like Lisp are so powerful. But what if we can make a homoiconic python code, where the code and the data are one and the same and can be modified in the same way?
This guide does a good job in trying to explain how you would create a python version of the “Lisp in Lisp” code which would give you access to all those homoiconic features that Lisp brags of like the macro systems, the expressiveness and flexibility, the metaprogramming etc. while still using python. What do you guys think of this?
/r/Python
https://redd.it/1cu2bpv
Homoiconic, what does it mean? In simple terms, homoiconic code is when code is treated as data and can be manipulated as you would data. This means the code can be changed, new functions and variables added, the code can generate new code or even examine and modify its own structure and behavior all while it is running. That’s why homoiconic languages like Lisp are so powerful. But what if we can make a homoiconic python code, where the code and the data are one and the same and can be modified in the same way?
This guide does a good job in trying to explain how you would create a python version of the “Lisp in Lisp” code which would give you access to all those homoiconic features that Lisp brags of like the macro systems, the expressiveness and flexibility, the metaprogramming etc. while still using python. What do you guys think of this?
/r/Python
https://redd.it/1cu2bpv
Substack
Homoiconic Python
McCarthy's Lisp in Python lists