Working with PDFs in Python
Generating PDFs is a rite of passage for every developer. In this article, Giridhar Talla teaches us how to use Python to work with PDF files using two common libraries: fpdf and pypdf2.
Generating PDFs is a rite of passage for every developer. In this article, Giridhar Talla teaches us how to use Python to work with PDF files using two common libraries: fpdf and pypdf2.
The NoCredentialsError is an error encountered when using the Boto3 library to interface with Amazon Web Services (AWS). Specifically, this error is encountered when your AWS credentials are missing, invalid, or cannot be located by your Python script. These credentials are stored by default at ~/.aws/credentials which contains your access key and secret access key for using AWS services, along with other configuration details such as your region code.
OperationalError is a class of error encountered while working with the psycopg library in Python. Operational errors are closely linked with the connect method within psycopg and typically occur when parameters passed to this method are incorrect or invalid. This may mean that a parameter, such as a database name, is spelled incorrectly, has changed, or that the database server itself is experiencing a problem.
The psycopg2.errors.UniqueViolation is an error thrown by the when a user attempts to insert a duplicate key value. In an SQL or SQL-like database a key value is defined when a table is created. This key value is then used to reference specific rows of the table. In order to make calls to these rows unambiguous, this key value must be unique for every row. Any attempt to insert a new row which has a value in the key field that already exists in the table cannot be completed.
Understanding memory management is a superpower that will help you design memory-efficient applications and make it easier to debug memory issues. Join Rupesh Mishra for a deep dive into the internals of CPython.
In our final year as undergraduates, we researched how to use human affect and behaviors to anticipate threats posed by other humans. We built a simple website that demonstrated the capabilities of the model we designed.
Recently, I came across a request from one of our community users looking for a Kong plugin that could look up address details based on a few location search keywords. There are many libraries that support geocoding. I decided to pick up a Python Library as they are simple to use — and the Kong Gateway supports plugins written in Python since version 2.3.
Do you want to learn Python as your first programming language? Then you’ve made a great choice. Python is a popular, general-purpose programming language that can be used for a whole host of applications. But, it’s not without its challenges. To find out more about these challenges and how to overcome them, keep reading …
There are various reasons for running Python browser automation tests locally, the most common one for us is saving time. Loadero test runs usually take no more than 5 minutes to initialize and start execution but can reach up to 10 minutes or more depending on how busy is the test run queue. To increase the speed of development, it’s often quicker to create the test script on your local machine and then run tests on Loadero.