Operations | Monitoring | ITSM | DevOps | Cloud

Python

Testing Python: Understanding Doctest and Unittest

Testing is crucial in the software development phase. It helps ensure easy debugging, agile code, and enhanced reusability. Performing tests that cover all use cases helps prevent a codebase from breaking — minimizing exposure to vulnerabilities. Python has two main testing frameworks that developers can use, doctest and unittest.

How to Unit Test with Python

Confidence in the quality, robustness, and reliability of a product are among the most valuable qualities sought after by consumers as well as businesses. This confidence is built through the rigorous testing of a product. In software engineering, practices like extreme programming (XP) and test-driven development (TDD) champion the belief that automated testing should be used from the start of a project.

Proper Python Instrumentation: 5 Things to Keep In Mind

Python’s USP as a programming language is that it’s flexible, easy to use, and quick to get started and iterate with. These virtues have led it to become the most popular programming language in 2022 and be used by millions of developers. As Python applications continue to multiply and scale to cater to millions of users worldwide, instrumentation and monitoring tools play a role more crucial than ever – in building robust, performant software.

Start with Python and InfluxDB

Although time series data can be stored in a MySQL or PostgreSQL database, that’s not particularly efficient. If you want to store data that changes every minute (that’s more than half a million data points a year!) from potentially thousands of different sensors, servers, containers, or devices, you’re inevitably going to run into scalability issues. Querying or performing aggregation on this data also leads to performance issues when using relational databases.

A Look at the 6 Best Python Error Monitoring Tools in 2022

Errors are the necessary evils of software development. They bring to your attention critical information about what’s wrong with your application and what needs fixing before your end-users suffer. Error monitoring tools offer significant help in this cause by aggregating all the errors and issues your applications (and their end users) are struggling with under one roof and providing valuable insights to resolve these and optimize performance.

Continuous Performance Improvement of HTTP API

The following guest post addresses how to improve your services’s performance with Sentry and other application profilers for Python. Visit Specto.dev to learn more about application profiling and Sentry’s upcoming mobile application profiling offering. We’re making intentional investments in performance monitoring to make sure we give you all the context to help you solve what’s urgent faster.

How we optimized Python API server code 100x

Python code optimization may seem easy or hard depending on the performance target. If the target is “best effort”, carefully choosing the algorithm and applying well-known common practices is usually enough. If the target is dictated by the UX, you have to go down a few abstraction layers and hack the system sometimes. Or rewrite the underlying libraries. Or change the language, really. This post is about our experience in Python code optimizations when whatever you do is not fast enough.

Why is Python so Popular?

Despite several widely acknowledged flaws, Python remains one of the most popular development languages worldwide. The sole fact that for years Python had two different and incompatible versions existing in parallel should have spelled the end for Python given the numerous alternatives available in the market. But Python overcame this conflict. Developers also criticized Python’s design and functionalities. Python is known to be slow and inadequate at dealing with memory-intensive operations.