Best of Python — August 2024
- 1
- 2
freeCodeCamp·2y
How to Build Good Coding Habits as a New Python Developer
To build good coding habits as a new Python developer, follow the PEP 8 style guide, always use the newest Python version, comment your code for clarity, use linters to maintain clean code, rely on built-in functions and libraries, and fix code issues as soon as they arise. Practicing these habits will help you write more readable and efficient code.
- 3
- 4
This is Learning·2y
7 Open Source Projects You Should Know - Python Edition ✔️
Explore seven noteworthy open source projects written in Python, including pandas for data analysis, Apache Airflow for workflow management, G4F for decentralized AI technologies, Scrapy for web scraping, Ultroid as a Telegram UserBot, Zulip for team collaboration, and Freqtrade for crypto trading. Discover their features, installation guides, and more to enhance your coding endeavors.
- 5
ByteByteGo·2y
EP125: How does Garbage Collection work?
Garbage collection is a crucial automatic memory management feature used in many programming languages. Java offers multiple garbage collectors tailored to different scenarios, Python employs reference counting alongside a cyclic collector to handle circular references, and GoLang utilizes a concurrent mark-and-sweep garbage collector to minimize application pauses. Additional topics include tools for designing fault-tolerant systems and key system design trade-offs.
- 6
Hacker News·2y
I've Built My First Successful Side Project, and I Hate It
The post describes the author's journey of creating a successful side project that automatises drawing harmonic patterns on TradingView. Despite the success and financial gains, the author faced numerous challenges including maintenance fatigue, demanding customers, and handling disputes and frauds. Ultimately, the author automated various aspects of the project to reduce workload and avoid burnout, but lost interest in maintaining the project. Key lessons include the importance of setting boundaries, customer relations, and the complexities of selling B2C products.
- 7
Machine Learning Mastery·2y
Free Tools Every ML Beginner Should Use
Starting in the machine learning field can be challenging, but several free tools can ease the process for beginners. Essential tools include Jupyter Notebook for creating and sharing documents with code and visuals, Hugging Face for Natural Language Processing (NLP) and large language models, LangChain for developing context-aware AI applications, Scikit-learn for implementing machine learning algorithms in Python, and Kaggle for accessing datasets and participating in competitions. Leveraging these tools can make the learning experience more interactive and efficient.
- 8
Indently·2y
Learn Python OOP in under 20 Minutes
Learn about classes in Python, including creating and using them, with practical examples such as a microwave manufacturer. Understand key concepts like the class keyword, camel case naming convention, type annotations, initializers, instance creation, self keyword, methods for class functionality, and Dunder methods for defining class operations and representations.
- 9
KDnuggets·2y
3 Ways of Building Python Projects using GPT-4o
Discover how to enhance your Python development with essential AI tools like ChatGPT, CodeGPT, and Cursor IDE. These tools utilize the GPT-4o model to speed up coding, minimize bugs, and integrate AI functionalities into your workflow. Whether you're a beginner or an experienced developer, these tools can improve your productivity and coding efficiency.
- 10
Machine Learning Mastery·2y
10 Must-Know Python Libraries for Machine Learning in 2024
Machine learning in 2024 has seen significant evolution, with Python continuing to lead the way through its extensive libraries. The field has transitioned from foundational frameworks in 2020, like TensorFlow and PyTorch, to increased emphasis on transformers, AutoML, and scalability by 2024. Key trends include deep learning dominance, scalability, automation, optimization, ecosystem consolidation, and interactive data visualization. Understanding core ML frameworks, data manipulation libraries, visualization tools, and domain-specific utilities is crucial for modern ML tasks.
- 11
Planet Python·2y
Create Amazing Progress Bars in Python with alive-progress
Alive-progress is a Python package created by Rogério Sampaio de Almeida that offers various types of progress bars for terminal or IPython REPL sessions. It is easily installable via pip and works with any iterable. The package includes demo scripts for showcasing its capabilities and provides several examples on GitHub to help integrate it into your own code. Useful for enhancing command-line utilities by displaying data processing progress.
- 12
- 13
Javarevisited·2y
10 Best Python Programming Courses for Beginners in 2024 (with Certificates)
Discover the top 10 Python programming courses available in 2024, tailored for beginners. These courses, hosted on platforms like Udemy, Coursera, Educative.io, and Datacamp, offer a comprehensive introduction to Python, covering everything from basic syntax to advanced topics like data science and web development. Noteworthy mentions include the 'Complete Python Bootcamp' and 'Python for Everybody Specialization,' which provide valuable certificates upon completion. Enhance your Python skills with practical projects, live coding examples, and industry-relevant exercises.
- 14
KDnuggets·2y
3 Most Popular Bootcamps to Learn Python
Enhance your coding journey with these top 3 data science bootcamps for learning Python. From beginner to expert, you can choose from 'Zero to Hero in Python,' a comprehensive 22-hour course, 'Python Pro Bootcamp,' a 100-day project-based course, and 'Automate the Boring Stuff with Python,' designed to teach practical automation. Ideal for anyone looking to leverage Python in data science, these courses offer extensive materials, practical projects, and certification upon completion.
- 15
Community Picks·2y
FastHTML – fasthtml
FastHTML is a next-generation web framework designed for fast, scalable, and compact web applications using Python. It emphasizes powerful, interactive web app development with minimal code. Installation is straightforward via pip, and even a minimal app can be swiftly set up to demonstrate functionality. The framework leverages HTML and HTTP principles, promoting good software engineering practices. FastHTML integrates well with HTMX for adding interactivity. Extensive documentation and community resources are available for deeper learning and project assistance.
- 16
- 17
Javarevisited·2y
Top 30 Free Udemy Courses to Learn Python in 2024
Discover the top 30 free Udemy courses to learn Python in 2024, suitable for beginners, intermediate, and advanced developers. These courses cover a wide range of topics including Python basics, web development frameworks like Django, machine learning, data analysis, and more. Enhance your Python skills with practical exercises and stay updated with industry trends.
- 18
Tech With Tim·2y
Python AI Web Scraper Tutorial - Use AI To Scrape ANYTHING
This post guides you on building an AI-powered web scraper using Python. The scraper can extract information from any website by passing a URL and a prompt to the AI. Essential tools include Streamlit for the front end, Selenium for web scraping, and Langchain for integrating with AI models. Detailed steps cover setting up the environment, handling dependencies, and developing the UI and backend functions necessary for scraping and parsing web content. The tutorial also explores overcoming common challenges like captchas and IP bans using Bright Data's scraping browser.
- 19
Tech With Tim·2y
PLEASE Learn These 10 Advanced Python Features
Learn about 10 advanced Python features including advanced unpacking methods, using the asterisk operator, dynamic code execution with exec and eval, the importance of function and variable annotations, the use of dunder methods like __repr__ and __str__, understanding context managers, iterators, generators, the itertools library, and asynchronous programming using the asyncio library. These features are essential for writing efficient and clean Python code, and the tutorial provides explanations and examples to help you master them.
- 20
asayer·2y
PyCharm vs VS Code -- which is best for Python in 2024?
Choosing between PyCharm and VS Code for Python development depends on your specific needs. PyCharm offers advanced, Python-specific tools and is ideal for large projects and professional developers. VS Code is lightweight, highly customizable, supports multiple programming languages, and is well-suited for quick development tasks and collaborative coding. Both IDEs provide robust features like code completion, debugging, and version control, but differ in performance, resource usage, and pricing. PyCharm has a steeper learning curve but offers comprehensive tools, while VS Code is open-source, free, and highly extensible.
- 21
Tech With Tim·2y
5 Python AI Project Ideas & HOW To Build Them
Discover five Python projects that guide you from easy to complex AI implementations. The projects include sentiment analysis, image classification, voice assistants, recommendation systems, and AI agents. Each project comes with recommended libraries and code samples, making them excellent for users looking to enhance their Python and AI skills.
- 22
Faun·2y
Deploy AI apps using Docker to containerize python-based GEN-AI Apps.
Deploying AI applications can be streamlined using Docker to containerize Python-based generative AI apps. This guide walks you through setting up a full-stack application that answers questions about a PDF file, using LangChain for orchestration, Streamlit for the UI, Ollama for running the LLM, and Neo4j for vector storage. Key steps include cloning the repository, initializing Docker, configuring the Docker Compose file, and running the services to interact with the app via a browser.
- 23
DEV·2y
Screw it! I've Developed My Own Static Site Generator!
The author explains their journey in web development and their decision to create a personal static site generator. Initially considering React and various platforms for their project, they faced several challenges, particularly with deploying Next.js on Cloudflare Pages. To overcome these issues and to retain control, the author developed their own static site generator using Python to parse Markdown files into HTML. They created a CLI tool called 'fit' to manage the site generation and deployment processes. The project was a creative and educational experience, ultimately satisfying the author’s needs and paving the way for future improvements.
- 24
Hacker News·2y
nfoert/cardie: An open source business card designer and sharing platform
Cardie is an open-source platform for designing and sharing business cards. Users can create unlimited cards, get analytics, edit cards, and control privacy settings. The platform is in open alpha and subject to changes. Instructions for setting up the application locally, including creating a Python virtual environment, setting up a Django superuser, and configuring environment variables, are provided.
- 25
Community Picks·2y
raznem/parsera: Lightweight library for scraping web-sites with LLMs
Parsera is a lightweight Python library designed for scraping websites using large language models (LLMs). It is easy to set up with minimal token use, boosting speed and reducing costs. Users can configure it to use models from OpenAI or Azure, and it includes asynchronous support. The library can extract specified elements from web pages and return the results in JSON format.