This media is not supported in your browser
VIEW IN TELEGRAM
ASCII generator (image2text, image2image and video2video) written in Python (Github repo: https://github.com/vietnguyen91/ASCII-generator)
/r/IPython
https://redd.it/amcagt
/r/IPython
https://redd.it/amcagt
A Python Interpreter written in Rust
https://github.com/RustPython/RustPython
/r/Python
https://redd.it/amj25o
https://github.com/RustPython/RustPython
/r/Python
https://redd.it/amj25o
GitHub
GitHub - RustPython/RustPython: A Python Interpreter written in Rust
A Python Interpreter written in Rust. Contribute to RustPython/RustPython development by creating an account on GitHub.
Next programming language after Python?
Hi all,
I've been learning/working with Python for over a year now. Python was my first programming language and I feel comfortable saying I've got an intermediate level when working with it: I use it daily at my job (research institute), automating data analysis and figuring out new ways to look at our data. I've also done a bit of GUI development with PyQt5 so I can share my tools with my colleagues in a more intuitive fashion.
The thing is, I sorta want to learn a second programming language to complement my skills, but I don't really know which to pick. Does anyone have a good suggestion? Some points to consider:
* I don't have much interest in web development, so JavaScript and PHP are off the table, at least for now.
* Java... well I've looked at it and it seems interesting, but apart from the fact that it's easier to port anywhere due to the JVM it kinda feels the same as Python? Not sure I will gain that much from learning it.
* I've considered learning SQL and databases in general, and I'm sure that I'll learn about them at some point in the future, but since it's more of a
/r/Python
https://redd.it/amdz21
Hi all,
I've been learning/working with Python for over a year now. Python was my first programming language and I feel comfortable saying I've got an intermediate level when working with it: I use it daily at my job (research institute), automating data analysis and figuring out new ways to look at our data. I've also done a bit of GUI development with PyQt5 so I can share my tools with my colleagues in a more intuitive fashion.
The thing is, I sorta want to learn a second programming language to complement my skills, but I don't really know which to pick. Does anyone have a good suggestion? Some points to consider:
* I don't have much interest in web development, so JavaScript and PHP are off the table, at least for now.
* Java... well I've looked at it and it seems interesting, but apart from the fact that it's easier to port anywhere due to the JVM it kinda feels the same as Python? Not sure I will gain that much from learning it.
* I've considered learning SQL and databases in general, and I'm sure that I'll learn about them at some point in the future, but since it's more of a
/r/Python
https://redd.it/amdz21
reddit
r/Python - Next programming language after Python?
101 votes and 153 comments so far on Reddit
I wrote this geometry library based on the lectures on projective geometry that are taught at my university. I hope someone finds it useful. Any feedback is welcome!
https://github.com/jan-mue/geometer
/r/Python
https://redd.it/amewg5
https://github.com/jan-mue/geometer
/r/Python
https://redd.it/amewg5
GitHub
GitHub - jan-mue/geometer: A geometry library written in Python
A geometry library written in Python. Contribute to jan-mue/geometer development by creating an account on GitHub.
[D] Growing collection of Deep Learning, Machine Learning, Reinforcement Learning lectures
Hello everyone,
I have collected a list of freely available courses on *Machine Learning, Deep Learning, Reinforcement Learning, Natural Language Processing, Computer Vision, Probabilistic Graphical Models, Machine Learning Fundamentals, and Deep Learning boot camps or summer schools*.
The complete list is available here: [deep learning drizzle](https://github.com/kmario23/deep-learning-drizzle)
Feel free to share it with your friends, colleagues, or anyone who would be interested in learning ML independently. Also, please make yourself comfortable in forking or starring the repo as you'd like.
Also, if you have some suggestions, please leave a comment here or raise an issue in the git repo.
GitHub repo: [deep learning drizzle](https://github.com/kmario23/deep-learning-drizzle)
I wish you all a nice weekend!
/r/MachineLearning
https://redd.it/amjiyj
Hello everyone,
I have collected a list of freely available courses on *Machine Learning, Deep Learning, Reinforcement Learning, Natural Language Processing, Computer Vision, Probabilistic Graphical Models, Machine Learning Fundamentals, and Deep Learning boot camps or summer schools*.
The complete list is available here: [deep learning drizzle](https://github.com/kmario23/deep-learning-drizzle)
Feel free to share it with your friends, colleagues, or anyone who would be interested in learning ML independently. Also, please make yourself comfortable in forking or starring the repo as you'd like.
Also, if you have some suggestions, please leave a comment here or raise an issue in the git repo.
GitHub repo: [deep learning drizzle](https://github.com/kmario23/deep-learning-drizzle)
I wish you all a nice weekend!
/r/MachineLearning
https://redd.it/amjiyj
GitHub
GitHub - kmario23/deep-learning-drizzle: Drench yourself in Deep Learning, Reinforcement Learning, Machine Learning, Computer Vision…
Drench yourself in Deep Learning, Reinforcement Learning, Machine Learning, Computer Vision, and NLP by learning from these exciting lectures!! - kmario23/deep-learning-drizzle
Python decorators explanation for absolute beginners
Hi, everyone!
I have made a video about decorators concept:
\- how to write them
\- how to use
​
I'm reviewing three versions of decorators:
\- simple decorator for a function without arguments
\- a decorator for a function that takes some arguments
\- and a decorator that takes arguments itself for a function that has arguments (like the Flask's route())
Youtube video: [https://www.youtube.com/watch?v=bCQDdA84aCo](https://www.youtube.com/watch?v=bCQDdA84aCo)
Thanks for watching.
P.S.
The next video will be a small project for beginners - the Apache logs parser with exporting data to a csv.
/r/Python
https://redd.it/ammmsl
Hi, everyone!
I have made a video about decorators concept:
\- how to write them
\- how to use
​
I'm reviewing three versions of decorators:
\- simple decorator for a function without arguments
\- a decorator for a function that takes some arguments
\- and a decorator that takes arguments itself for a function that has arguments (like the Flask's route())
Youtube video: [https://www.youtube.com/watch?v=bCQDdA84aCo](https://www.youtube.com/watch?v=bCQDdA84aCo)
Thanks for watching.
P.S.
The next video will be a small project for beginners - the Apache logs parser with exporting data to a csv.
/r/Python
https://redd.it/ammmsl
YouTube
Python decorators: a beginner's guide
A Python function decorators explanation for absolute beginners with simple examples. What is decorators in Python, how to use them, and how they work. I sta...
I made a Telegram bot you can send messages to, from the console, and get responses back
This is a small project I've been working on. It's a Telegram bot that listens for JSON POSTs on a local port, and forwards the messages to you in Telegram. The coolest feature is that you can send questions, and it will render buttons in Telegram you can click, and receive the response through the JSON API.
I'm using it to monitor my machine learning stuff, i.e., long-running processes that periodically push me the info on current performance. It would be awesome to get feedback on this, especially on interesting features to add. My original vision was to have something on Telegram feeding me with things happening on my servers, and that I could quickly tap something in Telegram to restart a broken process or kill or run something off. This is just a start, but it needs "clients", i.e., ways for people to push messages without having to `curl` or `request` it. All ideas are welcome.
[https://github.com/apiad/logbot](https://github.com/apiad/logbot)
/r/Python
https://redd.it/amhuty
This is a small project I've been working on. It's a Telegram bot that listens for JSON POSTs on a local port, and forwards the messages to you in Telegram. The coolest feature is that you can send questions, and it will render buttons in Telegram you can click, and receive the response through the JSON API.
I'm using it to monitor my machine learning stuff, i.e., long-running processes that periodically push me the info on current performance. It would be awesome to get feedback on this, especially on interesting features to add. My original vision was to have something on Telegram feeding me with things happening on my servers, and that I could quickly tap something in Telegram to restart a broken process or kill or run something off. This is just a start, but it needs "clients", i.e., ways for people to push messages without having to `curl` or `request` it. All ideas are welcome.
[https://github.com/apiad/logbot](https://github.com/apiad/logbot)
/r/Python
https://redd.it/amhuty
GitHub
GitHub - apiad/logbot: A Telegram bot that you can log to from Python and manage long running processes.
A Telegram bot that you can log to from Python and manage long running processes. - apiad/logbot
How to benchmark django to know whether the server is CPU-bound or IO-bound?
1. Figure out CPU-bound or IO-bound
2. Find the offending code in each case
How do you go about them?
Thanks!
/r/django
https://redd.it/amopnz
1. Figure out CPU-bound or IO-bound
2. Find the offending code in each case
How do you go about them?
Thanks!
/r/django
https://redd.it/amopnz
reddit
r/django - How to benchmark django to know whether the server is CPU-bound or IO-bound?
3 votes and 8 comments so far on Reddit
I have created a personal assistant program called JARVIS in python. It uses various APIs. It is pretty cool! Check it out! I have also created KAREN - the Spiderman AI! Like this video and subscribe to my channel, if you want to see how to make that! Enjoy!
https://www.youtube.com/attribution_link?a=Xe1carOmEKM&u=%2Fwatch%3Fv%3D5mu6qlFY3x0%26feature%3Dshare
/r/Python
https://redd.it/amomu8
https://www.youtube.com/attribution_link?a=Xe1carOmEKM&u=%2Fwatch%3Fv%3D5mu6qlFY3x0%26feature%3Dshare
/r/Python
https://redd.it/amomu8
YouTube
How to make Iron Man JARVIS AI | Python 3.6
Hello Friends, I am very excited while creating the video. This video is very close to my heart. Why? I love Marvel series specially the Iron Man and his AI ...
How to get column SUM/AVG calculated
Hey guys,
​
So I wanted to add up some numbers from the column, after doing some filtering. Here what I was able to come up with using info found online. But something is wrong...
seller_received_sum = query.with_entities(func.sum(Testimonials.received).label('sum')).filter(Testimonials.seller == seller) or '<no-data>'
this returns me "<class 'flask\_sqlalchemy.BaseQuery'> SELECT sum(testimonials.received) AS sum
FROM testimonials".
​
Some posts online suggested using '.scalar()' on the end of the query, but that returns me error too.
​
What does label('sum' is)?
What scalar() stands for?
What's wrong here?
/r/flask
https://redd.it/amn1so
Hey guys,
​
So I wanted to add up some numbers from the column, after doing some filtering. Here what I was able to come up with using info found online. But something is wrong...
seller_received_sum = query.with_entities(func.sum(Testimonials.received).label('sum')).filter(Testimonials.seller == seller) or '<no-data>'
this returns me "<class 'flask\_sqlalchemy.BaseQuery'> SELECT sum(testimonials.received) AS sum
FROM testimonials".
​
Some posts online suggested using '.scalar()' on the end of the query, but that returns me error too.
​
What does label('sum' is)?
What scalar() stands for?
What's wrong here?
/r/flask
https://redd.it/amn1so
reddit
r/flask - How to get column SUM/AVG calculated
1 vote and 3 comments so far on Reddit
Interesting Twitter thread about language direction from some of pythons leading voices
https://twitter.com/mitsuhiko/status/1091802711908106240?s=01
/r/Python
https://redd.it/amqxxv
https://twitter.com/mitsuhiko/status/1091802711908106240?s=01
/r/Python
https://redd.it/amqxxv
Twitter
Armin Ronacher
I love Python as a language, it's what I programmed most of in my life. However it's without doubt that I dislike a lot what happens in the language design and community. However …
[HELP] Django Rest Framework and Social Authentication
Hi! I started learning the Django framework 2 weeks back and it's been going great overall. However, now I'm stuck at an issue and don't know what the best approach is. I started working with the django rest framework and it was fairly straighforward until I came across having social app authentication. Im working with the django-rest-auth framework which uses allauth for social app authentication. But I have no idea what to do for authenticating my app with this and there aren't a lot of good resources that I am able to figure out. i am a complete novice with regards to the whole authentication scenario and would be immensely grateful in anyone could help me out on what to do. Thank you all in advance.
/r/django
https://redd.it/amra6b
Hi! I started learning the Django framework 2 weeks back and it's been going great overall. However, now I'm stuck at an issue and don't know what the best approach is. I started working with the django rest framework and it was fairly straighforward until I came across having social app authentication. Im working with the django-rest-auth framework which uses allauth for social app authentication. But I have no idea what to do for authenticating my app with this and there aren't a lot of good resources that I am able to figure out. i am a complete novice with regards to the whole authentication scenario and would be immensely grateful in anyone could help me out on what to do. Thank you all in advance.
/r/django
https://redd.it/amra6b
reddit
r/django - [HELP] Django Rest Framework and Social Authentication
2 votes and 0 comments so far on Reddit
Flask and Celery for my Rasberry Pi 3 Temperature Logger
To learn a bit more about using Celery and RabbitMQ with Flask, I built a little temperature logging station with a Raspberry Pi 3 + DS18B20 one-wire temperature sensor. Celery + celery beat + rabbitmq are definitely overkill for what I wanted, but it was fun a fun way to learn more about them!
The goal was to have a rest endpoint to get the temperature (Flask) and a periodic task to log the current temp reading to a DB (Celery, celery-beat, RabbitMQ, SQL-Alchemy) that I can consume with Grafana or my own front-end to observe temperature change over time in my daughter's nursery.
[https://github.com/kbutz/tempread](https://github.com/kbutz/tempread)
/r/flask
https://redd.it/amsgxc
To learn a bit more about using Celery and RabbitMQ with Flask, I built a little temperature logging station with a Raspberry Pi 3 + DS18B20 one-wire temperature sensor. Celery + celery beat + rabbitmq are definitely overkill for what I wanted, but it was fun a fun way to learn more about them!
The goal was to have a rest endpoint to get the temperature (Flask) and a periodic task to log the current temp reading to a DB (Celery, celery-beat, RabbitMQ, SQL-Alchemy) that I can consume with Grafana or my own front-end to observe temperature change over time in my daughter's nursery.
[https://github.com/kbutz/tempread](https://github.com/kbutz/tempread)
/r/flask
https://redd.it/amsgxc
GitHub
kbutz/tempread
Flask API wrapper for RaspberryPI3 + DS18B20 temp sensor for temp logging - kbutz/tempread
[Beginner] [Postgres Query] Filter data for a given day (timezone aware datetime) from postgres directly
I want to filter all data for the following day (which is timezone aware).
**Assumptions:**
* server data is in a specific timezone
* client query is coming from different timezone
**My current approach is:**
date = received_date_timezone_aware # any time of that day
lower = date.replace(hour=0,minute=0,second=0)
upper = lower + datetime.timedelta(day=1)
data = Model.objects.filter(date__gte=lower, date__lt=upper)
**Question**
Is there a direct solution to this using django orm or raw query?
I wanted to know if there is a better alternative which can save me a few lines of code of manipulating the datetime stuffs.
/r/django
https://redd.it/amqheh
I want to filter all data for the following day (which is timezone aware).
**Assumptions:**
* server data is in a specific timezone
* client query is coming from different timezone
**My current approach is:**
date = received_date_timezone_aware # any time of that day
lower = date.replace(hour=0,minute=0,second=0)
upper = lower + datetime.timedelta(day=1)
data = Model.objects.filter(date__gte=lower, date__lt=upper)
**Question**
Is there a direct solution to this using django orm or raw query?
I wanted to know if there is a better alternative which can save me a few lines of code of manipulating the datetime stuffs.
/r/django
https://redd.it/amqheh
reddit
r/django - [Beginner] [Postgres Query] Filter data for a given day (timezone aware datetime) from postgres directly
0 votes and 3 comments so far on Reddit
Re-Apply Migrations?
I am using django-cookiecutter and want to know how to run all the migrations again if I want to drop the database? Is there a way or would I have to start from scratch? I would assume there is a way since it would have to run when I move it to Production?
/r/django
https://redd.it/amuj78
I am using django-cookiecutter and want to know how to run all the migrations again if I want to drop the database? Is there a way or would I have to start from scratch? I would assume there is a way since it would have to run when I move it to Production?
/r/django
https://redd.it/amuj78
reddit
r/django - Re-Apply Migrations?
3 votes and 3 comments so far on Reddit
Not Found: /favicon.ico?
Trying to just return plain text because Ive just started a django project but im still greeted with the django page and not the plain text. in the command prompt i have errors like these, i followed the tutorial exactly so how do i fix this?
/r/django
https://redd.it/amvcs0
Trying to just return plain text because Ive just started a django project but im still greeted with the django page and not the plain text. in the command prompt i have errors like these, i followed the tutorial exactly so how do i fix this?
/r/django
https://redd.it/amvcs0
reddit
r/django - Not Found: /favicon.ico?
1 vote and 2 comments so far on Reddit
[AF] why am i all of a sudden getting this error? Method Not Allowed The method is not allowed for the requested URL.
Hi all,
I am working on two machines. Mac and Linux. I work on linux during the day, do all my work, head home at night and continue on mac.
I use docker-compose to allow this to happen and I've had little to no troubles all this time.
I finalised another conversion script yesterday on the mac, works a treat. CSV files upload,get converted, life is good. I've made many of these scripts using my workflow.
This morning though I've loaded the same script on the linux machine and am getting `Method Not Allowed. The method is not allowed for the requested URL.`
I have never had this before. I'm simply using:
<form method=POST enctype=multipart/form-data action='convertData'>
<input type='file' name='file' class='UCSV_FileInput'></input>
<button type='submit' value='Upload'>Submit</button>
</form>
and on my views.py I'm doing this kind of thing:
@myroute.route('/convertData', methods=['GET', 'POST'])
def convertData():
if request.method == 'POST':
# all the upload stuff is here
I literally have dozens of these,
/r/flask
https://redd.it/amvbna
Hi all,
I am working on two machines. Mac and Linux. I work on linux during the day, do all my work, head home at night and continue on mac.
I use docker-compose to allow this to happen and I've had little to no troubles all this time.
I finalised another conversion script yesterday on the mac, works a treat. CSV files upload,get converted, life is good. I've made many of these scripts using my workflow.
This morning though I've loaded the same script on the linux machine and am getting `Method Not Allowed. The method is not allowed for the requested URL.`
I have never had this before. I'm simply using:
<form method=POST enctype=multipart/form-data action='convertData'>
<input type='file' name='file' class='UCSV_FileInput'></input>
<button type='submit' value='Upload'>Submit</button>
</form>
and on my views.py I'm doing this kind of thing:
@myroute.route('/convertData', methods=['GET', 'POST'])
def convertData():
if request.method == 'POST':
# all the upload stuff is here
I literally have dozens of these,
/r/flask
https://redd.it/amvbna
reddit
r/flask - [AF] why am i all of a sudden getting this error? Method Not Allowed The method is not allowed for the requested URL.
1 vote and 9 comments so far on Reddit
My "Python for Data Science" video series!
Finally, I am done with the recording of my "Python for Data Science" video series! This 32-part video series provides a brief yet comprehensive introduction of the basic Python libraries required for Data Science to the beginners.
[https://indianpythonista.tech/pyfds](https://indianpythonista.tech/pyfds)
\#python #data\_science #numpy #matplotlib #pandas #tutorial #beginners
/r/Python
https://redd.it/amyds2
Finally, I am done with the recording of my "Python for Data Science" video series! This 32-part video series provides a brief yet comprehensive introduction of the basic Python libraries required for Data Science to the beginners.
[https://indianpythonista.tech/pyfds](https://indianpythonista.tech/pyfds)
\#python #data\_science #numpy #matplotlib #pandas #tutorial #beginners
/r/Python
https://redd.it/amyds2
Indian Pythonista
Python For Data Science
A brief yet comprehensive introduction of the basic Python libraries required for Data Science, for the beginners.