Skip to content

Tag: python

Strange autocomplete suggestions in IPython Shell

I use the IPython shell fairly often and have just started to notice it giving me strange autocomplete suggestions without any prompting from me. In this example, I just typed “im” and it suggests importing matplotlib? This is very strange for several reasons: I’ve never seen this kind of gr…

Python TypeError: object is not iterable,

I am kinda new to python and trying to create a DTO that minimizes the amount of properties exposed from my api. I use an Azure table storage to get records and then loop over it to create a smaller object omiting properties. Though somewhere in the process I get: “TypeError: ‘AbbreviatedPackage&#…

value of checkbox python bottle

I am trying to retrieve the labels (or values) of the checkboxes that the user has selected and return them to a different page. This logic is working for text entries, select options, and radios, all of which are included in that same python post method (so I know the method is working) but I cannot get it t…

S3 appending random string in file name

I have a s3 folder with a csv file stored on it. I’m trying to download the last modified file. I’m using this script to get the last modified file: This code lists my last modified object, the file name is part-00000-40f267f2-38dc-4bab-811c-4c3052fdb1ba-c000.csv and is inside the file_r folder. A…

Django field not passing through serializer

Using the Django REST Framework 2.2, I have a Person model as follows in models.py:: All data is stored in a Firestore database for saving and retrieving data via the REST API. Before new entries are made into the database, a serializer is used to validate incoming POST data. The route /person takes POST requ…