bloomsei / python

Experiments and Katas using Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Example project

Example project where my experiments and Katas live. Also place to explore setup of Python projects. Serves as my own documentation of how to use Python.

Structure

Following this document to structure the project: https://docs.python-guide.org/writing/structure/

Basic Python Unit Test

Docs: https://docs.python.org/3/library/unittest.html

import unittest

class TestHello(unittest.TestCase):
    def test_hello(self):
        self.assertEqual('foo'.upper(), 'FOO')

if __name__ == '__main__':
    unittest.main()

Python importing

from module_name import file_name

file_name.function_name()

About

Experiments and Katas using Python

License:MIT License


Languages

Language:Python 100.0%