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...
How to override admin's password change view logic?
I can't seem to make it work. Django docs says to use
path('accounts/', include('django.contrib.auth.urls')),
but I don't want it to have "accounts/" url instead I only want it to remain as "admin/". However I tried overriding it as seen in the image and code included, it doesn't seem to use the custom view that I've made. Any idea why and how to fix it?
Code: https://dpaste.org/PWbn
​
https://preview.redd.it/urz159ipbzd61.jpg?width=801&format=pjpg&auto=webp&s=26659379a5227abc725fd8cf9543d2ce728ea2af
/r/django
https://redd.it/l6kwef
I can't seem to make it work. Django docs says to use
path('accounts/', include('django.contrib.auth.urls')),
but I don't want it to have "accounts/" url instead I only want it to remain as "admin/". However I tried overriding it as seen in the image and code included, it doesn't seem to use the custom view that I've made. Any idea why and how to fix it?
Code: https://dpaste.org/PWbn
​
https://preview.redd.it/urz159ipbzd61.jpg?width=801&format=pjpg&auto=webp&s=26659379a5227abc725fd8cf9543d2ce728ea2af
/r/django
https://redd.it/l6kwef
Async tasks with celery and django on google cloud.
Hi everyone, hope you’re doing well. I have a project that gets infos from users by a form and makes some calculations then saves it to database. But those operations takes too much time for user and I want to skip that part for users. So I searched from internet and I installed celery, heroku redis to my project. Everything works fine at local dev. But my site has to be deployed on gcloud. I do the operations as follows: Firstly i run supervisor on my computer then i upload my project to gcloud. I use supervisor on my computer but when i close my laptop it closes too. But i cant hold my pc open all the time. I need a self-sufficient system for this setup. Briefly talking, i need to make celery run on deployed web-site 24/7 and i have to make it on gcloud. How can i do that? Thanks already for all answers.
/r/django
https://redd.it/l6bzno
Hi everyone, hope you’re doing well. I have a project that gets infos from users by a form and makes some calculations then saves it to database. But those operations takes too much time for user and I want to skip that part for users. So I searched from internet and I installed celery, heroku redis to my project. Everything works fine at local dev. But my site has to be deployed on gcloud. I do the operations as follows: Firstly i run supervisor on my computer then i upload my project to gcloud. I use supervisor on my computer but when i close my laptop it closes too. But i cant hold my pc open all the time. I need a self-sufficient system for this setup. Briefly talking, i need to make celery run on deployed web-site 24/7 and i have to make it on gcloud. How can i do that? Thanks already for all answers.
/r/django
https://redd.it/l6bzno
reddit
Async tasks with celery and django on google cloud.
Hi everyone, hope you’re doing well. I have a project that gets infos from users by a form and makes some calculations then saves it to database....
Thursday Daily Thread: Python careers!
Discussion of using Python in a professional environment, getting jobs in Python and more!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/l6ibdc
Discussion of using Python in a professional environment, getting jobs in Python and more!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/l6ibdc
reddit
Thursday Daily Thread: Python careers!
Discussion of using Python in a professional environment, getting jobs in Python and more! **This thread is not for recruitment, please see**...
Glasgow Interface Explorer: First fully open source FPGA based digital interface tool, allows you to decode, probe, and reverse engineer nearly any digital interface from Python
I thought the Python community might be interested in this open source hardware and software project which is a bit different than the normal fare. I'm not affiliated with this project, just an excited future user waiting for the crowdfunding campaign for the hardware to finish so I can get my hands on one and start using it, and maybe contributing to the project.
GitHub: https://github.com/GlasgowEmbedded/glasgow
Crowd Supply Campaign: https://www.crowdsupply.com/1bitsquared/glasgow
The Glasgow Interface Explorer is a completely re-configurable interface for digital I/O, both input and output, including automatic voltage level sensing and independently controllable voltage levels for two different I/O banks. It uses an FPGA (field programmable gate array; essentially a re-configurable array of digital logic elements that you can use to form different high-speed digital circuits at run-time) and high-speed (480 Mb/s) USB to allow it to interface with a pretty wide variety of protocols, even unusual ones with tight timing requirements.
This is something that you would use if you're trying to interface to some obscure piece of hardware, or just generally if you're doing many kinds of digital hardware work and need an adapter to probe, test, inject messages, program an EEPROM or flash, or the like.
And one of the really
/r/Python
https://redd.it/l6f7i1
I thought the Python community might be interested in this open source hardware and software project which is a bit different than the normal fare. I'm not affiliated with this project, just an excited future user waiting for the crowdfunding campaign for the hardware to finish so I can get my hands on one and start using it, and maybe contributing to the project.
GitHub: https://github.com/GlasgowEmbedded/glasgow
Crowd Supply Campaign: https://www.crowdsupply.com/1bitsquared/glasgow
The Glasgow Interface Explorer is a completely re-configurable interface for digital I/O, both input and output, including automatic voltage level sensing and independently controllable voltage levels for two different I/O banks. It uses an FPGA (field programmable gate array; essentially a re-configurable array of digital logic elements that you can use to form different high-speed digital circuits at run-time) and high-speed (480 Mb/s) USB to allow it to interface with a pretty wide variety of protocols, even unusual ones with tight timing requirements.
This is something that you would use if you're trying to interface to some obscure piece of hardware, or just generally if you're doing many kinds of digital hardware work and need an adapter to probe, test, inject messages, program an EEPROM or flash, or the like.
And one of the really
/r/Python
https://redd.it/l6f7i1
GitHub
GitHub - GlasgowEmbedded/glasgow: Scots Army Knife for electronics
Scots Army Knife for electronics. Contribute to GlasgowEmbedded/glasgow development by creating an account on GitHub.
IN SEARCH OF Python-based coding community interested in vastly improving animal & plant production and water quality by improving visibility and efficacy through automation to ensure ethical procedures and farming practices.
As a lover of all animals, a public health advocate, master gardener in love with water conservation and natural filtration, compost queen, and a gardening maniac set on leveling the access to good food for all.
I am looking to see if there are any other Python programmers (or already established organizations that I can join) for a like-minded community focused on similar goals.
I have quite a few ideas based on university research that I would love to share with anyone interested.
Kindest regards,
Nay
/r/Python
https://redd.it/l6ket2
As a lover of all animals, a public health advocate, master gardener in love with water conservation and natural filtration, compost queen, and a gardening maniac set on leveling the access to good food for all.
I am looking to see if there are any other Python programmers (or already established organizations that I can join) for a like-minded community focused on similar goals.
I have quite a few ideas based on university research that I would love to share with anyone interested.
Kindest regards,
Nay
/r/Python
https://redd.it/l6ket2
reddit
IN SEARCH OF Python-based coding community interested in vastly...
As a lover of all animals, a public health advocate, master gardener in love with water conservation and natural filtration, compost queen, and a...