Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/1303x3j
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/1303x3j
Reddit
r/Python on Reddit: Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Posted by u/Im__Joseph - 1 vote and no comments
How long did it take you to code by second nature?
I once read that programmers will get to a place where they’ll be able to open an IDE and start working on a project at the same speed in which it takes a person to open excel and start building a table, how long did it take you to get there?
I am at that point using SQL, where I can open an IDE and starting building what I need without thinking too much but it’s hard to imagine I’ll ever get there with Python. I know there’s different packages, modules, and etc. but excluding the complex things, how long did it take you to get to a point where you could open an IDE and starting putting code together like it’s second nature?
/r/Python
https://redd.it/13084ts
I once read that programmers will get to a place where they’ll be able to open an IDE and start working on a project at the same speed in which it takes a person to open excel and start building a table, how long did it take you to get there?
I am at that point using SQL, where I can open an IDE and starting building what I need without thinking too much but it’s hard to imagine I’ll ever get there with Python. I know there’s different packages, modules, and etc. but excluding the complex things, how long did it take you to get to a point where you could open an IDE and starting putting code together like it’s second nature?
/r/Python
https://redd.it/13084ts
Reddit
r/Python on Reddit: How long did it take you to code by second nature?
Posted by u/MisterPico33 - 6 votes and 13 comments
Python + containerd? Who might be interested?
There is currently only one poorly maintained (if at all) Python binding for the containerd API:
https://pypi.org/project/contain...
I'd rather not build on it.
I would like to have a similar convenient wrapper for containerd just like the Docker Engine API: https://pypi.org/project/docker/
Who else would be interested in such a package?
/r/Python
https://redd.it/130dev3
There is currently only one poorly maintained (if at all) Python binding for the containerd API:
https://pypi.org/project/contain...
I'd rather not build on it.
I would like to have a similar convenient wrapper for containerd just like the Docker Engine API: https://pypi.org/project/docker/
Who else would be interested in such a package?
/r/Python
https://redd.it/130dev3
PyPI
containerd
containerd API for Python
Help me JWT token
I’m using Jwt in my flask app and I set the refresh_token to be 60mins and everything is all good but after the time is over and I’m still using same token it throws internal server error and have done all I could to catch the error and return token expire to client but nothing works out even chatgpt can’t help
/r/flask
https://redd.it/1306mfl
I’m using Jwt in my flask app and I set the refresh_token to be 60mins and everything is all good but after the time is over and I’m still using same token it throws internal server error and have done all I could to catch the error and return token expire to client but nothing works out even chatgpt can’t help
/r/flask
https://redd.it/1306mfl
Reddit
r/flask on Reddit: Help me JWT token
Posted by u/Abiorh - 3 votes and 11 comments
D Simple Questions Thread
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the title.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/12wcr8i
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the title.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/12wcr8i
Reddit
r/MachineLearning on Reddit: [D] Simple Questions Thread
Posted by u/AutoModerator - 22 votes and 14 comments
GitHub - csgoh/roadmapper: Roadmapper - A Roadmap as Code (Rac) python library. Generate professional roadmap diagram using python code.
https://github.com/csgoh/roadmapper
/r/Python
https://redd.it/130hpn4
https://github.com/csgoh/roadmapper
/r/Python
https://redd.it/130hpn4
GitHub
GitHub - csgoh/roadmapper: Roadmapper - A Roadmap as Code (Rac) python library. Generate professional roadmap diagram using python…
Roadmapper - A Roadmap as Code (Rac) python library. Generate professional roadmap diagram using python code. - csgoh/roadmapper
[P] Godot+RWKV standalone prebuilt binary (ubuntu/nvidia)
# RWKV+Godot
## What
### Godot
The Godot Engine is a free, all-in-one, cross-platform game engine that makes it easy for you to create 2D and 3D games.
### RWKV
RWKV is an RNN with Transformer-level LLM performance, which can also be directly trained like a GPT transformer (parallelizable). And it's 100% attention-free. You only need the hidden state at position t to compute the state at position t+1.
### RWKV-CPP-CUDA
RWKV-CPP-CUDA is a c++/cuda library I created that implements the RWKV inference code in pure cuda. This allows for compiled code with no torch or python dependencies, while allowing the full use of GPU acceleration.
The code implements 8bit inference, allowing for quick and light inference.
### Godot+RWKV
Godot+RWKV is a Godot module that I developed using RWKV-CPP-CUDA, and allows the development of games and programs using RWKV to be developed and distributed using godot, without the need to install complex environments and libraries, for both developers and consumers.
## Why
* I felt I could achieve it
* Its something thats needed to advance the use of AI in consumer devices
* The lols
* Attention, because I didnt get much growing up, and RWKV has none
* ADHD hyperfocus
## Where
[Module Repository](https://github.com/harrisonvanderbyl/godot-rwkv)
[RWKV standalone c++/cuda library](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda)
[Prebuilt Godot Executable](https://github.com/harrisonvanderbyl/godot-rwkv/actions/runs/4816463552)
[Model Converter](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda/tree/main/converter)
[Tokenizer Files](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda/tree/main/include/rwkv/tokenizer/vocab)
[Unconverted Models : 14/7/3/1.5B finetuned
/r/MachineLearning
https://redd.it/130e31o
# RWKV+Godot
## What
### Godot
The Godot Engine is a free, all-in-one, cross-platform game engine that makes it easy for you to create 2D and 3D games.
### RWKV
RWKV is an RNN with Transformer-level LLM performance, which can also be directly trained like a GPT transformer (parallelizable). And it's 100% attention-free. You only need the hidden state at position t to compute the state at position t+1.
### RWKV-CPP-CUDA
RWKV-CPP-CUDA is a c++/cuda library I created that implements the RWKV inference code in pure cuda. This allows for compiled code with no torch or python dependencies, while allowing the full use of GPU acceleration.
The code implements 8bit inference, allowing for quick and light inference.
### Godot+RWKV
Godot+RWKV is a Godot module that I developed using RWKV-CPP-CUDA, and allows the development of games and programs using RWKV to be developed and distributed using godot, without the need to install complex environments and libraries, for both developers and consumers.
## Why
* I felt I could achieve it
* Its something thats needed to advance the use of AI in consumer devices
* The lols
* Attention, because I didnt get much growing up, and RWKV has none
* ADHD hyperfocus
## Where
[Module Repository](https://github.com/harrisonvanderbyl/godot-rwkv)
[RWKV standalone c++/cuda library](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda)
[Prebuilt Godot Executable](https://github.com/harrisonvanderbyl/godot-rwkv/actions/runs/4816463552)
[Model Converter](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda/tree/main/converter)
[Tokenizer Files](https://github.com/harrisonvanderbyl/rwkv-cpp-cuda/tree/main/include/rwkv/tokenizer/vocab)
[Unconverted Models : 14/7/3/1.5B finetuned
/r/MachineLearning
https://redd.it/130e31o
GitHub
GitHub - harrisonvanderbyl/godot-rwkv: RWKV godot interface module
RWKV godot interface module. Contribute to harrisonvanderbyl/godot-rwkv development by creating an account on GitHub.
MicroPython v1.20.0
https://github.com/micropython/micropython/releases/tag/v1.20.0
/r/Python
https://redd.it/130tbjh
https://github.com/micropython/micropython/releases/tag/v1.20.0
/r/Python
https://redd.it/130tbjh
GitHub
Release New mip package manager, compressed type structs and Pico W support · micropython/micropython
This release of MicroPython introduces a new lightweight package manager called mip, which uses a custom protocol to query and install packages that is optimised for embedded systems. It is intend...
NiceGUI 1.2.10 with improved bindings, ui.grid, ui.chat_message and more
### New features and enhancements
- Add [autocomplete](https://nicegui.io/documentation/input#autocompletion) for `ui.input`
- Allow binding dictionaries
- Add binding methods for disableable elements
- Introduce [`ui.grid`](https://nicegui.io/documentation/grid)
- Introduce [`ui.chat_message`](https://nicegui.io/documentation/chat_message)
- Support [`ui.refreshable`](https://nicegui.io/documentation/refreshable) with async functions
- Style blockquotes in [`ui.markdown`](https://nicegui.io/documentation/markdown) elements
- Introduce [`seek`](https://nicegui.io/documentation/video#video_start_position) method for `ui.video`
- Support [base64](https://nicegui.io/documentation/run#base64_favicon) and [SVG](https://nicegui.io/documentation/run#svg_favicon) favicons
- Add `mount_path` parameter to `ui.run_with`
### Bugfixes
- Fix layout issue with [`ui.refreshable`](https://nicegui.io/documentation/refreshable)
- Avoid memory leak with [`ui.refreshable`](https://nicegui.io/documentation/refreshable)
- Fix new event registrations not being sent to the client
### Documentation
- Allow choosing from different elements for the [live demo](https://nicegui.io/documentation#try_styling_nicegui_elements_)
- Improve menu accessibility on mobile devices
Thanks for all the great contributions. It is a pleasure working with you.
/r/Python
https://redd.it/130toef
### New features and enhancements
- Add [autocomplete](https://nicegui.io/documentation/input#autocompletion) for `ui.input`
- Allow binding dictionaries
- Add binding methods for disableable elements
- Introduce [`ui.grid`](https://nicegui.io/documentation/grid)
- Introduce [`ui.chat_message`](https://nicegui.io/documentation/chat_message)
- Support [`ui.refreshable`](https://nicegui.io/documentation/refreshable) with async functions
- Style blockquotes in [`ui.markdown`](https://nicegui.io/documentation/markdown) elements
- Introduce [`seek`](https://nicegui.io/documentation/video#video_start_position) method for `ui.video`
- Support [base64](https://nicegui.io/documentation/run#base64_favicon) and [SVG](https://nicegui.io/documentation/run#svg_favicon) favicons
- Add `mount_path` parameter to `ui.run_with`
### Bugfixes
- Fix layout issue with [`ui.refreshable`](https://nicegui.io/documentation/refreshable)
- Avoid memory leak with [`ui.refreshable`](https://nicegui.io/documentation/refreshable)
- Fix new event registrations not being sent to the client
### Documentation
- Allow choosing from different elements for the [live demo](https://nicegui.io/documentation#try_styling_nicegui_elements_)
- Improve menu accessibility on mobile devices
Thanks for all the great contributions. It is a pleasure working with you.
/r/Python
https://redd.it/130toef
nicegui.io
ui.refreshable | NiceGUI
NiceGUI is an easy-to-use, Python-based UI framework, which shows up in your web browser. You can create buttons, dialogs, Markdown, 3D scenes, plots and much more.
Wagtail snippets/template tags help
Hi, i'm working on my first Wagtail project, currently developing snippets but looking for some help.
I have a header snippet section where I can add several headers which can be used by the home page. At the moment the page is displaying all the headers, but I want it to just show the selected header.
I presume it because i am doing Headers.objects.all() in my custom tag but how do I write this in Wagtail to only display the selected header? Sorry, it's been a while since I wrote any Django as been working on Frontend learning the last couple of months!
Here is my code. The tag code is only relevant, but i'll include everything related, my snippets work correctly, but obviously I don't want to be returning all my header objects.
Just like to add, I am finding Wagtail awesome but almost more confusing than Django.
Snippet
@register_snippet
class Header(models.Model):
logo = models.ForeignKey(
'wagtailimages.Image',
null=True,
/r/djangolearning
https://redd.it/13177hq
Hi, i'm working on my first Wagtail project, currently developing snippets but looking for some help.
I have a header snippet section where I can add several headers which can be used by the home page. At the moment the page is displaying all the headers, but I want it to just show the selected header.
I presume it because i am doing Headers.objects.all() in my custom tag but how do I write this in Wagtail to only display the selected header? Sorry, it's been a while since I wrote any Django as been working on Frontend learning the last couple of months!
Here is my code. The tag code is only relevant, but i'll include everything related, my snippets work correctly, but obviously I don't want to be returning all my header objects.
Just like to add, I am finding Wagtail awesome but almost more confusing than Django.
Snippet
@register_snippet
class Header(models.Model):
logo = models.ForeignKey(
'wagtailimages.Image',
null=True,
/r/djangolearning
https://redd.it/13177hq
Reddit
r/djangolearning on Reddit: Wagtail snippets/template tags help
Posted by u/rob8624 - 1 vote and 1 comment
How to test redirection In Flask with Python unittest?
hello i have flask function create\_product, how i can in unit test testing redirection? i want test if product is created user is send to this site with that line of code return redirect(url\_for('products.product\_page\_preview', product\_id=new\_product.id))
I need add test to my test case.
PLEASE HELP TO ME
@products.route('/create-product', methods=['GET', 'POST'])
@login_required
def create_product():
form = ProductForm()
if form.validate_on_submit():
product_data = {
'product_name': request.form.get('product_name'),
'price': request.form.get('price'),
'discount': request.form.get('discount'),
'stock': request.form.get('stock'),
'size': float(request.form.get('size')),
/r/flask
https://redd.it/13108zl
hello i have flask function create\_product, how i can in unit test testing redirection? i want test if product is created user is send to this site with that line of code return redirect(url\_for('products.product\_page\_preview', product\_id=new\_product.id))
I need add test to my test case.
PLEASE HELP TO ME
@products.route('/create-product', methods=['GET', 'POST'])
@login_required
def create_product():
form = ProductForm()
if form.validate_on_submit():
product_data = {
'product_name': request.form.get('product_name'),
'price': request.form.get('price'),
'discount': request.form.get('discount'),
'stock': request.form.get('stock'),
'size': float(request.form.get('size')),
/r/flask
https://redd.it/13108zl
Python resume projects?
I am by no means good enough at python to be looking for a job in it, but felt curious about what employers like to see, and maybe try to do one of these projects to try and learn some new things.
/r/Python
https://redd.it/13187gs
I am by no means good enough at python to be looking for a job in it, but felt curious about what employers like to see, and maybe try to do one of these projects to try and learn some new things.
/r/Python
https://redd.it/13187gs
Reddit
r/Python on Reddit: Python resume projects?
Posted by u/sloop35 - 7 votes and 8 comments
Open-source collaboration
I wanted to introduce myself and share a new open-source project I've been working on called Apollo. It's an LLM aggregation library for Python that simplifies the process of working with APIs, AI models, and Django.
I'm currently adding support for a full API to manage in-app integrations, user subscription management, and preferences, and would love to get feedback on our SDK.
By the way, if you're interested in contributing to the project, we're always looking for new contributors!
/r/Python
https://redd.it/131bqkj
I wanted to introduce myself and share a new open-source project I've been working on called Apollo. It's an LLM aggregation library for Python that simplifies the process of working with APIs, AI models, and Django.
I'm currently adding support for a full API to manage in-app integrations, user subscription management, and preferences, and would love to get feedback on our SDK.
By the way, if you're interested in contributing to the project, we're always looking for new contributors!
/r/Python
https://redd.it/131bqkj
GitHub
GitHub - apolloapi/apolloapi: LLMOps framework for model management and automation through integrating any provider and syncing…
LLMOps framework for model management and automation through integrating any provider and syncing data under one API. - GitHub - apolloapi/apolloapi: LLMOps framework for model management and autom...
I'm trying to have all my pages use one html file for a navbar but I cant get it to load in
I tried using javascript to load it in from a static file
$(function(){
$("#navbar").load("/navbar");
});
I also tried it by loading it as a seprate route and trying to reference it that way.
does anyone know if there is a way to get this working, through python or javascript?
/r/flask
https://redd.it/130x3cx
I tried using javascript to load it in from a static file
$(function(){
$("#navbar").load("/navbar");
});
I also tried it by loading it as a seprate route and trying to reference it that way.
does anyone know if there is a way to get this working, through python or javascript?
/r/flask
https://redd.it/130x3cx
Reddit
r/flask on Reddit: I'm trying to have all my pages use one html file for a navbar but I cant get it to load in
Posted by u/blud97 - 1 vote and 6 comments
[P] UnpromptedControl: Noprompt ControlNet Image Restoration/Object removal, GitHub link in comments
https://redd.it/13154na
@pythondaily
https://redd.it/13154na
@pythondaily
Reddit
r/MachineLearning on Reddit: [P] UnpromptedControl: Noprompt ControlNet Image Restoration/Object removal, GitHub link in comments
Posted by u/vijish_madhavan - No votes and 5 comments
My first website I have built and deployed as Django newbie 🎊
http://phevab1.pythonanywhere.com/index.html
/r/django
https://redd.it/130odlk
http://phevab1.pythonanywhere.com/index.html
/r/django
https://redd.it/130odlk
Reddit
r/django on Reddit: My first website I have built and deployed as Django newbie 🎊
Posted by u/NoHistorian4672 - 39 votes and 30 comments
Cooldown timer or other query limit?
I have a fairly complex web app that needs to run some fairly heavy queries.
1. to our project management system to get all the users available and what projects they work in
2. ldap to our dc active directory to see whether they are allowed to work on these projects
3. ldap to our dc active directory to make changes to what they are allowed to work on
I do not think this will be used multiple times a day even, but it will be accessed by multiple people, so there is a chance a bunch of people might compound these queries and stall our dc and project management system. Also projects ramp up so they may be making really large modifications or really tiny ones, 1 person or 100 people.
Is there some sort of backend server level cool down timer I could implement just in case that might make them wait a bit longer while an active query is running, maybe space the queries out?
I have refactored these queries to about as minimal as they can be but it's just the fact that we need to know that these 400ish people can be added, and we need to know that these
/r/flask
https://redd.it/1305g87
I have a fairly complex web app that needs to run some fairly heavy queries.
1. to our project management system to get all the users available and what projects they work in
2. ldap to our dc active directory to see whether they are allowed to work on these projects
3. ldap to our dc active directory to make changes to what they are allowed to work on
I do not think this will be used multiple times a day even, but it will be accessed by multiple people, so there is a chance a bunch of people might compound these queries and stall our dc and project management system. Also projects ramp up so they may be making really large modifications or really tiny ones, 1 person or 100 people.
Is there some sort of backend server level cool down timer I could implement just in case that might make them wait a bit longer while an active query is running, maybe space the queries out?
I have refactored these queries to about as minimal as they can be but it's just the fact that we need to know that these 400ish people can be added, and we need to know that these
/r/flask
https://redd.it/1305g87
Reddit
r/flask on Reddit: Cooldown timer or other query limit?
Posted by u/cahmyafahm - 3 votes and 10 comments
P Best practices for large models on Docker
How would you deploy a large model from a git repo when deploying on docker?
The model gets downloaded in the cache when you run it for the first time (similar to a transformer library like sentenceTransform).
For now, I have done a
however, what would be the best practice for this?
Should the model be downloaded when doing the "build" or the first "run"?
/r/MachineLearning
https://redd.it/131m148
How would you deploy a large model from a git repo when deploying on docker?
The model gets downloaded in the cache when you run it for the first time (similar to a transformer library like sentenceTransform).
For now, I have done a
RUN python -c "funcToDownloadModels()" however, what would be the best practice for this?
Should the model be downloaded when doing the "build" or the first "run"?
/r/MachineLearning
https://redd.it/131m148
Reddit
r/MachineLearning on Reddit: [P] Best practices for large models on Docker
Posted by u/GustaMusto - 7 votes and 2 comments
Introducing Socon: Socon enables you to create a generic framework structure for all your different projects.
I'm a test and validation engineer and I'm working a lot with different projects that requires to share common scripts/components.
The idea behind the framework is to help people and/or organizations to develop their own fast and reliable framework for their different projects. We often spend too much time creating scripts for a single project. Or spend too much time trying to create generic scripts for several projects. Usually, this ends up in hundreds of scripts and is very time-consuming.
Couple months ago I decided to create Socon. Socon has been designed to simplify all the above. Socon works with commands. Socon will let you define common commands that can be shared across projects. Each project can either write their own commands, or override a common command to change its behavior by adding or removing functionalities.
Socon will also let you develop your own managers and hooks to empower your framework. You are also free to develop your own plugins to share across your company, with friends or with the world.
I have been working alone for quite some time now and I would really appreciate feedback and help. The framework can save a lot of time for people working in devops or
/r/Python
https://redd.it/131lfa4
I'm a test and validation engineer and I'm working a lot with different projects that requires to share common scripts/components.
The idea behind the framework is to help people and/or organizations to develop their own fast and reliable framework for their different projects. We often spend too much time creating scripts for a single project. Or spend too much time trying to create generic scripts for several projects. Usually, this ends up in hundreds of scripts and is very time-consuming.
Couple months ago I decided to create Socon. Socon has been designed to simplify all the above. Socon works with commands. Socon will let you define common commands that can be shared across projects. Each project can either write their own commands, or override a common command to change its behavior by adding or removing functionalities.
Socon will also let you develop your own managers and hooks to empower your framework. You are also free to develop your own plugins to share across your company, with friends or with the world.
I have been working alone for quite some time now and I would really appreciate feedback and help. The framework can save a lot of time for people working in devops or
/r/Python
https://redd.it/131lfa4
Reddit
r/Python on Reddit: Introducing Socon: Socon enables you to create a generic framework structure for all your different projects.
Posted by u/CyberEng - 68 votes and 10 comments
Button with a double function
I made the following models file:
class Product(models.Model):
...
downloads = models.IntegerField(default=0)
And I would like to increase it every time the following link is clicked:
<a href="{{ product.pdf.url }}" download></a>
Any suggestion on how to do that?
/r/djangolearning
https://redd.it/1316obj
I made the following models file:
class Product(models.Model):
...
downloads = models.IntegerField(default=0)
And I would like to increase it every time the following link is clicked:
<a href="{{ product.pdf.url }}" download></a>
Any suggestion on how to do that?
/r/djangolearning
https://redd.it/1316obj
Reddit
r/djangolearning on Reddit: Button with a double function
Posted by u/Fit-Refrigerator495 - 4 votes and 2 comments
Why is poetry such a mess?
I really wanted to like poetry. But in my experience, you run into trouble with almost any installation. Especially, when it comes to complex stuff like pytorch, etc. I spent hours debugging its build problems already. But I still don't understand why it is so damn brittle.
How can people recommend this tool as an alternative to conda? I really don't understand.
/r/Python
https://redd.it/131snt9
I really wanted to like poetry. But in my experience, you run into trouble with almost any installation. Especially, when it comes to complex stuff like pytorch, etc. I spent hours debugging its build problems already. But I still don't understand why it is so damn brittle.
How can people recommend this tool as an alternative to conda? I really don't understand.
/r/Python
https://redd.it/131snt9
Reddit
r/Python on Reddit: Why is poetry such a mess?
Posted by u/CodingButStillAlive - 29 votes and 56 comments