Introducing Great Tables
Great Tables is a *great* new Python package that simplifies the process of making tabular data presentable for any sort of publication task. With Great Tables, you can easily use data from a Pandas or Polars DataFrame and turn it into a beautiful table that can be included in a notebook, a Quarto document, or exported as HTML.
We've been working hard on making this package as useful as possible, and we're excited to share it with you. The package (v0.1.0) is available on PyPI and can be installed with:
The documentation site at https://posit-dev.github.io/great-tables/articles/intro.html has a *Get Started* tutorial that will walk you through the basics of using the package. The API documentation is also available on the site and it is chock full of examples that'll show you how to use the various features of the package.
We want Great Tables to be really useful for your work and so we really value any and all feedback. Send us a note in https://github.com/posit-dev/great-tables/issues or https://github.com/posit-dev/great-tables/discussions anytime you like!
​
https://preview.redd.it/vwuu06h5ui4c1.png?width=988&format=png&auto=webp&s=50e381e692bc16775eb1f6a4f6de309d75048139
\-------
This was originally posted by Rich Iannone over at LinkedIn. He asked me to post this here.
/r/Python
https://redd.it/18biyrh
Great Tables is a *great* new Python package that simplifies the process of making tabular data presentable for any sort of publication task. With Great Tables, you can easily use data from a Pandas or Polars DataFrame and turn it into a beautiful table that can be included in a notebook, a Quarto document, or exported as HTML.
We've been working hard on making this package as useful as possible, and we're excited to share it with you. The package (v0.1.0) is available on PyPI and can be installed with:
pip install great_tables The documentation site at https://posit-dev.github.io/great-tables/articles/intro.html has a *Get Started* tutorial that will walk you through the basics of using the package. The API documentation is also available on the site and it is chock full of examples that'll show you how to use the various features of the package.
We want Great Tables to be really useful for your work and so we really value any and all feedback. Send us a note in https://github.com/posit-dev/great-tables/issues or https://github.com/posit-dev/great-tables/discussions anytime you like!
​
https://preview.redd.it/vwuu06h5ui4c1.png?width=988&format=png&auto=webp&s=50e381e692bc16775eb1f6a4f6de309d75048139
\-------
This was originally posted by Rich Iannone over at LinkedIn. He asked me to post this here.
/r/Python
https://redd.it/18biyrh
GitHub
posit-dev/great-tables
Make awesome display tables using Python. Contribute to posit-dev/great-tables development by creating an account on GitHub.
OpenCV 5, Support Non-Profit Open Source CV & AI
https://www.indiegogo.com/projects/opencv-5-support-non-profit-open-source-cv-ai#/
/r/Python
https://redd.it/18brttk
https://www.indiegogo.com/projects/opencv-5-support-non-profit-open-source-cv-ai#/
/r/Python
https://redd.it/18brttk
Indiegogo
OpenCV 5, Support Non-Profit Open Source CV & AI
The biggest ever release of the world's largest computer vision library. Support Open Source.
Can python/ipython be used to replace Bash?
I am a heavy Bash user, and curiosity has me trying to see if it's feasible to move completely to Python.
chsh -s $(which ipython3)
exec ipython3
I'm just taking my first baby steps, but how much can I expect it to act like a normal shell like in
(I did manually add ipython3 there, but unsure if that did anything.)
Since
If I try to put
TerminalIPythonApp WARNING | Unknown error in handling startup files:
File ~/.ipython/profiledefault/startup/startuppagefault.py:6
!ipython3 --profile pagefault
^
SyntaxError: invalid syntax
What is the proper way to ensure my custom profile gets loaded by default?
Finally, I'm having a lot of trouble with my custom layout. Would some of you mind helping me cheat my way through by sharing your custom
/r/IPython
https://redd.it/18bniyw
I am a heavy Bash user, and curiosity has me trying to see if it's feasible to move completely to Python.
chsh -s $(which ipython3)
exec ipython3
I'm just taking my first baby steps, but how much can I expect it to act like a normal shell like in
/etc/shells?(I did manually add ipython3 there, but unsure if that did anything.)
Since
.bashrc is no longer being read, I probably need a .ipythonrc or something, to setup my environment, but I don't know how to make sure it's read when a new terminal opens. Is there a Python equivalent to /etc/profile, /etc/rc.local etc... ?If I try to put
!ipython3 --profile=pagefault into ~/.ipython/profile_default/startup/startup_default.py I get:TerminalIPythonApp WARNING | Unknown error in handling startup files:
File ~/.ipython/profiledefault/startup/startuppagefault.py:6
!ipython3 --profile pagefault
^
SyntaxError: invalid syntax
What is the proper way to ensure my custom profile gets loaded by default?
Finally, I'm having a lot of trouble with my custom layout. Would some of you mind helping me cheat my way through by sharing your custom
ipython_config.py scripts?/r/IPython
https://redd.it/18bniyw
Reddit
From the IPython community on Reddit
Explore this post and more from the IPython community
Deciding which functions/routes should be async
I have an application powered by FastAPI with HTTP routes that call different internal functions, celery tasks, 3rd party APIs, and DB queries.
How should I decide what should be async? Also how should i manage the different normal/async functions? For example, I'm using Pymongo & Motor, should I make seperate classes for each?
/r/Python
https://redd.it/18c679a
I have an application powered by FastAPI with HTTP routes that call different internal functions, celery tasks, 3rd party APIs, and DB queries.
How should I decide what should be async? Also how should i manage the different normal/async functions? For example, I'm using Pymongo & Motor, should I make seperate classes for each?
/r/Python
https://redd.it/18c679a
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How to Deploy a Python Flask app with Heroku
https://blog.appsignal.com/2023/12/06/how-to-deploy-a-python-flask-app-with-heroku.html
/r/flask
https://redd.it/18c5qg0
https://blog.appsignal.com/2023/12/06/how-to-deploy-a-python-flask-app-with-heroku.html
/r/flask
https://redd.it/18c5qg0
AppSignal Blog
How to Deploy a Python Flask app with Heroku | AppSignal Blog
Let's build a simple Flask app that is primed and ready to deploy to Heroku.
lockfiles for hatch projects
I'm a huge fan of using hatch to manage my Python projects. It lets me define my projects with a single
For all my projects I found myself regenerating manual lock files using complex shell commands with pip-compile to get a reproducible environments across devices using a custom
I came up with hatch-pip-compile \- it's a hatch plugin that connects your hatch-managed virtual environment to a lockfile managed with pip-compile. The plugin detects whether your environment or lockfile is out to date and automatically syncs them when needed - and it's fast!
It's completely configurable and easy to get started. After adding the last few features and settling on a stable configuration I finally feel like it's ready for a wider audience. I'm extremely proud of how it turned out and I'm excited to share it with the hatch-world. I hope you find it useful for your Python projects!
TL;DR check
/r/Python
https://redd.it/18cakmd
I'm a huge fan of using hatch to manage my Python projects. It lets me define my projects with a single
pyproject.toml file and define my extra environments and scripts (i.e testing / linting / docs). One big thing it's missing though is an integration with lockfiles.For all my projects I found myself regenerating manual lock files using complex shell commands with pip-compile to get a reproducible environments across devices using a custom
pre-install-command. I finally decided that instead of hacking together the same solution on all my projects I would build a plugin that handles this complexity for me.I came up with hatch-pip-compile \- it's a hatch plugin that connects your hatch-managed virtual environment to a lockfile managed with pip-compile. The plugin detects whether your environment or lockfile is out to date and automatically syncs them when needed - and it's fast!
It's completely configurable and easy to get started. After adding the last few features and settling on a stable configuration I finally feel like it's ready for a wider audience. I'm extremely proud of how it turned out and I'm excited to share it with the hatch-world. I hope you find it useful for your Python projects!
TL;DR check
/r/Python
https://redd.it/18cakmd
GitHub
GitHub - pypa/hatch: Modern, extensible Python project management
Modern, extensible Python project management. Contribute to pypa/hatch development by creating an account on GitHub.
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
# Weekly Thread: Professional Use, Jobs, and Education 🏢
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
---
## How it Works:
1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.
---
## Guidelines:
- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.
---
## Example Topics:
1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?
---
Let's help each other grow in our careers and education. Happy discussing! 🌟
/r/Python
https://redd.it/18ci6c7
# Weekly Thread: Professional Use, Jobs, and Education 🏢
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
---
## How it Works:
1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.
---
## Guidelines:
- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.
---
## Example Topics:
1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?
---
Let's help each other grow in our careers and education. Happy discussing! 🌟
/r/Python
https://redd.it/18ci6c7
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Pytest to Test Python Code - Fixtures, Parametrization, Markers, and more
https://geekpython.in/understanding-pytest-to-test-python-code
/r/Python
https://redd.it/18c7th3
https://geekpython.in/understanding-pytest-to-test-python-code
/r/Python
https://redd.it/18c7th3
GeekPython - Python Programming Tutorials
How to Use Pytest - Fixtures, Parametrization, Markers, and more...
In this article, we'll look at how to use the pytest library to create small, concise test cases for your code.
Need help with first flask project ( collage management system)
Hey people of flask . I am new here as well as to flask , i am doing that flask project with my mates for a college assignment . the project is a "college management system" i am doing the oop with pure python , someone is doing the front-end with html and css , and there is someone doing flask and handling database (we are using sqlachemy and sqlite) . for me i am doing classes for students,profs,prof-assts,courses, and creating relations between them. so there will be the courses with their labs and the prof teaching it and assistant giving the lab. when a student enrolls a course he will be added to list of students who enrolled the course, to list of students the prof is teaching and this list contains dictionaries each with the course and students enrolled it ,same for the assistant , and finally the student will have a list of courses they enrolled . as for oop i guess i did a pretty solid structure and relations . the front-end is pretty good also, now when it comes to flask and data base how can we connect those together . when we take
/r/flask
https://redd.it/18cfkm9
Hey people of flask . I am new here as well as to flask , i am doing that flask project with my mates for a college assignment . the project is a "college management system" i am doing the oop with pure python , someone is doing the front-end with html and css , and there is someone doing flask and handling database (we are using sqlachemy and sqlite) . for me i am doing classes for students,profs,prof-assts,courses, and creating relations between them. so there will be the courses with their labs and the prof teaching it and assistant giving the lab. when a student enrolls a course he will be added to list of students who enrolled the course, to list of students the prof is teaching and this list contains dictionaries each with the course and students enrolled it ,same for the assistant , and finally the student will have a list of courses they enrolled . as for oop i guess i did a pretty solid structure and relations . the front-end is pretty good also, now when it comes to flask and data base how can we connect those together . when we take
/r/flask
https://redd.it/18cfkm9
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Simple and easy documentation Builder
Hello redditors,
I've been working on an open-source project called BrowseDocs, designed to assist open-source developers in documenting their libraries and tools with greater intuitiveness. The goal is to provide developers with an integrated and enhanced user experience while reading documentation.
​
Some of the current features include:
Generate documentation pages from markdown files (chose .md because most of the developers are familiar).
Create multi-version, multi-paged documentation with a click of button.
dark/light themes included by default.
A quick search. (currently just a simple search)
A separate about page for every project.
Rich text editor for developers to write blogs and tutorials.
Now the project itself is in its first iteration, which is why I look forward for your feedback. I'd like to know what features you'd like to see in the upcoming releases and what features you'd like to be removed from the project. I look forward to your responses.
PS: I am still working on enhancing the UI of the landing page, any heads up would be greatly appreciated
​
You can visit the project at https://browsedocs.com
Github repo for the project: https://github.com/PaulleDemon/BrowseDocs
​
Thanks,
Have a great day ahead.
​
/r/Python
https://redd.it/18c8uqu
Hello redditors,
I've been working on an open-source project called BrowseDocs, designed to assist open-source developers in documenting their libraries and tools with greater intuitiveness. The goal is to provide developers with an integrated and enhanced user experience while reading documentation.
​
Some of the current features include:
Generate documentation pages from markdown files (chose .md because most of the developers are familiar).
Create multi-version, multi-paged documentation with a click of button.
dark/light themes included by default.
A quick search. (currently just a simple search)
A separate about page for every project.
Rich text editor for developers to write blogs and tutorials.
Now the project itself is in its first iteration, which is why I look forward for your feedback. I'd like to know what features you'd like to see in the upcoming releases and what features you'd like to be removed from the project. I look forward to your responses.
PS: I am still working on enhancing the UI of the landing page, any heads up would be greatly appreciated
​
You can visit the project at https://browsedocs.com
Github repo for the project: https://github.com/PaulleDemon/BrowseDocs
​
Thanks,
Have a great day ahead.
​
/r/Python
https://redd.it/18c8uqu
Saluting the Unsung Hero: A Tribute to Django Admin
In the bustling world of web development, where flashy front-ends and complex back-ends often steal the spotlight, there lies an unsung hero quietly powering many of our projects – Django Admin. This tool has been a steadfast ally to developers, making database management seem like a breeze.
From the effortless customization to the intuitive user interface, Django Admin has transformed the mundane tasks of data entry and management into a smooth and efficient process. Its robust yet flexible framework allows us to tailor it to our specific needs, making each project not just manageable but enjoyable.
What truly sets Django Admin apart is its seamless integration with Django applications. It respects our time, understands our needs, and delivers without fail. Whether it's handling complex queries or managing vast amounts of data, Django Admin does it with unparalleled grace and efficiency.
So here's to Django Admin - a tool that doesn't just make our lives easier but also enhances the quality of our work. In a tech world where the latest tools often overshadow the foundational ones, Django Admin continues to be a pillar of reliability and functionality.
As we continue to navigate the ever-evolving landscape of web development, let's take a moment to appreciate
/r/django
https://redd.it/18ciefr
In the bustling world of web development, where flashy front-ends and complex back-ends often steal the spotlight, there lies an unsung hero quietly powering many of our projects – Django Admin. This tool has been a steadfast ally to developers, making database management seem like a breeze.
From the effortless customization to the intuitive user interface, Django Admin has transformed the mundane tasks of data entry and management into a smooth and efficient process. Its robust yet flexible framework allows us to tailor it to our specific needs, making each project not just manageable but enjoyable.
What truly sets Django Admin apart is its seamless integration with Django applications. It respects our time, understands our needs, and delivers without fail. Whether it's handling complex queries or managing vast amounts of data, Django Admin does it with unparalleled grace and efficiency.
So here's to Django Admin - a tool that doesn't just make our lives easier but also enhances the quality of our work. In a tech world where the latest tools often overshadow the foundational ones, Django Admin continues to be a pillar of reliability and functionality.
As we continue to navigate the ever-evolving landscape of web development, let's take a moment to appreciate
/r/django
https://redd.it/18ciefr
Reddit
From the django community on Reddit
Explore this post and more from the django community
🚨 Minecraft Server Builder 🚨
Building an optimised minecraft purpur server is made easier using the dank.tool!
GitHub: https://github.com/SirDank/dank.tool
Demonstration: https://youtube.com/shorts/RbX5UNuwAYw?si=7JyDZkadGj8brEwY
/r/Python
https://redd.it/18c2fsn
Building an optimised minecraft purpur server is made easier using the dank.tool!
GitHub: https://github.com/SirDank/dank.tool
Demonstration: https://youtube.com/shorts/RbX5UNuwAYw?si=7JyDZkadGj8brEwY
/r/Python
https://redd.it/18c2fsn
GitHub
GitHub - SirDank/dank.tool: ♦️ An all-in-one, installable windows software with a wide variety of features! (and rizz) ♦️
♦️ An all-in-one, installable windows software with a wide variety of features! (and rizz) ♦️ - SirDank/dank.tool
IDE Made with PyQt6 UPDATE
Aura Text is an excellent text/code editor that offers a wide array of essential tools. Built with PyQt6 and Python, it harnesses the power and flexibility of these technologies.
GitHub: https://github.com/rohankishore/Aura-Text
https://preview.redd.it/8x1re1atyt4c1.png?width=1763&format=png&auto=webp&s=34cfb65e186953a9b75e6ac14324c110601ab311
/r/Python
https://redd.it/18cqvtk
Aura Text is an excellent text/code editor that offers a wide array of essential tools. Built with PyQt6 and Python, it harnesses the power and flexibility of these technologies.
GitHub: https://github.com/rohankishore/Aura-Text
https://preview.redd.it/8x1re1atyt4c1.png?width=1763&format=png&auto=webp&s=34cfb65e186953a9b75e6ac14324c110601ab311
/r/Python
https://redd.it/18cqvtk
GitHub
GitHub - rohankishore/Aura-Text: Aura Text is a versatile and powerful text editor powered by QScintilla that provides all the…
Aura Text is a versatile and powerful text editor powered by QScintilla that provides all the necessary tools for developers. It is build using PyQt6 and Python. - rohankishore/Aura-Text
An Open Letter to the Python Software Foundation - Python Africa
https://pythonafrica.blogspot.com/2023/12/an-open-letter-to-python-software_5.html
/r/Python
https://redd.it/18crae8
https://pythonafrica.blogspot.com/2023/12/an-open-letter-to-python-software_5.html
/r/Python
https://redd.it/18crae8
Blogspot
An Open Letter to the Python Software Foundation
Dear PSF, We, organisers in the pan-African Python community, would like to raise some concerns and frustrations that have been brought to a...
Introducing Pharaoh-Report: a report-generation framework powered by Sphinx and Jinja
I'd like to introduce Pharaoh,
a Sphinx\-based Python framework for generating reports in various formats by combining the power of configurable Jinja templates and Python scripts for asset generation.
We have developed it last year in our company to simplify and automate the report generation for measurement results. We mostly output HTML and Confluence reports, but also Latex might be needed in future (contributions welcome).
Since we didn't want to reinvent the wheel, we decided to stick to open-source libs like Sphinx and Jinja, which retrospectively was a good move since it turned out so well.
Also we decided to give something back and management allowed us to make it open source (MIT), hoping it will get picked up by this great community ;)
Pharaoh may be extended using pluggy (e.g. for company internal plugins).
Please let me know what you think! If you like it, give it a star ;)
It's our team's first project on GitHub, so help and contributions highly welcome!
For more information, please refer to the official documentation, Github and PyPI.
Installation via pip:
Here some info right away (from the docs):
https://preview.redd.it/q0kn5kf34u4c1.png?width=1002&format=png&auto=webp&s=c831ed71e261bf67fdbefdd2a20122d562b05ac2
Pharaoh automated the process of manually creating assets (plots, tables, ...) and including it into
/r/Python
https://redd.it/18crkc5
I'd like to introduce Pharaoh,
a Sphinx\-based Python framework for generating reports in various formats by combining the power of configurable Jinja templates and Python scripts for asset generation.
We have developed it last year in our company to simplify and automate the report generation for measurement results. We mostly output HTML and Confluence reports, but also Latex might be needed in future (contributions welcome).
Since we didn't want to reinvent the wheel, we decided to stick to open-source libs like Sphinx and Jinja, which retrospectively was a good move since it turned out so well.
Also we decided to give something back and management allowed us to make it open source (MIT), hoping it will get picked up by this great community ;)
Pharaoh may be extended using pluggy (e.g. for company internal plugins).
Please let me know what you think! If you like it, give it a star ;)
It's our team's first project on GitHub, so help and contributions highly welcome!
For more information, please refer to the official documentation, Github and PyPI.
Installation via pip:
pip install pharaoh-reportHere some info right away (from the docs):
https://preview.redd.it/q0kn5kf34u4c1.png?width=1002&format=png&auto=webp&s=c831ed71e261bf67fdbefdd2a20122d562b05ac2
Pharaoh automated the process of manually creating assets (plots, tables, ...) and including it into
/r/Python
https://redd.it/18crkc5
GitHub
GitHub - Infineon/pharaoh-dev: Pharaoh is a Sphinx-based Python framework for generating reports in various formats by combining…
Pharaoh is a Sphinx-based Python framework for generating reports in various formats by combining the power of configurable Jinja templates and Python scripts for asset generation. - Infineon/phara...
GoDaddy with Flask Mail
Hello everybody, I recenty signed up for my own domain using GoDaddy. However when I try to send emails using the flask-mail wrapper it does nothing, the program keeps running (so no errors) however there is no mail being send and all the code after it will not execute.
​
In my config I did:
MAIL_USERNAME = 'mail_username'
MAIL_PASSWORD = 'mail_password'
MAIL_SERVER = 'smtpout.secureserver.net'
MAIL_PORT = 465
MAIL_USE_TLS = True
MAIL_USE_SSL = False
​
And this is the function I have for sending a mail:
def send_contact_mail(content, name, subject, user_mail):
msg = Message("User Question",sender='test@test.com',recipients=[user_mail\])
msg.body = CONTACT_BODY.format(name=name, mail=user_mail, subject=subject, content=content)
web_mail.send(msg)
​
Any clue as to why it does not work?
​
PS. If I use the script from this Github page it does work https://github.com/RohanDas28/Go-Daddy-email-sender-python/blob/main/main.py , however I would prefer using flask-mail
/r/flask
https://redd.it/18c7b6n
Hello everybody, I recenty signed up for my own domain using GoDaddy. However when I try to send emails using the flask-mail wrapper it does nothing, the program keeps running (so no errors) however there is no mail being send and all the code after it will not execute.
​
In my config I did:
MAIL_USERNAME = 'mail_username'
MAIL_PASSWORD = 'mail_password'
MAIL_SERVER = 'smtpout.secureserver.net'
MAIL_PORT = 465
MAIL_USE_TLS = True
MAIL_USE_SSL = False
​
And this is the function I have for sending a mail:
def send_contact_mail(content, name, subject, user_mail):
msg = Message("User Question",sender='test@test.com',recipients=[user_mail\])
msg.body = CONTACT_BODY.format(name=name, mail=user_mail, subject=subject, content=content)
web_mail.send(msg)
​
Any clue as to why it does not work?
​
PS. If I use the script from this Github page it does work https://github.com/RohanDas28/Go-Daddy-email-sender-python/blob/main/main.py , however I would prefer using flask-mail
/r/flask
https://redd.it/18c7b6n
GitHub
Go-Daddy-email-sender-python/main.py at main · RohanDas28/Go-Daddy-email-sender-python
Contribute to RohanDas28/Go-Daddy-email-sender-python development by creating an account on GitHub.