forked from bradtraversy/python_sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodules.py
More file actions
27 lines (21 loc) · 673 Bytes
/
modules.py
File metadata and controls
27 lines (21 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# A module is basically a file containing a set of functions to include in your application. There are core python modules, modules you can install using the pip package manager (including Django) as well as custom modules
# Core modules
import datetime
from datetime import date
import time
from time import time
# Pip module
from camelcase import CamelCase
# Import custom module
import validator
from validator import validate_email
# today = datetime.date.today()
today = date.today()
timestamp = time()
c = CamelCase()
# print(c.hump('hello there world'))
email = 'test#test.com'
if validate_email(email):
print('Email is valid')
else:
print('Email is bad')