Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 194 results for
stringio
- Page 1
StringIO post
Programming
Software Development
9 Years Ago
by abaddon2031
…a python code that reads a file into a
stringio
. This works great but now i need to do… is http post from the
stringio
and i can not figure it out. Any help… datetime, glob, os, csv,fnmatch,
StringIO
def convertToSor(fileLoc, fileName, mode, listName): s=
StringIO
.
StringIO
() os.chdir(fileLoc) for FILE in glob…
StringIO confusion
Programming
Software Development
9 Years Ago
by abaddon2031
… a hard copy created every time for it to use
stringio
if it is possible. Sence im new to python still…
a better way of doing this?
Programming
Software Development
14 Years Ago
by ihatehippies
…: utf-8 -*- from ImageGrab import grab from
StringIO
import
StringIO
def TakeScreenShot(): Image = grab() Buffer =
StringIO
() Image.save(Buffer, format = 'JPEG') return Buffer… threading import Thread from traceback import format_exc as E from
StringIO
import
StringIO
from socket import * WIDTH = 1430 HEIGHT = 860 IP = "…
How to attach or combine two python files?
Programming
Software Development
13 Years Ago
by sandeepxd
…mimetypes try: from cStringIO import
StringIO
except ImportError: from
StringIO
import
StringIO
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): &…else: # no temporary file, self.file is a
StringIO
() # see cgi.FieldStorage.read_lines() fout = file(localpath,…
pyinstaller 2.1 generated executable not running correctly
Programming
Software Development
9 Years Ago
by sbaw
… executable # C:\Python27\lib\
StringIO
.pyc matches C:\Python27\lib\
StringIO
.py import
StringIO
# precompiled from C:\Python27\lib\
StringIO
.pyc # C:\Python27\lib…-xml.sax # cleanup[1] PyInstaller.hooks.hook-os # cleanup[1]
StringIO
# cleanup[1] PyInstaller.hooks.hook-_tkinter # cleanup[1] PyInstaller.hooks…
Profile Results Misleading
Programming
Software Development
13 Years Ago
by shavais
…' def test_StringIO(nrep, ncat): for i in range(nrep): s =
StringIO
.
StringIO
() for j in range(ncat): s.write('word') s.getvalue… test_cStringIO(nrep, ncat): for i in range(nrep): s = cStringIO.
StringIO
() for j in range(ncat): s.write('word') s.getvalue…
Unzip part of a .gz file using Python
Programming
Software Development
14 Years Ago
by relb.test
… = open('sample.gz', 'rb') mybuf = MyBuffer(file) mybuf =
StringIO
.
StringIO
(file.read(2000)) f = gzip.GzipFile(fileobj=mybuf) data = f.…
Something is wrong. It won't let me do anything until I open the URL with my browser!
Programming
Software Development
12 Years Ago
by jacob501
…from gzip import GzipFile from cStringIO import
StringIO
import re import urllib2 def download(url):…'s gzipped data with GzipFile(mode='rb', fileobj=
StringIO
(s)) as ifh: s = ifh.read() …'s gzipped data with GzipFile(mode='rb', fileobj=
StringIO
(s)) as ifh: s = ifh.read() return…
problem with loops
Programming
Software Development
10 Years Ago
by mark103
…xbmcgui import xbmcaddon import os import urllib2 import
StringIO
import sqlite3 from sqlite3 import dbapi2 as …description TEXT)') con.commit() con.close tv_elem = ElementTree.parse(
StringIO
.
StringIO
(data)).getroot() channels = {} for elem in tv_elem.getchildren…
how to print the title from xml source
Programming
Software Development
9 Years Ago
by mark103
… xbmcaddon import os import urllib2 import
StringIO
import sqlite3 from sqlite3 import dbapi2 …con.commit() con.close tv_elem = ElementTree.parse(
StringIO
.
StringIO
(data)).getroot() profilePath = xbmc.translatePath(os.path…
Searching file names and emailing a list of them
Programming
Software Development
9 Years Ago
by abaddon2031
…import requests, shutil, datetime, glob, os, csv,fnmatch,
StringIO
,smtplib,argparse, math from email.MIMEMultipart import MIMEMultipart from email…metavar='Change size', default='0') args = parser.parse_args() files =
StringIO
.
StringIO
() def sendEmail(toaddress, subject, body): fromaddr=args.sendEmail toaddr= …
Downloading the file and cancel it
Programming
Software Development
9 Years Ago
by mark103
… is my current code: import urllib2 import
StringIO
import sqlite3 import threading from sqlite3 import dbapi2…)') con.commit() con.close tv_elem = ElementTree.parse(
StringIO
.
StringIO
(data)).getroot() profilePath = xbmc.translatePath(os.path.join…
Re: Profile Results Misleading
Programming
Software Development
13 Years Ago
by TrustyTony
See posts in [url]http://www.daniweb.com/forums/post1250774.html#post1250774[/url] for related discussion for
stringIO
vs catenation.
Re: Something is wrong. It won't let me do anything until I open the URL with my browser!
Programming
Software Development
12 Years Ago
by TrustyTony
… urlopen from gzip import GzipFile import re from cStringIO import
StringIO
#import webbrowser def download(url): page = urlopen(url).read() if…': # assume it's gzipped data with GzipFile(mode='rb', fileobj=
StringIO
(page)) as ifh: return ifh.read() return page page = download…
pycurl cookies
Programming
Software Development
15 Years Ago
by krammer
… is appreciated, thanks. [CODE]def main(): # Request post page dev_null =
StringIO
.
StringIO
() pycurlConnect = pycurl.Curl() pycurlConnect.setopt(pycurl.USERAGENT, USER_AGENT) pycurlConnect.setopt…
using binascii
Programming
Software Development
15 Years Ago
by mruane
…, os from pygame.locals import * import binascii from cStringIO import
StringIO
level1 = """…rsuz7qizruq3rxnHrujB8pinLpqvquqm6um7runHMtm0co6rqvirLwrDKsu/rui+0dS
StringIO
(sound_string) sound = pygame.mixer.Sound(f) sound.set_volume(0.5) return sound LEVELS = [level1, level2…
help with web crawler
Programming
Software Development
15 Years Ago
by leegeorg07
… import urllib2 import urlparse import htmllib, formatter from cStringIO import
StringIO
def log_stdout(msg): """Print msg on the… the parser just to get the HREFs writer = formatter.DumbWriter(
StringIO
()) f = formatter.AbstractFormatter(writer) parser = htmllib.HTMLParser(f) parser.feed…
python script to find Installed programs in Uninstall folder in registry
Programming
Software Development
13 Years Ago
by kishorerp
… +'\nRegkey: ' + subkey + '\n') except: print ('Regkey: ' + subkey + '\n') except: fp =
StringIO
.
StringIO
() traceback.print_exc(file=fp) errorMessage = fp.getvalue() #error = 'Error for…
Re: Searching file names and emailing a list of them
Programming
Software Development
9 Years Ago
by TrustyTony
Why you are using
StringIO
here? Just build the string normally and send it. Python pseudo-code: send_mail(address, subject,'\n'.join(info_i_want(big_file) for big_file in list_of_files if size_of(big_file) > SIZE_LIMIT)
How to set the value in setLabel function more than once?
Programming
Software Development
9 Years Ago
by mark103
… TIMESTAMP, description TEXT)') con.commit() con.close tv_elem = ElementTree.parse(
StringIO
.
StringIO
(data)).getroot() channels = OrderedDict() # Get the loaded data for channel…
how to update the database while using the timer?
Programming
Software Development
9 Years Ago
by mark103
… TIMESTAMP, description TEXT)') con.commit() con.close tv_elem = ElementTree.parse(
StringIO
.
StringIO
(data)).getroot() profilePath = xbmc.translatePath(os.path.join('special://userdata…
Re: (Installed Ruby 1.9.1) gem isn't working
Programming
Web Development
14 Years Ago
by codejoust
It looks like your YAML class is corrupted. Try reinstalling ruby: [icode]C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `require': no such file to load --
stringio
(LoadError)[/icode] means that the
stringio
library is missing, and essential for yaml to run, which is essential for rubygems to run.
Python and the JPEG Image File, Part 2, The Image
Programming
Software Development
18 Years Ago
by vegaseat
…,220)) # convert jpg image to a data stream stream = cStringIO.
StringIO
(jpgImage) # convert data stream to a bitmap bmp = wx.BitmapFromImage…
create a connection between python and mysql
Programming
Software Development
15 Years Ago
by rajasekhar1242
… os import cgi from cgi import FieldStorage from cStringIO import
StringIO
from sys import exit header = 'Content-type: text/html' formhtml…
MySQLdb interface problem
Programming
Databases
14 Years Ago
by bhanu1225
… keyword strop SocketServer atexit linecache struct StdSuites audiodev locale subprocess
StringIO
audioop logging sunau SystemEvents autoGIL logmod sunaudio Terminal base64…
(Installed Ruby 1.9.1) gem isn't working
Programming
Web Development
14 Years Ago
by michelle1
…/yaml.rb:9:in `require': no such file to load --
stringio
(LoadError) from C:/ruby1.9/lib/ruby/1.9.1…
Closing an image opened by PhotoImage
Programming
Software Development
14 Years Ago
by bharatk
…;,"Enter URL") file =urllib.urlopen(url) im = cStringIO.
StringIO
(file.read()) img = Image.open(im) image1 = ImageTk.PhotoImage(img…
wxPython GUI problem
Programming
Software Development
13 Years Ago
by jackocurly0074
…) try: data = open(imageFile, "rb").read() stream = cStringIO.
StringIO
(data) bmp = wx.BitmapFromImage( wx.ImageFromStream( stream )) wx.StaticBitmap(self…
Python - Receive IMAP email
Programming
Software Development
12 Years Ago
by ande-s
…? #!/usr/bin/env python import os, sys, imaplib, rfc822, re,
StringIO
server =' 'myserver' username='username' password='password' M = imaplib.IMAP4_SSL(server…
Adapt an iterable to look like a file.
Programming
Software Development
12 Years Ago
by Gribouillis
… example). This code was inspired by the standard library's
StringIO
module. Please note that when memory or disk access is…
1
2
3
4
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC