Exemple #1
0
def add_task():
    task = text_input.get()
    if task.strip() != "":
        tasks.append(CamelCase().hump(task))
        update_listbox()
    else:
        display_n_of_tasks["text"] = "Please enter a task!"
    text_input.delete(0, "end")
Exemple #2
0
    def add_labcorp_text(self, text):
        if type(text) is list and len(text) > 0:
            camel = CamelCase()

            self.outputBox.append(
                "\n=================== LabCorp ====================")
            for item in text:
                distance = item.get("distance")
                address = item.get("address").strip()
                hours = item.get("hours")
                phone_fax = item.get("phone_fax")
                services = item.get("services")

                self.outputBox.append(f"Distance: {distance}")
                self.outputBox.append(f"Address: {address}")
                self.outputBox.append(f"Hours: {hours}")
                self.outputBox.append(f"Phone {phone_fax}")
                self.outputBox.append(f"Services: {services}")
                self.outputBox.append("====================")

        else:
            self.outputBox.append("\nNo LabCorp locations were found.")
# 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 as well as custom modules

# import datetime
from datetime import date

from camelcase import CamelCase

today = date.today()
print(today)

c = CamelCase()
print(c.hump("this is a camel case string"))
Exemple #4
0
# 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

# import a core python module (i.e. datetime)
import datetime
today = datetime.date.today()
print(today)

# import a certain piece of a core python module (i.e. time)
from time import time
timestamp = time()
print(timestamp)

# pip module (i.e. camelcase)
from camelcase import CamelCase 
c = CamelCase()
print(c.hump("hello world"))

# import custom module (i.e. validator.py)
import validator
from validator import validate_email

email = "*****@*****.**"
if validate_email(email):
    print("email is valid")
else:
    print("email is bad")
Exemple #5
0
# import the whole module
# import datetime
# import time

# import specific class in module
from camelcase import CamelCase
from camelcase import CamelCase
from datetime import date
from time import time
from names import getName

c = CamelCase()
today = date.today()
timestamp = time()
print(today)
print(timestamp)
print(getName())
print(c.hump('hey'))
Exemple #6
0
# 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

import datetime
from datetime import date
import time
from time import time

#pip moudle
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'))

emal = 'test#text.com'
if validate_email(emal):
    print('email is valid')
else:
    print('email isnt valid')

#print(today, type(today))
print(timestamp)
Exemple #7
0
from camelcase import CamelCase

c = CamelCase()

txt = "hello world"

print(c.hump(txt))
# 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 imports
import datetime
from datetime import date
import time
from time import time

# pip module
from camelcase import CamelCase

# import custom module this comes from our created validator module
from validator import validate_email

# today = datetime.date.today() these will both be the same
today = date.today()
timestamp = time()
c = CamelCase()
email = '*****@*****.**'
if validate_email(email):
    print(f'{email} is a valid email')
else:
    print(f'{email} is an invalid email')

print(c.hump('hello good sir'))
print(today, timestamp)
# importing a core python module
# import datetime
# import time

from validator import validate_email
from camelcase import CamelCase
from datetime import date
from time import time

# today = datetime.date.today()
today = date.today()
print(today)

# timestamp = time.time()
timestamp = time()
print(timestamp)

# Pip module

c = CamelCase()
print(c.hump('hello godwin gitonga'))

# Custom module

email = '*****@*****.**'

if validate_email(email):
    print('Email is good')
else:
    print('Email is bad')
from modulos import saludo, mascotas
from camelcase import CamelCase
saludo('ramon')
print(mascotas)

c = CamelCase()

s = 'esta oracion necesita CamelCase!'

camelcased = c.hump(s)
print(camelcased)
Exemple #11
0
# A file containing a set of functions

# import datetime
from datetime import date
from time import time

# Pip module
from camelcase import CamelCase

c = CamelCase()
print(c.hump("hello there"))

# today = datetime.date.today()
today = date.today()
timestamp = time()

# pip3 install camelcase

# pip3 freeze
"""
appdirs==1.4.4
apturl==0.5.2
...
six==1.11.0
system-service==0.3
systemd-python==234
toml==0.10.1
typed-ast==1.4.1
ubuntu-drivers-common==0.0.0
ufw==0.36
unattended-upgrades==0.1
Exemple #12
0
# OR
from time import time

timestamp_2 = time()
print(timestamp_2)
'''
pip modules
pip (package manager for python)
pip install --upgrade pip (to update pip)
pip install <module_name> (installs the package globally on your sys)
pip freeze (to check what all is installed in the current scope; scope may be global or a virtual environment)
'''

from camelcase import CamelCase

cc = CamelCase()
print(cc.hump('selena marie gomez'))

# custom model
from validator import validate_email  # (check out validator.py in this folder)

email = '*****@*****.**'
if validate_email(email):
    print('email is valid')
else:
    print('email is not valid')
'''
A module is a single file (or files) that are imported under one import and used. 
e.g. import my_module

A package is a collection of modules in directories that give a package hierarchy.
from validator import validate_email


# today = datetime.date.today()
today = date.today()

# timestamp = time.time()
timestamp = time()


# print(today)
print(timestamp)

# Camel case
# c = CamelCase()
# print(c.hump('hello there world'))

# c = CamelCase().hump('hello there world')
# print(c)

c = CamelCase().hump('hello there world')
print(c)

email= 'test#test.com'
if validate_email(email):
    print('Email is valid')
else:
    print('Email is bad')


# A module is a basically a file containing a set of funcitons to include in your application. There are core pythn modules, modules you can install using the pip package manager (including Django ) as well as custom modules.

# Core modules
from datetime import date
from time import time

#Pip modules
from camelcase import CamelCase

from validator import validate_email


today = date.today();
case = CamelCase()
print (case.hump('hello there world'))
print (today)
print (time())
print (validate_email('*****@*****.**'))
print (validate_email('visakh_gmail.com'))
Exemple #15
0
# Import a pip module #
from camelcase import CamelCase

# Import a custom module such as the one in the validator.py file #
from validator import validate_email

# Using the imported core module #
today = datetime.date.today()

print(today)

# Using the imported part of the core module #
now = date.today()
timestamp = time()

print(now)
print(timestamp)

# Using the imported pip module #
test = CamelCase()

print(test.hump('hello there world'))

# Using the imported custom module #
email = '*****@*****.**'

if validate_email(email):
    print(f'{email} is a valid email')
else:
    print(f'{email} is not a valid email')
Exemple #16
0
from camelcase import CamelCase

c = CamelCase()
texto = "esta oración debe estar en CamelCase"

camelcase = c.hump(texto)
print(camelcase)
#Find Packages
#Find more packages at https://pypi.org/.

#Remove a Package
#Use the uninstall command to remove a package
#C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip uninstall camelcase

# To check what modules are installed use command
# Command: pip freeze

#List Packages
#Use the list command to list all the packages installed on your system:
#C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip list

import camelcase
c=camelcase.CamelCase()
txt = "hello world"
print(c.hump(txt))

from camelcase import CamelCase
c1 = CamelCase()
print(c1.hump('hello there world'))

#Download and Install MySQL connector
#C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>python -m pip install mysql-connector
import mysql.connector

mydb = mysql.connector.connect(host="localhost", user="******", passwd="root123")

Exemple #18
0
# 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
from validator import validate_email

# today = datetime.date.today()
today = date.today()
timestamp = time()
c = CamelCase()

email = '*****@*****.**'
if validate_email(email):
    print('Email is valid')
else:
    print('Email is not valid')
print(c.hump('hello there'))
Exemple #19
0
from camelcase import CamelCase
# would capitalize the first letter
c = CamelCase()

number = 1

# print odd number
while number < 1500:
    if number % 2 != 0:
        print(number)
    number += 1

# print even number
while number < 1500:
    if number % 2 == 0:
        print(number)
    number += 1

# ADD USER INPUT INTO THE EMPTY LIST
L = []
while len(L) < 5:
    new_name = input("Please add a new name: ").strip()
    L.append(c.hump(new_name))
print("Sorry list if full")
print(L)

x = 34 - 23
y = "Hello"
z = 3.45

if z == 3.45 or y == "Hello":
Exemple #20
0
# 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

""" import datetime
today= datetime.date.today() """
# OR
from validator import validate_email #user defined
from camelcase import CamelCase  # pip modules
from datetime import date  # Core modules
today = date.today()
print(today)

# Install other libraries using: pip3 install lib-name
# To check installed libraries: pip3 freeze

c = CamelCase()
print(c.hump("hello geeks"))

email = "*****@*****.**"
if(validate_email(email)):
    print("Valid email.")
else:
    print("Invalid email.")
from camelcase import CamelCase
camello = CamelCase('texto')
texto = "este texto necesita ser CamelCaseado"
print(camello.hump(texto))
# import entire module
import datetime

# import a part of a module
from datetime import date

# import time function from time module
from time import time

# Pip module
from camelcase import CamelCase
# In JS
# node modules

print(CamelCase().hump('still learning'))

# Import custom module
import validator
from validator import validate_email

# today = datetime.date.today()
today = date.today()

# timestamp = time.time()
timestamp = time()

c = CamelCase()
# print(c.hump('hello there world'))

email = 'test#test.com'
Exemple #23
0
# 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
from time import time

# Pip module
from camelcase import CamelCase

# Custome module
import validator

# today=datetime.date.today()
today = date.today()

timestamp = time()

camel = CamelCase()
text = 'hello there world'
print(camel.hump(text))

email = "*****@*****.**"
if validator.validate_email(email):
    print('Email is valid')
else:
    print('Not an email')
Exemple #24
0
import time
from time import time as t

# módulo customizado
import validator
from validator import validate_email

# módulo instalado via pip3
import camelcase
from camelcase import CamelCase

today = date.today()
today_datetime = datetime.date.today()

timestamp = time.time()
timestamp_t = t()

email = '*****@*****.**'

# if validate_email(email):
if validator.validate_email(email):
    print('email válido')
else:
    print('email inválido')

# camel case
camel = CamelCase()
nome = 'rijelly toaster'
nome_cameled = camel.hump(nome)
print(nome_cameled)
Exemple #25
0
# 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
from time import time

# Pip module
from camelcase import CamelCase

# Import custom module
from validator import validate_email

# today = datetime.date.today()
today = date.today()
# timestamp = time.time()
timestamp = time()

# print(timestamp)

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')
Exemple #26
0
#Date & Time
hoy = datetime.date.today()
print(hoy)

hoy2 = date.today()
print(hoy2)

    #hora = time.time()
    #print(hora)

hora2 = time()
print (hora2)

#CamelCase uppercase exercise
a = CamelCase()
print(a.hump('hola mundo'))


#Custom Module *Check the Validator.py file*
import Validator
from Validator import validar_correo

email = '*****@*****.**'
print(email)
if validar_correo(email):
    print('El correo es valido')
else:
    print('El correo no es valido')

email2 = 'prueba#prueba.com'
Exemple #27
0
#  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 pip package manager
#  (including Django) as well as custom modules

import validator
from validator import validate_email
from camelcase import CamelCase

c = CamelCase()
print(c.hump('hello world'))

email - '*****@*****.**'
if validate_email(email):
    print('Email is valid')
else:
    print('email is not valid')
Exemple #28
0
from camelcase import CamelCase
c = CamelCase()
texto = "hola amigos buenas tardes"
print(c.hump(texto))
Exemple #29
0
from camelcase import CamelCase

from index import saludo

saludo("Foo")

c = CamelCase()

s = "esta oración necesita camelcase"

print(s)

print(c.hump(s))
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()   // data object in date time
today = date.today()
#timestamp = time.time()
timestamp = time()

c = CamelCase()
print(c.hump('hello, there world'))

print(timestamp)

email = '*****@*****.**'
if validate_email(email):
    print('Email is valid')

# There are examples of core module that are available bu default with python and python
# has a package manager pip

# For install something with pip we have to do pip install