Maurice Odida
How to Log API Endpoints Using Python FastAPI
FastAPI is a modern, high-performance web framework for building APIs with Python 3.7+ based on standard Python type hints. It offers several advantages: * High Performance: FastAPI is designed for speed, leveraging asynchronous programming to handle thousands of requests per second. * Automatic Documentation: It automatically generates interactive API documentation using Swagger UI and ReDoc. * Type Checking: FastAPI uses Python’s type hints to provide automatic data validation and serializ
Maurice Odida
November 4, 2024
A Beginner's Guide to aiohttp in Python
When working with Python to interact with web APIs, especially when handling multiple requests, you’ve probably encountered some delays. Whether it’s downloading files, scraping data, or making requests to APIs, waiting for each task to finish can slow things down considerably. This is where asynchronous programming steps in to save the day, and one of the best tools in the Python ecosystem for this is the aiohttp library. If you're unfamiliar with asynchronous programming, don’t worry! I'll br
Maurice Odida
September 11, 2024
How To Split Dataset in to Batches (Using Python)
Introduction As data volumes continue to grow, one common approach in training machine learning models is batch training. This method involves splitting a dataset into smaller subsets or "batches," which are fed into the model one at a time. In this post, we shall explore three different techniques for splitting datasets into batches: * Creating a large tensor * Loading partial data with HDF5 * Using Python generators To illustrate, we will assume the model is a sound-based detector, but
Maurice Odida
September 6, 2024
Top Exciting Open-Source GitHub Projects
In 2024, the open-source community remains vibrant, offering a wealth of free and customizable alternatives to mainstream software solutions. These projects not only present cost-effective options but also foster collaboration, transparency, and innovation in the field of software development. Here, is the highlight of the top 15 open-source GitHub projects making notable impacts this year, detailing their features, benefits, and potential influence across various industries. Before exploring ou
Maurice Odida
September 3, 2024
GitHub Copilot: A Revolutionary Tool for Code Autocompletion
Introduction Code autocompletion is an essential tool for developers, streamlining the coding process by offering real-time suggestions that help reduce typing errors and improve efficiency. However, traditional autocompletion tools often rely on static templates and rule-based methods, limiting their ability to adapt to the diverse coding practices and dynamic environments developers face today. Like many integrated development environments (IDEs), these tools typically feature built-in sugge
Maurice Odida
September 3, 2024