import requests
from requests.auth import HTTPBasicAuth
import base64
import json
def run():
account_id = 'f802238b-58****ab51-2989606f4745'
key = base64.b64encode(bytes('3_0KgI4JvUDQNLcluZYnzA4YCad'))
auth = HTTPBasicAuth(account_id, key)
url = 'https://smartcat.ai/api/integration/v1/project/create'
with open("project.json","r") as f:
project = json.load(f)
headers = {'Content-Type': 'application/json'}
response = requests.post(url, data=project, headers=headers, auth=auth)
print(response)
run()
captions = []
for objItem in colItems:
if objItem.Caption != None:
print("Caption:" + objItem.Caption)
print("Command:" + objItem.Command)
print("User:" + objItem.User)
captions.append('<p>{}<p>'.format(objItem.Caption))
captions = '\n'.join(captions)
return self.wfile.write(captions.encode('utf-8'))
usecols: int, str, list-like, or callable default None
If None, then parse all columns.
If str, then indicates comma separated list of Excel column letters and column ranges (e.g. “A:E” or “A,C,E:F”). Ranges are inclusive of both sides.
If list of int, then indicates list of column numbers to be parsed.
If list of string, then indicates list of column names to be parsed.
New in version 0.24.0.
If callable, then evaluate each column name against it and parse the column if the callable returns True.
Returns a subset of the columns according to behavior above.
data_designation = ["Дата заключения", "Валюта", "Код финансового инструмента", "Операция", "Количество", "Цена", "Объём сделки"]
securities_transactions = pandas.read_excel(file_location, usecols = data_designation)
securities_transactions = securities_transactions[data_designation]
securities_transactions = securities_transactions.values.tolist()
black_list = ['password']
while True:
password1 = str(input("Введите пароль "))
if len(password1) < 8:
print("Короткий!")
continue
elif password1 in black_list:
print("Простой!")
continue
password2 = str(input("Введите пароль еще раз "))
if password1 == password2:
print("OK")
break
else:
print("Различаются!")
with open(file_name, 'r') as f:
for line in f:
# your code