import ftplib import csv import gloFunk csv.field_size_limit(int(9999999)) negroLista = gloFunk.dirtyLexi('__txtBiblioteca/negroList.txt') missList = [] def ftpSender(tName, rName, cName): print('sending file...') sftp = ftplib.FTP('ftp.remezclemos.net', '*****@*****.**', '!Universe0') fp = open("__global/__data/__rimas/completadas/publish/rimaLib-t"+tName+"r"+rName+"c"+cName+".csv",'rb') # file to send sftp.storbinary('STOR rimaLibs/rimaLib-t'+tName+"r"+rName+"c"+cName+".csv", fp) # Send the file fp.close() # Close file and FTP sftp.quit() ##tName = str() ##while tName != 'stop': ## tName = str(input('tName to send:')) ## rName = str(input('rName to send:')) ## cName = str(input('cName to send:')) ## ftpSender(tName, rName, cName) ## tName = str(input('continue?:')) def publishingEditor(tName, rName, cName, negroLista): libFile = csv.reader(open("__global/__data/__rimas/completadas/masterFiles/rimaLib-t"+tName+"r"+rName+"c"+cName+".csv", "r")) dicFile = csv.writer(open("__global/__data/__rimas/completadas/publish/rimaLib-t"+tName+"r"+rName+"c"+cName+".csv", 'w', encoding='latin-1')) dic = {} print('preparing public version...')
#!/usr/local/bin/python3.2 from string import * import csv csv.field_size_limit(int(9999999)) import re import gloFunk masterLexi = gloFunk.dirtyLexi('__txtBiblioteca/es-ES-opti.txt') negroLista = gloFunk.dirtyLexi('__txtBiblioteca/negroList.txt') blackList = 'mbits', 'vme', 'kant', 'fetch', 'fddi', 'theuth', 'helmholtz', 'trap', 'phi', 'cpu', 'judit', 'ieee', 'cm', 'mhz', 'km', 'mm', 'khz', 'oh', 'i', 'bcd', 'eh', 'hao', 'ghz', 'hz', 'bits', 'kbits', 'khces', 'mflops', 'mhces', 'gflops', 'ghces', 'marx', 'scsi', 'dma', 'gflop', 'mflop', 'traps', 'tick', 'checkpoints', 'ccitt', 'chist', 'kbit', 'mbit', 'sangley', 'mmu', 'risc', 'cisc' for all in blackList: negroLista.append(all) superDic = gloFunk.globalOpen('superDic', 'string') fCons = 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'w', 'z' def fLiner(pWord, emps, fono, superDic, totalVs, rSyls, cleanR): superData = superDic[pWord].split('+') theseEmps = list(superData[0]) theseFono = list(superData[2]) vocsCt = int(0) consCt = int(0) fLine = str() pCt = len(theseFono) - 1 while ((consCt < cleanR) or (vocsCt < rSyls)) and (pCt >= 0): if (theseFono[pCt] in fCons) and (consCt < cleanR): fLine = theseFono[pCt] + fLine consCt += 1
#!/usr/local/bin/python3.2 import ftplib from string import * import csv csv.field_size_limit(int(9999999)) import gloFunk masterLexi = gloFunk.dirtyLexi('__txtBiblioteca/es-ES-opti.txt') negroLista = gloFunk.dirtyLexi('__txtBiblioteca/negroList.txt') fCons = 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'w', 'z' listDefs = {} superDic = gloFunk.globalOpen('superDic', 'string') def fLiner(pWord, emps, fono, superDic, totalVs, rSyls, cleanR): superData = superDic[pWord].split('+') theseEmps = list(superData[0]) theseFono = list(superData[2]) vocsCt = int(0) consCt = int(0) fLine = str() pCt = len(theseFono)-1 while ((consCt < cleanR) or (vocsCt < rSyls)) and (pCt>=0): if (theseFono[pCt] in fCons) and (consCt < cleanR): fLine = theseFono[pCt]+fLine consCt+=1 elif (theseFono[pCt] not in fCons) and (vocsCt < rSyls): fLine = theseFono[pCt]+fLine vocsCt+=1
import ftplib import csv import gloFunk csv.field_size_limit(int(9999999)) negroLista = gloFunk.dirtyLexi('__txtBiblioteca/negroList.txt') missList = [] def ftpSender(tName, rName, cName): print('sending file...') sftp = ftplib.FTP('ftp.remezclemos.net', '*****@*****.**', '!Universe0') fp = open("__global/__data/__rimas/completadas/publish/rimaLib-t" + tName + "r" + rName + "c" + cName + ".csv", 'rb') # file to send sftp.storbinary('STOR rimaLibs/rimaLib-t' + tName + "r" + rName + "c" + cName + ".csv", fp) # Send the file fp.close() # Close file and FTP sftp.quit() ##tName = str() ##while tName != 'stop': ## tName = str(input('tName to send:')) ## rName = str(input('rName to send:')) ## cName = str(input('cName to send:')) ## ftpSender(tName, rName, cName) ## tName = str(input('continue?:'))