Tag: python
Remote Execution in PyCharm
Using Kafka with Python and (unit) testing my stuff in it..
This time I needed to post some data through Apache Kafka from some of my existing Python code. People tell me Python is such a lovely thing and everything is great when you do Python. Well, I do find the core language and environment to be great for fast scripting and prototyping. But the documentation […]
Read More Using Kafka with Python and (unit) testing my stuff in it..Uploading my little project to pypi (python package index)
Wanted to upload my little project to pypi, the place from which the project can be easily installed using pip install.. First of all, need to create the setup.py file. This is documented in quite a few places. Just a few notes on this: The “name” attribute is what is used to refer to the […]
Read More Uploading my little project to pypi (python package index)python lazy importing
Was wondering how to stop my little Python program from crashing if it fails to import MySql driver, even when the functionality with the MySql driver is not invoked. The Python runtime seems to try to load all modules that are imported as soon as they are referenced. Including if you import the module from […]
Read More python lazy importingpython3 mysql connector and pip install procedures
Trying to learn some Python and use some of the nice and shiny libraries available for it. Problem: Need to use MySQL to store some data. Have to figure out how to connect and use the MySQL DB from Python3. Several places suggest using a Python package called MySQLdb. Seems fine but does not support […]
Read More python3 mysql connector and pip install procedures