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
Twitter is opening up its full tweet archive to academic researchers for free
Opening up a public archive, monthly tweet volume cap is now 10 million (20x higher than previous 500,000). This definitely opens the door for new projects built using the Twitter API, especially in the field of sentiment analysis.
https://www.theverge.com/2021/1/26/22250203/twitter-academic-research-public-tweet-archive-free-access
/r/Python
https://redd.it/l5ldye
Opening up a public archive, monthly tweet volume cap is now 10 million (20x higher than previous 500,000). This definitely opens the door for new projects built using the Twitter API, especially in the field of sentiment analysis.
https://www.theverge.com/2021/1/26/22250203/twitter-academic-research-public-tweet-archive-free-access
/r/Python
https://redd.it/l5ldye
The Verge
Twitter is opening up its full tweet archive to academic researchers for free
A full searchable archive of public tweets will now be available for free.
Wednesday Daily Thread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
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/l5rc8y
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
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/l5rc8y
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
P I made sequitur: A library of autoencoders for sequence data (e.g. time series, videos)
Github repo: https://github.com/shobrook/sequitur/
Sequitur lets you create encodings of any sequence data (time series, audio, video, etc.) in just two lines of code. It implements three different autoencoder architectures in PyTorch and a predefined training loop. I made sequitur because if you search for "sequence autoencoder" on Github, all you get are applications of sequence autoencoders –– nothing that lets you easily create and train one for whatever application you're working on. I built this with beginners in mind, but it's also designed so that more advanced users can easily modify the autoencoders and write their own training loops.
Hopefully some of you find this useful, and please feel free to critique the library or suggest improvements.
/r/MachineLearning
https://redd.it/l5frpd
Github repo: https://github.com/shobrook/sequitur/
Sequitur lets you create encodings of any sequence data (time series, audio, video, etc.) in just two lines of code. It implements three different autoencoder architectures in PyTorch and a predefined training loop. I made sequitur because if you search for "sequence autoencoder" on Github, all you get are applications of sequence autoencoders –– nothing that lets you easily create and train one for whatever application you're working on. I built this with beginners in mind, but it's also designed so that more advanced users can easily modify the autoencoders and write their own training loops.
Hopefully some of you find this useful, and please feel free to critique the library or suggest improvements.
/r/MachineLearning
https://redd.it/l5frpd
GitHub
GitHub - shobrook/sequitur: Library of autoencoders for sequential data
Library of autoencoders for sequential data. Contribute to shobrook/sequitur development by creating an account on GitHub.
How to make a form (dynamic form?) for this model that will able user to select choice for each question asked - (repost i messed up the formatting before)
Im trying to make a form for a quiz that will able user to select choice for each question when presented, so that when i user submits the form it is saves into the user response. Also how would I list the choices taken from the choice model for each given question?
​
**what im trying to achieve:**
​
\- display form for each question for a given quiz
\- display all on same page as one form
\- once all questions answered submit into UserResponse model alongside
the user that did the quiz
​
My models seem to work correctly as im able to populate them with data and the relations between them seem to be okay. I am new to django so i have been trying to read the documentation and ive done mutliple tutorials but can seem to find a solution.
​
Model for quiz:
​
class Quiz(models.Model):
title = models.CharField(maxlength=255, unique=True)
description = models.CharField(maxlength=255, blank=True, unique=False)
created = models.DateTimeField(autonowadd=True, editable=False)
slug = models.SlugField()
active = models.BooleanField('Is active?', default=True, dbindex=True)
class Question(models.Model):
type = models.IntegerField(choices=TYPES, default=1, verbosename='Question Type')
/r/djangolearning
https://redd.it/l5j559
Im trying to make a form for a quiz that will able user to select choice for each question when presented, so that when i user submits the form it is saves into the user response. Also how would I list the choices taken from the choice model for each given question?
​
**what im trying to achieve:**
​
\- display form for each question for a given quiz
\- display all on same page as one form
\- once all questions answered submit into UserResponse model alongside
the user that did the quiz
​
My models seem to work correctly as im able to populate them with data and the relations between them seem to be okay. I am new to django so i have been trying to read the documentation and ive done mutliple tutorials but can seem to find a solution.
​
Model for quiz:
​
class Quiz(models.Model):
title = models.CharField(maxlength=255, unique=True)
description = models.CharField(maxlength=255, blank=True, unique=False)
created = models.DateTimeField(autonowadd=True, editable=False)
slug = models.SlugField()
active = models.BooleanField('Is active?', default=True, dbindex=True)
class Question(models.Model):
type = models.IntegerField(choices=TYPES, default=1, verbosename='Question Type')
/r/djangolearning
https://redd.it/l5j559
reddit
How to make a form (dynamic form?) for this model that will able...
Im trying to make a form for a quiz that will able user to select choice for each question when presented, so that when i user submits the form it...
What we mean by scalable application when we choosing frameworks or languages?
Hi , I gone through a article that says `python is synchronous` so it is slower then GO and other asynchronous languages and less scalable then why `instagram , quora ` like apps are working fine on python ?
/r/django
https://redd.it/l5l7ua
Hi , I gone through a article that says `python is synchronous` so it is slower then GO and other asynchronous languages and less scalable then why `instagram , quora ` like apps are working fine on python ?
/r/django
https://redd.it/l5l7ua
reddit
What we mean by scalable application when we choosing frameworks...
Hi , I gone through a article that says \`python is synchronous\` so it is slower then GO and other asynchronous languages and less scalable ...
How to simply view a user profile in Django without being logged into it?
Running into an issue that's oddly harder than I thought it was going to be. I just want to create a view that displays a users information, but currently the problem I'm running into is that it automatically signs into the user when viewing the profile.
models.py:
class UserProfile(models.Model):
user = models.OneToOneField(User, null=True, on_delete=models.CASCADE)
name = models.CharField(max_length=200, blank=True)
class tag(models.Model):
user = models.ForeignKey(User,
default = 1,
on_delete = models.CASCADE
)
views.py:
def ViewProfile(request, username):
user =
/r/django
https://redd.it/l5ufwj
Running into an issue that's oddly harder than I thought it was going to be. I just want to create a view that displays a users information, but currently the problem I'm running into is that it automatically signs into the user when viewing the profile.
models.py:
class UserProfile(models.Model):
user = models.OneToOneField(User, null=True, on_delete=models.CASCADE)
name = models.CharField(max_length=200, blank=True)
class tag(models.Model):
user = models.ForeignKey(User,
default = 1,
on_delete = models.CASCADE
)
views.py:
def ViewProfile(request, username):
user =
/r/django
https://redd.it/l5ufwj
reddit
How to simply view a user profile in Django without being logged...
Running into an issue that's oddly harder than I thought it was going to be. I just want to create a view that displays a users information, but...
Flask State ------ It's a plugin for monitor machine state, like CPU, Memory, Disk usage, LoadAVG etc.
​
https://preview.redd.it/r8lm7ibtmtd61.png?width=691&format=png&auto=webp&s=ad1c13742361097fba79bf85e357fa2c84904ff3
I’m a Chinese Python developer.I want to study flask and i find monitor data is simple that other project.
So I built Flask State with two friends.**https://github.com/yoobool/flask-state**
a display machine state, with Python3.It's a plugin for monitor machine state, like CPU, Memory, Disk usage, LoadAVG etc.
I need some advice about which data should i add on future? I have few idea about it. Now there have CPU, Memory, Disk usage, LoadAVG.
Actually, Flask State is just monitor project, it haven’t base on flask.
​
https://preview.redd.it/4oq5x8uqmtd61.png?width=336&format=png&auto=webp&s=36079c2250d6c2797b59942763345288fc25a48b
BTW, Would you give a star on GitHub? Then you can find it easily whenever you want use.
​
https://preview.redd.it/5c5xnewmmtd61.png?width=1314&format=png&auto=webp&s=69a518d4df12a5890aa8382768cf0d6b5c2eea4c
/r/Python
https://redd.it/l5ygd1
​
https://preview.redd.it/r8lm7ibtmtd61.png?width=691&format=png&auto=webp&s=ad1c13742361097fba79bf85e357fa2c84904ff3
I’m a Chinese Python developer.I want to study flask and i find monitor data is simple that other project.
So I built Flask State with two friends.**https://github.com/yoobool/flask-state**
a display machine state, with Python3.It's a plugin for monitor machine state, like CPU, Memory, Disk usage, LoadAVG etc.
I need some advice about which data should i add on future? I have few idea about it. Now there have CPU, Memory, Disk usage, LoadAVG.
Actually, Flask State is just monitor project, it haven’t base on flask.
​
https://preview.redd.it/4oq5x8uqmtd61.png?width=336&format=png&auto=webp&s=36079c2250d6c2797b59942763345288fc25a48b
BTW, Would you give a star on GitHub? Then you can find it easily whenever you want use.
​
https://preview.redd.it/5c5xnewmmtd61.png?width=1314&format=png&auto=webp&s=69a518d4df12a5890aa8382768cf0d6b5c2eea4c
/r/Python
https://redd.it/l5ygd1
Workflow Automation and Frameworks - Python-Flask
Good day community. In many companies (especially small business) the need for a system often includes workflows. i.e. document sent from one department to another or from one person to another - in order for e.g payment to be signed-off and released....or the next person in the value chain must now continue updating or adding to the document before it is finalised.
Microsoft Visio for example is one of those Tools for documenting workflows within companies.
I think most of us have come across this within real world projects. My question is:
1- do you have an example of a workflow system with Python/Flask at its core - serving front-end and backend functionality?
2- are their any specific frameworks within Python that allows for Workflow automation?
3- what in your opinion would be the best way to approach such a use-case?
​
​
Your opinion matters....thanks in advance.
/r/flask
https://redd.it/l61arq
Good day community. In many companies (especially small business) the need for a system often includes workflows. i.e. document sent from one department to another or from one person to another - in order for e.g payment to be signed-off and released....or the next person in the value chain must now continue updating or adding to the document before it is finalised.
Microsoft Visio for example is one of those Tools for documenting workflows within companies.
I think most of us have come across this within real world projects. My question is:
1- do you have an example of a workflow system with Python/Flask at its core - serving front-end and backend functionality?
2- are their any specific frameworks within Python that allows for Workflow automation?
3- what in your opinion would be the best way to approach such a use-case?
​
​
Your opinion matters....thanks in advance.
/r/flask
https://redd.it/l61arq
reddit
Workflow Automation and Frameworks - Python-Flask
Good day community. In many companies (especially small business) the need for a system often includes workflows. i.e. document sent from one...
Is flask and firestore a good combo?
I have my own full stack website and I used fire store and flask for it. Is this a good combo?
/r/flask
https://redd.it/l5uwrs
I have my own full stack website and I used fire store and flask for it. Is this a good combo?
/r/flask
https://redd.it/l5uwrs
reddit
Is flask and firestore a good combo?
I have my own full stack website and I used fire store and flask for it. Is this a good combo?
Which IDE are you using for stats with python? How do you write reports?
I assume most of you use pandas to transform datasets and perform statistics with python?
My question to you is:
a) Which IDE do you use? Do you create your reports in Jupyter, or you use something like RStudio but with python?
b) Do you write reports in markdown? If yes, do you use Rmarkdown with python code blocks, or you use something more native to python such as this https://pypi.org/project/Markdown/
/r/pystats
https://redd.it/l60nm0
I assume most of you use pandas to transform datasets and perform statistics with python?
My question to you is:
a) Which IDE do you use? Do you create your reports in Jupyter, or you use something like RStudio but with python?
b) Do you write reports in markdown? If yes, do you use Rmarkdown with python code blocks, or you use something more native to python such as this https://pypi.org/project/Markdown/
/r/pystats
https://redd.it/l60nm0
PyPI
Markdown
Python implementation of John Gruber's Markdown.
So Guido posted this a few hours ago on Twitter. Is this a Python bug?
​
https://preview.redd.it/wdzra6q1gud61.png?width=590&format=png&auto=webp&s=08c9b8e2bf78fcede690358f66ff79a13a1b2e26
/r/Python
https://redd.it/l60ulm
​
https://preview.redd.it/wdzra6q1gud61.png?width=590&format=png&auto=webp&s=08c9b8e2bf78fcede690358f66ff79a13a1b2e26
/r/Python
https://redd.it/l60ulm
Django Rest. Is it a bad idea to loop on front-end making api calls to server?
Using Django Rest and React JS. My current api call takes quite a lot of time (5 seconds) and returns a lot of data to the front end. I would like to return partial data a few times so that way the user gets to see some of the frontend while the rest of it is loading. Seems to be better UX design. Is it bad design to have the front-end loop and make api calls? Maybe there is a better way to do this?
/r/django
https://redd.it/l63joc
Using Django Rest and React JS. My current api call takes quite a lot of time (5 seconds) and returns a lot of data to the front end. I would like to return partial data a few times so that way the user gets to see some of the frontend while the rest of it is loading. Seems to be better UX design. Is it bad design to have the front-end loop and make api calls? Maybe there is a better way to do this?
/r/django
https://redd.it/l63joc
reddit
Django Rest. Is it a bad idea to loop on front-end making api...
Using Django Rest and React JS. My current api call takes quite a lot of time (5 seconds) and returns a lot of data to the front end. I would like...
N Call for Benchmarks. Submit your benchmark so that Googlers can put their name on your work
An exciting new NLP benchmark is being created for an ICLR 2021 workshop: https://github.com/google/BIG-bench
Your benchmark can be part of this collaborative big benchmark if you do these steps:
1. Spend months toiling away creating a challenging new benchmark, one that NLP community desperately needs
2. Submit your novel benchmark as a pull request to the BIG benchmark, and have it merged
3. Wait for the BIG benchmark to be released as a paper.
4. Profit! The paper is released. The workshop coorganizers, who basically did nothing, are lead authors for this paper (Raffel et al., 2021). You're buried in the author list as 30th author. The NLP community won't cite your benchmark individually, so you basically get no credit.
/r/MachineLearning
https://redd.it/l5zkyc
An exciting new NLP benchmark is being created for an ICLR 2021 workshop: https://github.com/google/BIG-bench
Your benchmark can be part of this collaborative big benchmark if you do these steps:
1. Spend months toiling away creating a challenging new benchmark, one that NLP community desperately needs
2. Submit your novel benchmark as a pull request to the BIG benchmark, and have it merged
3. Wait for the BIG benchmark to be released as a paper.
4. Profit! The paper is released. The workshop coorganizers, who basically did nothing, are lead authors for this paper (Raffel et al., 2021). You're buried in the author list as 30th author. The NLP community won't cite your benchmark individually, so you basically get no credit.
/r/MachineLearning
https://redd.it/l5zkyc
GitHub
GitHub - google/BIG-bench: Beyond the Imitation Game collaborative benchmark for measuring and extrapolating the capabilities of…
Beyond the Imitation Game collaborative benchmark for measuring and extrapolating the capabilities of language models - google/BIG-bench
Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect. Works on macOS and Linux and Windows
​
https://i.redd.it/nv8qimciqxd61.gif
Hey!
I just wanted to share a neat little tool I made earlier this week. It allows you to get your WiFi password and if you want, you can generate a QR code so that your friends can scan the QR code to quickly connect to your WiFi.
GitHub: https://github.com/sdushantha/wifi-password
Let me know what you guys think about it :)
/r/Python
https://redd.it/l6dqvx
​
https://i.redd.it/nv8qimciqxd61.gif
Hey!
I just wanted to share a neat little tool I made earlier this week. It allows you to get your WiFi password and if you want, you can generate a QR code so that your friends can scan the QR code to quickly connect to your WiFi.
GitHub: https://github.com/sdushantha/wifi-password
Let me know what you guys think about it :)
/r/Python
https://redd.it/l6dqvx
accidently removed all rows in db, any possibility to recover it?
Hi! I used ORM to remove duplicate rows but my code wasn't accurate for achieving that and it removed all my rows in a table. Is it possible to recover it? Thank you so much for your help!
/r/django
https://redd.it/l6bqgn
Hi! I used ORM to remove duplicate rows but my code wasn't accurate for achieving that and it removed all my rows in a table. Is it possible to recover it? Thank you so much for your help!
/r/django
https://redd.it/l6bqgn
reddit
accidently removed all rows in db, any possibility to recover it?
Hi! I used ORM to remove duplicate rows but my code wasn't accurate for achieving that and it removed all my rows in a table. Is it possible to...