Skip to content

Ramblings and Thoughts

  • About

Ramblings and Thoughts

Networking, Computers, Life

Tag: Python

How to leverage WTForms and Bootstrap Web Template

March 26, 2019 by cbogdon

In starting my own Web Application, I found the Bootstrap Framework. In addition, I started using the WTForms library to make dealing with forms very easy. This document leverages the following references as notes: WTForms Python Tutorial – https://pythonspot.com/tag/wtforms/ WTForms Documentation – http://wtforms.simplecodes.com/docs/1.0.1/crash_course.html Bootstrap – https://getbootstrap.com/ The challange I ran into is that the default …

Continue Reading

Code Snippet to generate a unique value

March 26, 2019 by cbogdon

In doing some basic database programming in Python, I always find the need to generate a unique value for key index. I have a few examples that would help: Sequential Index This example will generate a sequential number based on the current date and time: Non Sequential Random Numbers This example creates a uuid number …

Continue Reading

Python testing notes with pytest

January 30, 2019 by cbogdon

I just started experimenting with pytest to performing testing of my application. Because it initially took some trial and error, I figured I can try to document this. I definitely am not an expert on pytest, but read Brian Okken’s Book that can be found here: http://pythontesting.net/ Set up testing directories The current project that …

Continue Reading

Configuring PyCharm for using pytest as the test runner

January 30, 2019 by cbogdon

To use pytest as the test runner, I found a bunch of things that weren’t working officially, so I tried to write this blog post to understand the right way of doing it. Configuring pytest as the test runner To configure pytest, you need to do the following: Go to the Preferences menu ( Within …

Continue Reading

Setting up Python the proper way on a new Mac

February 24, 2019 by chrisbog

A lot of people ask what the proper way of setting up the different versions of Python on a brand new Mac.   After discussing it with people, this pretty much sums it up. http://python-guide-pt-br.readthedocs.io/en/latest/starting/install/osx/ Install HomeBrew $ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” NOTE: When I tried this on my home MAC, I didn’t have …

Continue Reading

Tags

Apache Carbon Copy Cloner Chrome Cisco Crashplan HTML iOS iClou Linux MySQL Nexus NXAPI Omnifocus OSX Outlook PyCharm Pytest Python Quicken Samsung TV Ubuntu VMWare Wordpress Youtube
© 2025 Ramblings and Thoughts | WordPress Theme by Superbthemes